synced web2py.js, thanks Vinicius

This commit is contained in:
mdipierro committed 2013-11-06 16:57:33 -06:00
1 parent ee1de04544
commit 58c22b8ed0
3 files changed
+13 -13

No files matched your search

+1 -1
View File
@@ -1 +1 @@
Version 2.7.4-stable+timestamp.2013.11.06.11.14.11
Version 2.7.4-stable+timestamp.2013.11.06.16.56.35
+6 -6
View File
@@ -250,6 +250,7 @@
});
},
trap_form: function (action, target) {
/* traps any LOADed form */
$('#' + target + ' form').each(function (i) {
@@ -259,13 +260,10 @@
}
form.attr('data-w2p_target', target);
var url;
var url = form.attr('action');
if(form.hasClass('trap_use_form_action')) {
/* submit using form own action, instead of component url */
url = form.attr('action');
} else {
/* should be there by default */
if ((url === "") || (url === "#")) {
/* form has no action. Use component url. */
url = action;
}
@@ -277,6 +275,8 @@
});
});
},
ajax_page: function (method, action, data, target, element) {
/* element is a new parameter, but should be put be put in front */
if(element == undefined) element = $(document);
+6 -6
View File
@@ -250,6 +250,7 @@
});
},
trap_form: function (action, target) {
/* traps any LOADed form */
$('#' + target + ' form').each(function (i) {
@@ -259,13 +260,10 @@
}
form.attr('data-w2p_target', target);
var url;
var url = form.attr('action');
if(form.hasClass('trap_use_form_action')) {
/* submit using form own action, instead of component url */
url = form.attr('action');
} else {
/* should be there by default */
if ((url === "") || (url === "#")) {
/* form has no action. Use component url. */
url = action;
}
@@ -277,6 +275,8 @@
});
});
},
ajax_page: function (method, action, data, target, element) {
/* element is a new parameter, but should be put be put in front */
if(element == undefined) element = $(document);