1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-25 12:59:05 +02:00

Change value of stateful button after event loop

Fixes #14450
This commit is contained in:
Heinrich Fenkart
2014-08-26 03:02:29 +02:00
parent 55dd964690
commit c207b5b66b
2 changed files with 7 additions and 7 deletions

View File

@@ -35,10 +35,10 @@
if (data.resetText == null) $el.data('resetText', $el[val]())
$el[val](data[state] == null ? this.options[state] : data[state])
// push to event loop to allow forms to submit
setTimeout($.proxy(function () {
$el[val](data[state] == null ? this.options[state] : data[state])
if (state == 'loadingText') {
this.isLoading = true
$el.addClass(d).attr(d, d)