From e7f9279a9d6664f7c583eccdadbd0a8cd79306d9 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Mon, 22 Sep 2014 13:18:28 +0200 Subject: [PATCH] Picker: use Ox.$; use on click, not click --- source/Ox.UI/js/Form/Picker.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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 = $('
') + self.$layer = Ox.$('
') .addClass('OxLayer') - .click(hideMenu); + .on({ + click: hideMenu + }); function hideMenu() { self.$menu.detach();