diff --git a/source/Ox.UI/js/Form/Picker.js b/source/Ox.UI/js/Form/Picker.js index f401097e..78037d0e 100644 --- a/source/Ox.UI/js/Form/Picker.js +++ b/source/Ox.UI/js/Form/Picker.js @@ -43,8 +43,7 @@ Ox.Picker = function(options, self) { height: (self.options.elementHeight + 24) + 'px' }); - self.options.element - .css({ + self.options.element.css({ width: self.options.elementWidth + 'px', height: self.options.elementHeight + 'px' }) @@ -65,12 +64,16 @@ Ox.Picker = function(options, self) { title: Ox._('Done'), width: 48 }) - .click(hideMenu) + .bindEvent({ + click: hideMenu + }) .appendTo(self.$bar); - self.$layer = $('