Skip to content

Commit

Permalink
Add-button-dim (#310)
Browse files Browse the repository at this point in the history
Dim the button onLoad, then enable it when selected.
  • Loading branch information
kevinkmmak authored and jywarren committed Jul 24, 2018
1 parent 73a9cd2 commit 56feb4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/lib/defaultHtmlSequencerUi.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ function DefaultHtmlSequencerUi(_sequencer, options) {

function onLoad() {
importStepsFromUrlHash();
$(addStepSel + " button").prop("disabled",true);
}

// look up needed steps from Url Hash:
Expand All @@ -23,6 +24,7 @@ function DefaultHtmlSequencerUi(_sequencer, options) {
function selectNewStepUi() {
var m = $(addStepSel + " select").val();
$(addStepSel + " .info").html(_sequencer.modulesInfo(m).description);
$(addStepSel + " button").prop("disabled",false);
}

function removeStepUi() {
Expand Down

0 comments on commit 56feb4c

Please sign in to comment.