1
0
Fork 0
forked from 0x2620/oxjs

various improvements in OxJS and OxUI

This commit is contained in:
rolux 2011-04-29 14:40:51 +02:00
commit 7380595c7e
48 changed files with 184 additions and 161 deletions

View file

@ -4,7 +4,7 @@ Ox.Dialog = function(options, self) {
// fixme: dialog should be derived from a generic draggable
// fixme: buttons should have a close attribute, or the dialog a close id
var self = self || {},
that = new Ox.Element('div', self)
that = new Ox.Element({}, self)
.defaults({
title: '',
buttons: [],
@ -264,7 +264,7 @@ Ox.Dialog = function(options, self) {
});
}
self.onChange = function(key, value) {
self.setOption = function(key, value) {
if (key == 'buttons') {
loadButtons();
/*

View file

@ -2,7 +2,7 @@
Ox.Tooltip = function(options, self) {
var self = self || {},
that = new Ox.Element('div', self)
that = new Ox.Element({}, self)
.defaults({
animate: true,
title: ''
@ -15,7 +15,7 @@ Ox.Tooltip = function(options, self) {
opacity: 0
});
self.onChange = function(key, value) {
self.setOption = function(key, value) {
if (key == 'title') {
that.html(value);
}

View file

@ -2,7 +2,7 @@
Ox.Window = function(options, self) {
self = self || {},
that = new Ox.Element('div', self)
that = new Ox.Element({}, self)
.defaults({
draggable: true,
fullscreenable: true, // fixme: silly name
@ -25,7 +25,7 @@ Ox.Window = function(options, self) {
};
self.onChange = function() {
self.setOption = function() {
};