From 8dedbcc06e8925393645a02d4e840b3d116a5355 Mon Sep 17 00:00:00 2001 From: Arpad Csanyi Date: Mon, 9 May 2016 23:58:53 +0200 Subject: [PATCH] Remove select2's search from the layer tab. #43 --- script.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/script.js b/script.js index 51580780..fa622989 100644 --- a/script.js +++ b/script.js @@ -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(); });