From ffca891f57bd1b6b0ca82a98e32d32e57a862a96 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Mon, 24 Sep 2012 15:13:34 -0500 Subject: [PATCH] data, no attr, thanks Niphlod --- VERSION | 2 +- applications/admin/static/js/web2py.js | 2 +- applications/examples/static/js/web2py.js | 2 +- applications/welcome/static/js/web2py.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index b05df225..61bde50d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.0.9 (2012-09-24 12:48:35) stable +Version 2.0.9 (2012-09-24 15:13:28) stable diff --git a/applications/admin/static/js/web2py.js b/applications/admin/static/js/web2py.js index 01b24fb3..79f82798 100644 --- a/applications/admin/static/js/web2py.js +++ b/applications/admin/static/js/web2py.js @@ -194,7 +194,7 @@ function web2py_validate_entropy(myfield, req_entropy) { else {r=(1.0-2.0*(Math.max(v,0)-0.5)); g=1.0;} var color = '#'+rs(r)+rs(g)+rs(b); myfield.css('background-color',color); - entroy_callback = myfield.attr('entropy_callback'); + entropy_callback = myfield.data('entropy_callback'); if(entropy_callback) entroy_callback(v); } if(!myfield.hasClass('entropy_check')) myfield.on('keyup', validator).on('keydown', validator).addClass('entropy_check'); diff --git a/applications/examples/static/js/web2py.js b/applications/examples/static/js/web2py.js index 01b24fb3..79f82798 100644 --- a/applications/examples/static/js/web2py.js +++ b/applications/examples/static/js/web2py.js @@ -194,7 +194,7 @@ function web2py_validate_entropy(myfield, req_entropy) { else {r=(1.0-2.0*(Math.max(v,0)-0.5)); g=1.0;} var color = '#'+rs(r)+rs(g)+rs(b); myfield.css('background-color',color); - entroy_callback = myfield.attr('entropy_callback'); + entropy_callback = myfield.data('entropy_callback'); if(entropy_callback) entroy_callback(v); } if(!myfield.hasClass('entropy_check')) myfield.on('keyup', validator).on('keydown', validator).addClass('entropy_check'); diff --git a/applications/welcome/static/js/web2py.js b/applications/welcome/static/js/web2py.js index 01b24fb3..79f82798 100644 --- a/applications/welcome/static/js/web2py.js +++ b/applications/welcome/static/js/web2py.js @@ -194,7 +194,7 @@ function web2py_validate_entropy(myfield, req_entropy) { else {r=(1.0-2.0*(Math.max(v,0)-0.5)); g=1.0;} var color = '#'+rs(r)+rs(g)+rs(b); myfield.css('background-color',color); - entroy_callback = myfield.attr('entropy_callback'); + entropy_callback = myfield.data('entropy_callback'); if(entropy_callback) entroy_callback(v); } if(!myfield.hasClass('entropy_check')) myfield.on('keyup', validator).on('keydown', validator).addClass('entropy_check');