[FIX] website: website.theme.js make it re-usable and more flexible
Each theme was duplicating this file. Now we need to improve this file to be re-usable by others themes. This fix is only to catch input, in case of the selector is an image.
This commit is contained in:
@@ -23,7 +23,8 @@
|
||||
'mousedown label:has(input[data-xmlid],input[data-enable],input[data-disable])': function (event) {
|
||||
var self = this;
|
||||
this.time_select = _.defer(function () {
|
||||
self.on_select($(event.target).find('input'), event);
|
||||
var input = $(event.target).find('input').length ? $(event.target).find('input') : $(event.target).parent().find('input');
|
||||
self.on_select(input, event);
|
||||
});
|
||||
},
|
||||
'click .close': 'close',
|
||||
|
||||
Reference in New Issue
Block a user