Skip to content

Commit

Permalink
Prevent state change on disabled link
Browse files Browse the repository at this point in the history
  • Loading branch information
dvlpp committed Dec 9, 2015
1 parent a57a256 commit c855857
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions resources/assets/js/sharp.ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ $(window).load(function () {
var $entityState = $dropdownWrapper.find(".entity-state");
var stateLinkItems = $dropdownWrapper.find(".item");

if($stateLink.parents(".item").hasClass("disabled")) {
return;
}

showPageOverlay();

$.ajax({
Expand Down
2 changes: 1 addition & 1 deletion resources/assets/sharp.form.min.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions resources/assets/sharp.ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -12512,6 +12512,10 @@ module.exports = eventmap;
var $entityState = $dropdownWrapper.find(".entity-state");
var stateLinkItems = $dropdownWrapper.find(".item");

if($stateLink.parents(".item").hasClass("disabled")) {
return;
}

showPageOverlay();

$.ajax({
Expand Down
4 changes: 2 additions & 2 deletions resources/assets/sharp.ui.min.js

Large diffs are not rendered by default.

0 comments on commit c855857

Please sign in to comment.