Call the new mouse event handler function.

Also apply some refactoring on the code for better readability.
This commit is contained in:
Arpad Csanyi
2016-05-11 23:32:19 +02:00
parent 5e2f10d72f
commit 128db4bf48

View File

@@ -316,11 +316,19 @@ $(function() {
var contentTemplate = Handlebars.compile(contentSource);
$('#key-editor-content__target').html(contentTemplate(contentContext[tplName]));
var noSearch = false;
if (tplName == "layer") {
noSearch = true;
switch (tplName) {
case 'layer':
noSearch = true;
case 'keypress':
_keypress_event_handlers();
case 'mouse':
_mouse_event_handlers();
default:
initSelect2items(noSearch);
}
initSelect2items(noSearch);
_keypress_event_handlers();
});