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
|
|
@ -651,7 +651,7 @@
|
||||||
><span data-i18n="sidebar.customize-profile.title">Customize profile</span>
|
><span data-i18n="sidebar.customize-profile.title">Customize profile</span>
|
||||||
</h1>
|
</h1>
|
||||||
<form class="flexcolumn flexgrow">
|
<form class="flexcolumn flexgrow">
|
||||||
<ul class="nav nav-tabs " id="profileEditorTabs" role="tablist">
|
<ul class="nav nav-tabs" id="profileEditorTabs" role="tablist">
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a
|
<a
|
||||||
class="nav-link active"
|
class="nav-link active"
|
||||||
|
|
@ -710,12 +710,7 @@
|
||||||
></textarea>
|
></textarea>
|
||||||
<div id="profile_message"></div>
|
<div id="profile_message"></div>
|
||||||
<div class="form-group" id="profile_buttons">
|
<div class="form-group" id="profile_buttons">
|
||||||
<button
|
<button id="upload" type="button" class="btn btn-primary btn-sm">
|
||||||
id="upload"
|
|
||||||
type="button"
|
|
||||||
class="btn btn-primary btn-sm"
|
|
||||||
data-uploading-text="Uploading…"
|
|
||||||
>
|
|
||||||
<span class="fa fa-cloud-upload"></span>
|
<span class="fa fa-cloud-upload"></span>
|
||||||
<span data-i18n="sidebar.profile.upload">Upload</span>
|
<span data-i18n="sidebar.profile.upload">Upload</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
||||||
|
|
@ -78,14 +78,12 @@ BR.Profile = L.Evented.extend({
|
||||||
profile = this.editor.getValue();
|
profile = this.editor.getValue();
|
||||||
|
|
||||||
this.message.hide();
|
this.message.hide();
|
||||||
$(button).button('uploading');
|
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
|
|
||||||
var that = this;
|
var that = this;
|
||||||
this.fire('update', {
|
this.fire('update', {
|
||||||
profileText: profile,
|
profileText: profile,
|
||||||
callback: function(err, profileId, profileText) {
|
callback: function(err, profileId, profileText) {
|
||||||
$(button).button('reset');
|
|
||||||
$(button).blur();
|
$(button).blur();
|
||||||
if (!err) {
|
if (!err) {
|
||||||
that.cache[profileId] = profileText;
|
that.cache[profileId] = profileText;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue