1
0
Fork 0
forked from 0x2620/oxjs

improvements to editor ui

This commit is contained in:
rolux 2011-05-20 16:11:42 +02:00
commit 007e525162
3 changed files with 187 additions and 102 deletions

View file

@ -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();
}