diff options
author | Gemorroj <wapinet@mail.ru> | 2012-04-07 15:27:28 +0400 |
---|---|---|
committer | Gemorroj <wapinet@mail.ru> | 2012-04-07 15:27:28 +0400 |
commit | 8bdca339f68187779c4987a63568bd934cc67848 (patch) | |
tree | 44dc6ab015ddc444395250d8246a97d11b9f5e8e /js/server_variables.js | |
parent | 54e34e5ef208c91b705666149e76fb6ec46486eb (diff) |
Better compatibility with newer versions of jQuery.
Method of "attr" changed to "prop", method of "removeAttr" changed to "removeProp", attr("value" is replaced by the method of "val".
Diffstat (limited to 'js/server_variables.js')
-rw-r--r-- | js/server_variables.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/server_variables.js b/js/server_variables.js index ef453f02d4..691e6677b9 100644 --- a/js/server_variables.js +++ b/js/server_variables.js @@ -39,7 +39,7 @@ $(function() { var name = location.hash.substr(1).split('=')[1]; // Only allow variable names if (! name.match(/[^0-9a-zA-Z_]+/)) { - $('#filterText').attr('value',name).trigger('keyup'); + $('#filterText').val(name).trigger('keyup'); } } @@ -141,7 +141,7 @@ function editVariable(link) ajax_request: true, type: 'setval', varName: varName, - varValue: $cell.find('input').attr('value') + varValue: $cell.find('input').val() }, function(data) { if (data.success) { $cell.html(data.variable); |