Merge pull request #287 from niphlod/issue/1753

fixes issue 1753, web2py.js doesn't set the disabled state for inputs with name
This commit is contained in:
mdipierro committed 2013-11-01 07:34:56 -07:00
commit 123f0f8269
3 files changed
+12 -12

No files matched your search

+4 -4
View File
@@ -295,7 +295,7 @@
}, },
'complete': function (xhr, status) { 'complete': function (xhr, status) {
web2py.fire(element, 'ajax:complete', [xhr, status], target); web2py.fire(element, 'ajax:complete', [xhr, status], target);
web2py.updatePage(xhr, target); /* Parse and load the html received */ web2py.updatePage(xhr, target); /* Parse and load the html received */
web2py.trap_form(action, target); web2py.trap_form(action, target);
web2py.ajax_init('#' + target); web2py.ajax_init('#' + target);
web2py.after_ajax(xhr); web2py.after_ajax(xhr);
@@ -445,8 +445,8 @@
} else return false; /* not supported */ } else return false; /* not supported */
}, },
/* new from here */ /* new from here */
/* Form input elements bound by jquery-uj */ /* Form input elements bound by web2py.js */
formInputClickSelector: 'input[type=submit], input[type=image], button[type=submit], button:not([type])', formInputClickSelector: 'input[type=submit]:not([name]), input[type=image]:not([name]), button[type=submit]:not([name]), button:not([type]):not([name])',
/* Form input elements disabled during form submission */ /* Form input elements disabled during form submission */
disableSelector: 'input, button, textarea, select', disableSelector: 'input, button, textarea, select',
/* Form input elements re-enabled after form submission */ /* Form input elements re-enabled after form submission */
@@ -513,7 +513,7 @@
if(flash.html()) flash.append('<span id="closeflash"> &times; </span>').slideDown(); if(flash.html()) flash.append('<span id="closeflash"> &times; </span>').slideDown();
}, },
hide_flash: function () { hide_flash: function () {
$('.flash').hide().html(''); $('.flash').fadeOut(0).html('');
}, },
show_if_handler: function (target) { show_if_handler: function (target) {
var triggers = {}; var triggers = {};
+4 -4
View File
@@ -295,7 +295,7 @@
}, },
'complete': function (xhr, status) { 'complete': function (xhr, status) {
web2py.fire(element, 'ajax:complete', [xhr, status], target); web2py.fire(element, 'ajax:complete', [xhr, status], target);
web2py.updatePage(xhr, target); /* Parse and load the html received */ web2py.updatePage(xhr, target); /* Parse and load the html received */
web2py.trap_form(action, target); web2py.trap_form(action, target);
web2py.ajax_init('#' + target); web2py.ajax_init('#' + target);
web2py.after_ajax(xhr); web2py.after_ajax(xhr);
@@ -445,8 +445,8 @@
} else return false; /* not supported */ } else return false; /* not supported */
}, },
/* new from here */ /* new from here */
/* Form input elements bound by jquery-uj */ /* Form input elements bound by web2py.js */
formInputClickSelector: 'input[type=submit], input[type=image], button[type=submit], button:not([type])', formInputClickSelector: 'input[type=submit]:not([name]), input[type=image]:not([name]), button[type=submit]:not([name]), button:not([type]):not([name])',
/* Form input elements disabled during form submission */ /* Form input elements disabled during form submission */
disableSelector: 'input, button, textarea, select', disableSelector: 'input, button, textarea, select',
/* Form input elements re-enabled after form submission */ /* Form input elements re-enabled after form submission */
@@ -513,7 +513,7 @@
if(flash.html()) flash.append('<span id="closeflash"> &times; </span>').slideDown(); if(flash.html()) flash.append('<span id="closeflash"> &times; </span>').slideDown();
}, },
hide_flash: function () { hide_flash: function () {
$('.flash').hide().html(''); $('.flash').fadeOut(0).html('');
}, },
show_if_handler: function (target) { show_if_handler: function (target) {
var triggers = {}; var triggers = {};
+4 -4
View File
@@ -295,7 +295,7 @@
}, },
'complete': function (xhr, status) { 'complete': function (xhr, status) {
web2py.fire(element, 'ajax:complete', [xhr, status], target); web2py.fire(element, 'ajax:complete', [xhr, status], target);
web2py.updatePage(xhr, target); /* Parse and load the html received */ web2py.updatePage(xhr, target); /* Parse and load the html received */
web2py.trap_form(action, target); web2py.trap_form(action, target);
web2py.ajax_init('#' + target); web2py.ajax_init('#' + target);
web2py.after_ajax(xhr); web2py.after_ajax(xhr);
@@ -445,8 +445,8 @@
} else return false; /* not supported */ } else return false; /* not supported */
}, },
/* new from here */ /* new from here */
/* Form input elements bound by jquery-uj */ /* Form input elements bound by web2py.js */
formInputClickSelector: 'input[type=submit], input[type=image], button[type=submit], button:not([type])', formInputClickSelector: 'input[type=submit]:not([name]), input[type=image]:not([name]), button[type=submit]:not([name]), button:not([type]):not([name])',
/* Form input elements disabled during form submission */ /* Form input elements disabled during form submission */
disableSelector: 'input, button, textarea, select', disableSelector: 'input, button, textarea, select',
/* Form input elements re-enabled after form submission */ /* Form input elements re-enabled after form submission */
@@ -513,7 +513,7 @@
if(flash.html()) flash.append('<span id="closeflash"> &times; </span>').slideDown(); if(flash.html()) flash.append('<span id="closeflash"> &times; </span>').slideDown();
}, },
hide_flash: function () { hide_flash: function () {
$('.flash').fadeOut(0).html(''); $('.flash').fadeOut(0).html('');
}, },
show_if_handler: function (target) { show_if_handler: function (target) {
var triggers = {}; var triggers = {};