1
0
Fork 0
forked from 0x2620/oxjs

fix event handlers and split panel resize event

This commit is contained in:
rolux 2011-09-17 19:39:38 +02:00
commit da9e5dbb29
27 changed files with 722 additions and 118 deletions

View file

@ -1486,7 +1486,7 @@ Ox.List = function(options, self) {
function remove() {
that.triggerEvent('remove', item.id);
}
function submit(event, data) {
function submit(data) {
item.value = data.value;
//$input.loseFocus().remove();
// fixme: leaky, inputs remain in focus stack

View file

@ -259,7 +259,7 @@ Ox.TextList = function(options, self) {
that.$body.reloadPages();
}
function changeColumns(event, data) {
function changeColumns(data) {
var add,
ids = [];
Ox.forEach(data.selected, function(column) {
@ -522,6 +522,7 @@ Ox.TextList = function(options, self) {
function dragendResize(id, e) {
var pos = getColumnPositionById(id);
// fixme: shouldn't this be resizecolumn?
that.triggerEvent('columnresize', {
id: id,
width: self.columnWidths[pos]

View file

@ -196,7 +196,7 @@ Ox.TreeList = function(options, self) {
that.$element.removeItems(pos + 1, parseItems(item.items, item.level + 1).length);
}
function toggleItems(event, data) {
function toggleItems(data) {
data.ids.forEach(function(id, i) {
var item = getItemById(id);
if (item.items && data.expanded != !!item.expanded) {