[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:
Jeremy Kersten
2015-09-14 16:30:39 +02:00
parent f7f436ead5
commit ac8e28405d
@@ -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',