diff --git a/VERSION b/VERSION index ca9652d7..c9d93d1c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.6.0-development+timestamp.2013.08.01.08.22.32 +Version 2.6.0-development+timestamp.2013.08.05.02.33.02 diff --git a/applications/welcome/static/js/web2py.js b/applications/welcome/static/js/web2py.js index 507be9f5..d96e685d 100644 --- a/applications/welcome/static/js/web2py.js +++ b/applications/welcome/static/js/web2py.js @@ -211,12 +211,13 @@ }, trap_form: function (action, target) { + var disable_with_message = (typeof w2p_ajax_disable_with_message != 'undefined') ? w2p_ajax_disable_with_message : "Working..."; $('#' + target + ' form').each(function (i) { var form = $(this); form.attr('data-w2p_target', target); if(!form.hasClass('no_trap')) { //should be there by default ? - form.find('input[type=submit]').attr('data-w2p_disable_with', 'Working...'); + form.find('input[type=submit]').attr('data-w2p_disable_with', disable_with_message); form.submit(function (e) { web2py.hide_flash(); web2py.ajax_page('post', action, form.serialize(), target, form); @@ -431,11 +432,12 @@ disableElement: function (el) { el.addClass('disabled'); var method = el.prop('type') == 'submit' ? 'val' : 'html'; + var disable_with_message = (typeof w2p_ajax_disable_with_message != 'undefined') ? w2p_ajax_disable_with_message : "Working..."; // store enabled state 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...'); + el.data('w2p_disable_with', disable_with_message); } // set to disabled state el[method](el.data('w2p_disable_with')); diff --git a/applications/welcome/views/layout.html b/applications/welcome/views/layout.html index dd56bcb9..64e382ea 100644 --- a/applications/welcome/views/layout.html +++ b/applications/welcome/views/layout.html @@ -40,11 +40,11 @@ - {{ - response.files.append(URL('static','css/web2py.css')) - response.files.append(URL('static','css/bootstrap.min.css')) - response.files.append(URL('static','css/bootstrap-responsive.min.css')) - response.files.append(URL('static','css/web2py_bootstrap.css')) + {{ + response.files.insert(0,URL('static','css/web2py.css')) + response.files.insert(1,URL('static','css/bootstrap.min.css')) + response.files.insert(2,URL('static','css/bootstrap-responsive.min.css')) + response.files.insert(3,URL('static','css/web2py_bootstrap.css')) }} {{include 'web2py_ajax.html'}} diff --git a/applications/welcome/views/web2py_ajax.html b/applications/welcome/views/web2py_ajax.html index 52709edc..5d7195b0 100644 --- a/applications/welcome/views/web2py_ajax.html +++ b/applications/welcome/views/web2py_ajax.html @@ -1,6 +1,7 @@