From 95f9149423b88da021b1215d41389c7bcb333713 Mon Sep 17 00:00:00 2001 From: Rolux Date: Wed, 10 Feb 2010 22:07:26 +0530 Subject: [PATCH] misc. changes --- build/js/ox.ui.js | 46 ++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 40 insertions(+), 6 deletions(-) diff --git a/build/js/ox.ui.js b/build/js/ox.ui.js index f22c98c..1d20a4a 100644 --- a/build/js/ox.ui.js +++ b/build/js/ox.ui.js @@ -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) { + + }; + })(); /*