Add search functionality in choose Module select (#750)

* Add Search functionality in choose functionalityoption

* Adds grunt build changes

* Adds node module for selectize and changed path
This commit is contained in:
Slytherin
2019-03-19 02:58:19 +05:30
committed by Jeffrey Warren
parent bd68245a12
commit 5e33c69736
9 changed files with 686 additions and 160 deletions

View File

@@ -25,6 +25,9 @@ window.onload = function() {
}
// Null option
addStepSelect.append('<option value="none" disabled selected>More modules...</option>');
addStepSelect.selectize({
sortField: 'text'
});
}
refreshOptions();
@@ -270,8 +273,8 @@ function DefaultHtmlSequencerUi(_sequencer, options) {
function onLoad() {
importStepsFromUrlHash();
if (!$('#selectStep').val())
$(addStepSel + " #add-step-btn").prop("disabled", true);
if ($('#selectStep').val()==='none')
$(addStepSel + " #add-step-btn").prop("disabled", true);
handleSaveSequence();
}
@@ -839,7 +842,9 @@ function IntermediateHtmlStepUi(_sequencer, step, options) {
'<option value="' + m + '">' + modulesInfo[m].name + "</option>"
);
}
$('#insertStep #add-step-btn').selectize({
sortField: 'text'
});
$('#insertStep #add-step-btn').prop('disabled', true);
insertStepSelect.append('<option value="none" disabled selected>More modules...</option>');