forked from 0x2620/oxjs
update ColorInput, ColorPicker and Picker
This commit is contained in:
parent
41f061335f
commit
64c3d3457b
3 changed files with 45 additions and 56 deletions
|
|
@ -21,7 +21,6 @@ Ox.Picker = function(options, self) {
|
|||
element: null,
|
||||
elementHeight: 128,
|
||||
elementWidth: 256,
|
||||
id: '',
|
||||
overlap: 'none'
|
||||
})
|
||||
.options(options || {});
|
||||
|
|
@ -31,7 +30,9 @@ Ox.Picker = function(options, self) {
|
|||
title: 'select',
|
||||
type: 'image'
|
||||
})
|
||||
.click(showMenu)
|
||||
.bindEvent({
|
||||
click: showMenu
|
||||
})
|
||||
.appendTo(that);
|
||||
|
||||
self.$menu = Ox.Element()
|
||||
|
|
@ -76,8 +77,7 @@ Ox.Picker = function(options, self) {
|
|||
self.$selectButton
|
||||
.removeClass('OxSelected')
|
||||
.css({
|
||||
MozBorderRadius: '8px',
|
||||
WebkitBorderRadius: '8px'
|
||||
borderRadius: '8px'
|
||||
});
|
||||
that.triggerEvent('hide');
|
||||
}
|
||||
|
|
@ -89,16 +89,15 @@ Ox.Picker = function(options, self) {
|
|||
self.$selectButton
|
||||
.addClass('OxSelected')
|
||||
.css({
|
||||
MozBorderRadius: '8px 8px 0 0',
|
||||
WebkitBorderRadius: '8px 8px 0 0'
|
||||
borderRadius: '8px 8px 0 0'
|
||||
});
|
||||
self.$layer.appendTo(Ox.UI.$body);
|
||||
self.$layer.appendTo(Ox.$body);
|
||||
self.$menu
|
||||
.css({
|
||||
left: left + 'px',
|
||||
top: top + 'px'
|
||||
})
|
||||
.appendTo(Ox.UI.$body);
|
||||
.appendTo(Ox.$body);
|
||||
that.triggerEvent('show');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue