1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-08 22:56:46 +02:00

Allow for resetText of a button to be a falsey value; fixes #13466

This commit is contained in:
Heinrich Fenkart
2014-05-05 12:11:59 +02:00
parent cd95849794
commit d8ee1ba9b6
2 changed files with 22 additions and 2 deletions

View File

@@ -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 () {