Skip to content

Commit

Permalink
FIX: PR feedback changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hitaishi19 committed Dec 9, 2024
1 parent bad8d21 commit 32c8250
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/dist/js/bundle.js

Large diffs are not rendered by default.

17 changes: 16 additions & 1 deletion client/src/legacy/LeftAndMain.js
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,21 @@ $.entwine('ss', function($) {
if(!button) button = this.find('.btn-toolbar :submit[name=action_save]');
// default to first button if none given - simulates browser behaviour
if(!button) button = this.find('.btn-toolbar :submit:first');


if ($(button).is("button")) {
$(button).append(
$(
'<div class="btn__loading-icon">' +
'<span class="btn__circle btn__circle--1"></span>' +
'<span class="btn__circle btn__circle--2"></span>' +
'<span class="btn__circle btn__circle--3"></span>' +
"</div>"
)
);

$(button).css($(button).outerWidth() + "px");
}

// set button to "submitting" state
$(button).addClass('btn--loading loading');
$(button).prop('disabled', true);
Expand Down Expand Up @@ -503,6 +517,7 @@ $.entwine('ss', function($) {
}
});
}
clearButton();
return false;
}

Expand Down

0 comments on commit 32c8250

Please sign in to comment.