misc. changes
This commit is contained in:
parent
521d9dd5e5
commit
95f9149423
|
@ -827,7 +827,7 @@ requires
|
|||
if (arguments.length == 1) {
|
||||
$.each(arguments[0], function(event, fn) {
|
||||
Ox.Event.bind(that.id, event, fn);
|
||||
})
|
||||
});
|
||||
} else {
|
||||
Ox.Event.bind(that.id, arguments[0], arguments[1]);
|
||||
}
|
||||
|
@ -897,12 +897,12 @@ requires
|
|||
ret = that;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
};
|
||||
that.remove = function() {
|
||||
that.$element.remove();
|
||||
delete elements[that.ox];
|
||||
return that;
|
||||
}
|
||||
};
|
||||
that.triggerEvent = function() {
|
||||
/*
|
||||
triggerEvent(event, fn) or triggerEvent({event0: fn0, event1: fn1, ...})
|
||||
|
@ -915,7 +915,7 @@ requires
|
|||
Ox.Event.trigger(arguments[0] + "_" + self.options.id, arguments[1] || {});
|
||||
}
|
||||
return that;
|
||||
}
|
||||
};
|
||||
that.unbindEvent = function() {
|
||||
/*
|
||||
unbindEvent(event, fn) or unbindEvent({event0: fn0, event1: fn1, ...})
|
||||
|
@ -928,7 +928,7 @@ requires
|
|||
Ox.Event.unbind(that.id, arguments[0], arguments[1]);
|
||||
}
|
||||
return that;
|
||||
}
|
||||
};
|
||||
|
||||
// return
|
||||
return that;
|
||||
|
@ -1280,6 +1280,9 @@ requires
|
|||
callback();
|
||||
})
|
||||
}
|
||||
that.disableButtons = function() {
|
||||
// to be used on submit of form, like login
|
||||
};
|
||||
that.open = function() {
|
||||
if (!that.$layer.length) {
|
||||
that.$layer = new Ox.Element()
|
||||
|
@ -1302,6 +1305,15 @@ requires
|
|||
============================================================================
|
||||
*/
|
||||
|
||||
Ox.Form = function(options, self) {
|
||||
|
||||
var self = self || {},
|
||||
that = new Ox.Element("div", self)
|
||||
.defaults()
|
||||
.options();
|
||||
|
||||
};
|
||||
|
||||
/*
|
||||
----------------------------------------------------------------------------
|
||||
Ox.Button
|
||||
|
@ -1969,6 +1981,14 @@ requires
|
|||
|
||||
};
|
||||
|
||||
that.disableItem = function(id) {
|
||||
|
||||
};
|
||||
|
||||
that.enableItem = function(id) {
|
||||
|
||||
};
|
||||
|
||||
that.removeMenu = function() {
|
||||
|
||||
};
|
||||
|
@ -2408,6 +2428,10 @@ requires
|
|||
|
||||
};
|
||||
|
||||
that.getItem = function(id) {
|
||||
|
||||
};
|
||||
|
||||
that.hasEnabledItems = function() {
|
||||
var ret = false;
|
||||
$.each(that.items, function(i, item) {
|
||||
|
@ -2608,9 +2632,15 @@ requires
|
|||
that.$status.html(value ? oxui.symbols.check : "")
|
||||
} else if (key == "disabled") {
|
||||
that.toggleClass("disabled"); // fixme: this will only work if onChange is only invoked on actual change
|
||||
} else if (key == "title") {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
that.toggle = function() {
|
||||
// toggle id and title
|
||||
};
|
||||
|
||||
that.toggleChecked = function() {
|
||||
|
||||
};
|
||||
|
@ -2623,7 +2653,7 @@ requires
|
|||
that.options({
|
||||
title: that.$title.html() == self.options.title[0] ?
|
||||
self.options.title[1] : self.options.title[0]
|
||||
})
|
||||
});
|
||||
};
|
||||
|
||||
return that;
|
||||
|
@ -2791,6 +2821,10 @@ requires
|
|||
return that;
|
||||
};
|
||||
|
||||
Ox.TabPanel = function(options, self) {
|
||||
|
||||
};
|
||||
|
||||
})();
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue
Block a user