1
0
Fork 0
forked from 0x2620/oxjs

fix OxText class in CSS

This commit is contained in:
rolux 2011-05-12 05:29:35 +02:00
commit b0e5e906f5
7 changed files with 93 additions and 82 deletions

View file

@ -9,7 +9,7 @@ Ox.Container = function(options, self) {
var that = new Ox.Element({}, self)
.options(options || {})
.addClass('OxContainer');
that.$content = new Ox.Element({})
that.$content = new Ox.Element({}, self) // fixme: passing self twice??
.options(options || {})
.addClass('OxContent')
.appendTo(that);

View file

@ -6,7 +6,7 @@ Ox.DocPage = function(options, self) {
item: {}
})
.options(options || {})
.addClass('OxDocPage OxText')
.addClass('OxDocPage OxDocument')
.css({
overflow: 'auto'
});

View file

@ -110,6 +110,12 @@ Ox.DocPanel = function(options, self) {
.bindEvent({
select: selectItem
});
// fixme
/*
var $foo = Ox.Container();
self.$list.appendTo($foo);
that.$element.replaceElement(0, $foo);
*/
that.$element.replaceElement(0, self.$list);
}
}
@ -126,15 +132,18 @@ Ox.DocPanel = function(options, self) {
}
function selectItem(data) {
var selected = data.ids[0];
if (selected[0] != '_') {
self.$page = Ox.DocPage({
item: getItemByName(selected)
});
that.$element.replaceElement(1, self.$page);
that.triggerEvent('select', {
id: selected
});
var selected;
if (data.ids.length) {
selected = data.ids[0];
if (selected[0] != '_') {
self.$page = Ox.DocPage({
item: getItemByName(selected)
});
that.$element.replaceElement(1, self.$page);
that.triggerEvent('select', {
id: selected
});
}
}
}

View file

@ -31,7 +31,7 @@ Ox.TreeList = function(options, self) {
itemWidth: self.options.width,
max: self.options.max,
min: self.options.min,
unique: 'id',
unique: 'id'
}, $.extend({}, self))
.addClass('OxTextList OxTreeList')
.css({
@ -192,6 +192,8 @@ Ox.TreeList = function(options, self) {
self.setOption = function(key, value) {
if (key == 'data') {
} else if (key == 'width') {
}
};