diff options
author | Madhura Jayaratne <madhura.cj@gmail.com> | 2013-04-19 10:23:32 +0400 |
---|---|---|
committer | Madhura Jayaratne <madhura.cj@gmail.com> | 2013-04-19 10:23:32 +0400 |
commit | feaad54ef5e377267dca63527dea383c6d2e5327 (patch) | |
tree | 2bad3e36921c8af2e30720da073994f91b72b19c /js/export.js | |
parent | aef391032f23b3fa66e6da3be33ebbc04877a997 (diff) |
Properly disable text fields in Chrome
Diffstat (limited to 'js/export.js')
-rw-r--r-- | js/export.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/export.js b/js/export.js index 3b5095bb5e..979b84724e 100644 --- a/js/export.js +++ b/js/export.js @@ -241,8 +241,8 @@ function disable_dump_some_rows_sub_options() { $("label[for='limit_to']").fadeTo('fast', 0.4); $("label[for='limit_from']").fadeTo('fast', 0.4); - $("input[type='text'][name='limit_to']").prop('disabled', true); - $("input[type='text'][name='limit_from']").prop('disabled', true); + $("input[type='text'][name='limit_to']").prop('disabled', 'disabled'); + $("input[type='text'][name='limit_from']").prop('disabled', 'disabled'); } /** @@ -252,6 +252,6 @@ function enable_dump_some_rows_sub_options() { $("label[for='limit_to']").fadeTo('fast', 1); $("label[for='limit_from']").fadeTo('fast', 1); - $("input[type='text'][name='limit_to']").removeProp('disabled'); - $("input[type='text'][name='limit_from']").removeProp('disabled'); + $("input[type='text'][name='limit_to']").prop('disabled', ''); + $("input[type='text'][name='limit_from']").prop('disabled', ''); } |