Remove button state "uploading", no longer supported in Bootstrap v4
https://getbootstrap.com/docs/4.3/migration/#buttons https://getbootstrap.com/docs/3.3/javascript/#buttons-stateful
This commit is contained in:
parent
21a8d8b5de
commit
b0b8a3d0c0
2 changed files with 2 additions and 9 deletions
|
|
@ -78,14 +78,12 @@ BR.Profile = L.Evented.extend({
|
|||
profile = this.editor.getValue();
|
||||
|
||||
this.message.hide();
|
||||
$(button).button('uploading');
|
||||
evt.preventDefault();
|
||||
|
||||
var that = this;
|
||||
this.fire('update', {
|
||||
profileText: profile,
|
||||
callback: function(err, profileId, profileText) {
|
||||
$(button).button('reset');
|
||||
$(button).blur();
|
||||
if (!err) {
|
||||
that.cache[profileId] = profileText;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue