mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-13 20:00:05 +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() {
|
function addStepUi() {
|
||||||
if ($(addStepSel + ' select').val() == 'none') return;
|
|
||||||
|
if ($(addStepSel + ' select').val() == ''){
|
||||||
|
alert('Please Select a Step to Proceed');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var newStepName;
|
var newStepName;
|
||||||
if(typeof arguments[0] !== 'string')
|
if(typeof arguments[0] !== 'string')
|
||||||
newStepName = $(addStepSel + ' select option').html().toLowerCase().split(' ').join('-');
|
newStepName = $(addStepSel + ' select option').html().toLowerCase().split(' ').join('-');
|
||||||
|
|||||||
Reference in New Issue
Block a user