mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-11 10:49:59 +01:00
notify users for selecting empty step (#1818)
Co-authored-by: Jeffrey Warren <jeff@unterbahn.com>
This commit is contained in:
@@ -47,7 +47,12 @@ function DefaultHtmlSequencerUi(_sequencer, options) {
|
||||
}
|
||||
|
||||
function addStepUi() {
|
||||
if ($(addStepSel + ' select').val() == 'none') return;
|
||||
|
||||
if ($(addStepSel + ' select').val() == ''){
|
||||
alert('Please Select a Step to Proceed');
|
||||
return;
|
||||
}
|
||||
|
||||
var newStepName;
|
||||
if(typeof arguments[0] !== 'string')
|
||||
newStepName = $(addStepSel + ' select option').html().toLowerCase().split(' ').join('-');
|
||||
|
||||
Reference in New Issue
Block a user