even more lists stuff
This commit is contained in:
parent
8e93352c4c
commit
ef514be445
2 changed files with 30 additions and 24 deletions
|
@ -793,7 +793,6 @@ Lists
|
||||||
.OxTextList .OxBar .OxHead {
|
.OxTextList .OxBar .OxHead {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 12px;
|
|
||||||
height: 16px;
|
height: 16px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
@ -1174,18 +1173,22 @@ Panels
|
||||||
margin: 1px 0 0 0;
|
margin: 1px 0 0 0;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
.OxCollapsePanel > .OxBar > .OxSelect {
|
.OxCollapsePanel > .OxBar > .OxExtras {
|
||||||
position: absolute;
|
float: right;
|
||||||
right: 0px;
|
}
|
||||||
|
.OxCollapsePanel > .OxBar > .OxExtras > .OxButton {
|
||||||
|
//position: absolute;
|
||||||
|
//right: 0px;
|
||||||
|
-moz-border-radius: 0;
|
||||||
|
-webkit-border-radius: 0;
|
||||||
|
}
|
||||||
|
.OxCollapsePanel > .OxBar > .OxExtras > .OxSelect {
|
||||||
|
//position: absolute;
|
||||||
|
//right: 0px;
|
||||||
width: 14px;
|
width: 14px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
padding-top: 1px;
|
padding-top: 1px;
|
||||||
border-width: 0 0 0 1px;
|
border-width: 0 0 0 1px;
|
||||||
background: rgba(0, 0, 0, 0);
|
|
||||||
font-size: 11px;
|
|
||||||
text-align: center;
|
|
||||||
cursor: pointer;
|
|
||||||
overflow: hidden;
|
|
||||||
-moz-border-radius: 0;
|
-moz-border-radius: 0;
|
||||||
-webkit-border-radius: 0;
|
-webkit-border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2167,10 +2167,13 @@ requires
|
||||||
if (!self.options.selectable) {
|
if (!self.options.selectable) {
|
||||||
that.triggerEvent('click', data);
|
that.triggerEvent('click', data);
|
||||||
} else {
|
} else {
|
||||||
|
//self.options.selected = !self.options.selected;
|
||||||
|
//that.toggleClass('OxSelected');
|
||||||
if (self.options.group) {
|
if (self.options.group) {
|
||||||
that.triggerEvent('select', data);
|
that.triggerEvent('select', data);
|
||||||
} else {
|
} else {
|
||||||
that.toggleSelected();
|
that.toggleSelected();
|
||||||
|
//that.triggerEvent('change', {selected: self.options.selected});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (self.titles.length == 2) {
|
if (self.titles.length == 2) {
|
||||||
|
@ -2230,12 +2233,14 @@ requires
|
||||||
that.options({
|
that.options({
|
||||||
enabled: !self.options.disabled
|
enabled: !self.options.disabled
|
||||||
});
|
});
|
||||||
|
//self.options.disabled = !self.options.disabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
that.toggleSelected = function() {
|
that.toggleSelected = function() {
|
||||||
that.options({
|
that.options({
|
||||||
selected: !self.options.selected
|
selected: !self.options.selected
|
||||||
});
|
});
|
||||||
|
//self.options.selected = !self.options.selected;
|
||||||
}
|
}
|
||||||
|
|
||||||
that.toggleTitle = function() {
|
that.toggleTitle = function() {
|
||||||
|
@ -7297,6 +7302,9 @@ requires
|
||||||
}).appendTo(that);
|
}).appendTo(that);
|
||||||
that.$head = new Ox.Container()
|
that.$head = new Ox.Container()
|
||||||
.addClass('OxHead')
|
.addClass('OxHead')
|
||||||
|
.css({
|
||||||
|
right: self.options.scrollbarVisible ? oxui.scrollbarSize + 'px' : 0
|
||||||
|
})
|
||||||
.appendTo(that.$bar);
|
.appendTo(that.$bar);
|
||||||
that.$head.$content.addClass('OxTitles');
|
that.$head.$content.addClass('OxTitles');
|
||||||
constructHead();
|
constructHead();
|
||||||
|
@ -9420,12 +9428,13 @@ requires
|
||||||
that = new Ox.Panel({}, self)
|
that = new Ox.Panel({}, self)
|
||||||
.defaults({
|
.defaults({
|
||||||
collapsed: false,
|
collapsed: false,
|
||||||
menu: [],
|
extras: [],
|
||||||
size: 16,
|
size: 16,
|
||||||
title: ''
|
title: ''
|
||||||
})
|
})
|
||||||
.options(options)
|
.options(options)
|
||||||
.addClass('OxCollapsePanel'),
|
.addClass('OxCollapsePanel'),
|
||||||
|
// fixme: the following should all be self.foo
|
||||||
title = self.options.collapsed ?
|
title = self.options.collapsed ?
|
||||||
[{id: 'expand', title: 'expand'}, {id: 'collapse', title: 'collapse'}] :
|
[{id: 'expand', title: 'expand'}, {id: 'collapse', title: 'collapse'}] :
|
||||||
[{id: 'collapse', title: 'collapse'}, {id: 'expand', title: 'expand'}],
|
[{id: 'collapse', title: 'collapse'}, {id: 'expand', title: 'expand'}],
|
||||||
|
@ -9445,17 +9454,15 @@ requires
|
||||||
$title = new Ox.Element()
|
$title = new Ox.Element()
|
||||||
.addClass('OxTitle')
|
.addClass('OxTitle')
|
||||||
.html(self.options.title/*.toUpperCase()*/)
|
.html(self.options.title/*.toUpperCase()*/)
|
||||||
|
.appendTo($titlebar),
|
||||||
|
$extras;
|
||||||
|
if (self.options.extras.length) {
|
||||||
|
$extras = new Ox.Element()
|
||||||
|
.addClass('OxExtras')
|
||||||
.appendTo($titlebar);
|
.appendTo($titlebar);
|
||||||
if (self.options.menu.length) {
|
self.options.extras.forEach(function($extra) {
|
||||||
that.$menu = new Ox.Select({
|
$extra.appendTo($extras);
|
||||||
items: self.options.menu,
|
});
|
||||||
max: 0,
|
|
||||||
min: 0,
|
|
||||||
selectable: false,
|
|
||||||
type: 'image'
|
|
||||||
})
|
|
||||||
.bindEvent({click: clickMenu})
|
|
||||||
.appendTo($titlebar)
|
|
||||||
}
|
}
|
||||||
that.$content = new Ox.Element()
|
that.$content = new Ox.Element()
|
||||||
.addClass('OxContent')
|
.addClass('OxContent')
|
||||||
|
@ -9467,10 +9474,6 @@ requires
|
||||||
marginTop: -that.$content.height() + 'px'
|
marginTop: -that.$content.height() + 'px'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function clickMenu(event, data) {
|
|
||||||
// fixme: not the best event name
|
|
||||||
that.triggerEvent('click', data);
|
|
||||||
}
|
|
||||||
function dblclickTitlebar(e) {
|
function dblclickTitlebar(e) {
|
||||||
if (!$(e.target).hasClass('OxButton')) {
|
if (!$(e.target).hasClass('OxButton')) {
|
||||||
$switch.trigger('click');
|
$switch.trigger('click');
|
||||||
|
|
Loading…
Reference in a new issue