Init selectpicker for move workflow to another experiment modal [SCI-2432]

This commit is contained in:
Oleksii Kriuchykhin 2018-05-21 16:12:39 +02:00
parent 2ac04ee476
commit 39b74d6f8a

View file

@ -1606,7 +1606,7 @@ function initMoveModules() {
}) })
.on("shown.bs.modal", function(event) { .on("shown.bs.modal", function(event) {
// Focus the text element // Focus the text element
$(this).find(".selectpicker").focus(); $(this).find(".selectpicker").selectpicker().focus();
}) })
.on("hide.bs.modal", function (event) { .on("hide.bs.modal", function (event) {
// When hiding modal, re-enable events // When hiding modal, re-enable events
@ -1705,7 +1705,7 @@ function initMoveModuleGroups() {
}) })
.on("shown.bs.modal", function(event) { .on("shown.bs.modal", function(event) {
// Focus the text element // Focus the text element
$(this).find(".selectpicker").focus(); $(this).find(".selectpicker").selectpicker().focus();
}) })
.on("hide.bs.modal", function (event) { .on("hide.bs.modal", function (event) {
// When hiding modal, re-enable events // When hiding modal, re-enable events