Skip to content

Commit

Permalink
SAK-47199 Assignments > Trash > add spinners on buttons after click (s…
Browse files Browse the repository at this point in the history
  • Loading branch information
bjones86 authored Apr 22, 2022
1 parent 5c426d7 commit 9dc5372
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,18 @@
<script type="text/javascript">
$(document).ready(function() {
$("#btnRestore").click(function(event) {
if( !confirm('$tlang.getString("restoreConfirmation")') )
if( !confirm('$tlang.getString("restoreConfirmation")') ) {
event.preventDefault();
} else {
SPNR.disableControlsAndSpin(this, null);
}
});
$("#btnHardRemove").click(function(event) {
if( !confirm('$tlang.getString("hardRemoveConfirmation")') )
if( !confirm('$tlang.getString("hardRemoveConfirmation")') ) {
event.preventDefault();
} else {
SPNR.disableControlsAndSpin(this, null);
}
});
});
</script>
Expand Down

0 comments on commit 9dc5372

Please sign in to comment.