Remove select2's search from the layer tab. #43

This commit is contained in:
Arpad Csanyi
2016-05-09 23:58:53 +02:00
parent 9bb0145e71
commit 8dedbcc06e

View File

@@ -315,7 +315,11 @@ $(function() {
var contentSource = $('#key-editor-content__source--' + tplName).html();
var contentTemplate = Handlebars.compile(contentSource);
$('#key-editor-content__target').html(contentTemplate(contentContext[tplName]));
initSelect2items();
var noSearch = false;
if (tplName == "layer") {
noSearch = true;
}
initSelect2items(noSearch);
_keypress_event_handlers();
});