forked from 0x2620/oxjs
improvements to editor ui
This commit is contained in:
parent
d1477a057a
commit
007e525162
3 changed files with 187 additions and 102 deletions
|
|
@ -25,7 +25,9 @@ Ox.Select = function(options, self) {
|
|||
|
||||
// fixme: selected item needs attribute "checked", not "selected" ... that's strange
|
||||
var self = self || {},
|
||||
that = new Ox.Element({}, self) // fixme: do we use 'div', or {}, or '', by default?
|
||||
that = new Ox.Element({
|
||||
tooltip: options.tooltip || {}
|
||||
}, self) // fixme: do we use 'div', or {}, or '', by default?
|
||||
.defaults({
|
||||
id: '',
|
||||
items: [],
|
||||
|
|
@ -145,6 +147,7 @@ Ox.Select = function(options, self) {
|
|||
function showMenu() {
|
||||
that.gainFocus();
|
||||
that.addClass('OxSelected');
|
||||
self.options.tooltip && that.$tooltip.hide();
|
||||
self.$menu.showMenu();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue