fixed problem with web2py.js, thanks Niphlod

This commit is contained in:
mdipierro
2013-07-07 12:25:31 -05:00
parent 2888983036
commit e7565845a0
4 changed files with 177 additions and 177 deletions
+2 -2
View File
@@ -256,7 +256,7 @@
element.trigger('ajax:error', [xhr, status, error]);
},
'complete': function (xhr, status) {
// element.trigger('ajax:complete', [xhr, status]);
element.trigger('ajax:complete', [xhr, status]);
var html = xhr.responseText;
var content = xhr.getResponseHeader('web2py-component-content');
var t = jQuery('#' + target);
@@ -424,7 +424,7 @@
el.addClass('disabled');
var method = el.prop('type') == 'submit' ? 'val' : 'html';
// store enabled state
el.data('w2p:enable-with', el[method]);
el.data('w2p:enable-with', el[method]());
/* little addition by default*/
if((el.data('w2p_disable_with') == 'default') || (el.data('w2p_disable_with') === undefined)) {
el.data('w2p_disable_with', 'Working...');