Call the new mouse event handler function.
Also apply some refactoring on the code for better readability.
This commit is contained in:
16
script.js
16
script.js
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user