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