diff options
| author | Heinrich Fenkart <[email protected]> | 2014-05-05 12:11:59 +0200 |
|---|---|---|
| committer | Heinrich Fenkart <[email protected]> | 2014-05-05 19:07:47 +0200 |
| commit | d8ee1ba9b61ef4ba5b0494433e3a6eac414ef782 (patch) | |
| tree | 250304448de7d2b4bffa8b2194843fa4a4c840d9 /js/button.js | |
| parent | cd958497947c78dce3024c18bf2ac63ede1caa97 (diff) | |
| download | bootstrap-d8ee1ba9b61ef4ba5b0494433e3a6eac414ef782.tar.xz bootstrap-d8ee1ba9b61ef4ba5b0494433e3a6eac414ef782.zip | |
Allow for resetText of a button to be a falsey value; fixes #13466
Diffstat (limited to 'js/button.js')
| -rw-r--r-- | js/button.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/button.js b/js/button.js index b359a6ec6..bbce6690e 100644 --- a/js/button.js +++ b/js/button.js @@ -31,9 +31,9 @@ state = state + 'Text' - if (!data.resetText) $el.data('resetText', $el[val]()) + if (data.resetText == null) $el.data('resetText', $el[val]()) - $el[val](data[state] || this.options[state]) + $el[val](data[state] == null ? this.options[state] : data[state]) // push to event loop to allow forms to submit setTimeout($.proxy(function () { |
