diff --git a/VERSION b/VERSION index 1d280e09..d5c3ceb8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.6 (2012-03-02 10:41:27) stable +Version 1.99.6 (2012-03-02 20:26:11) stable diff --git a/applications/admin/static/js/web2py.js b/applications/admin/static/js/web2py.js index d6eee1a6..6a84c20a 100644 --- a/applications/admin/static/js/web2py.js +++ b/applications/admin/static/js/web2py.js @@ -18,7 +18,7 @@ function ajax(u,s,t) { } if (pcs.length>0){query = pcs.join("&");} } - jQuery.ajax({type: "POST", url: u, data: query, success: function(msg) { if(t) { if(t==':eval') eval(msg); else jQuery("#" + t).html(msg); } } }); + jQuery.ajax({type: "POST", url: u, data: query, success: function(msg) { if(t) { if(t==':eval') eval(msg); else if(typeof t=='string') jQuery("#"+t).html(msg); else t(msg); } } }); } String.prototype.reverse = function () { return this.split('').reverse().join('');}; diff --git a/applications/examples/static/js/web2py.js b/applications/examples/static/js/web2py.js index d6eee1a6..6a84c20a 100644 --- a/applications/examples/static/js/web2py.js +++ b/applications/examples/static/js/web2py.js @@ -18,7 +18,7 @@ function ajax(u,s,t) { } if (pcs.length>0){query = pcs.join("&");} } - jQuery.ajax({type: "POST", url: u, data: query, success: function(msg) { if(t) { if(t==':eval') eval(msg); else jQuery("#" + t).html(msg); } } }); + jQuery.ajax({type: "POST", url: u, data: query, success: function(msg) { if(t) { if(t==':eval') eval(msg); else if(typeof t=='string') jQuery("#"+t).html(msg); else t(msg); } } }); } String.prototype.reverse = function () { return this.split('').reverse().join('');}; diff --git a/applications/welcome/static/js/web2py.js b/applications/welcome/static/js/web2py.js index d6eee1a6..6a84c20a 100644 --- a/applications/welcome/static/js/web2py.js +++ b/applications/welcome/static/js/web2py.js @@ -18,7 +18,7 @@ function ajax(u,s,t) { } if (pcs.length>0){query = pcs.join("&");} } - jQuery.ajax({type: "POST", url: u, data: query, success: function(msg) { if(t) { if(t==':eval') eval(msg); else jQuery("#" + t).html(msg); } } }); + jQuery.ajax({type: "POST", url: u, data: query, success: function(msg) { if(t) { if(t==':eval') eval(msg); else if(typeof t=='string') jQuery("#"+t).html(msg); else t(msg); } } }); } String.prototype.reverse = function () { return this.split('').reverse().join('');};