From c7da33a08c1a0a50253a9f8896915da012ace8f1 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 10 Feb 2010 21:19:33 +0530 Subject: [PATCH 1/2] support textarea as type for Ox.Input --- build/js/ox.ui.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build/js/ox.ui.js b/build/js/ox.ui.js index f22c98c..d18af48 100644 --- a/build/js/ox.ui.js +++ b/build/js/ox.ui.js @@ -1500,15 +1500,17 @@ requires Ox.Input = function(options, self) { var self = self || {}, - that = new Ox.Element("input", self) + that = new Ox.Element(options.type=='textarea'?'textarea':'input', self) .defaults({ placeholder: "", size: "medium", type: "text" }) .options(options || {}); + if(options.type != 'textarea') { + that.attr({type: self.options.type}) + } that.attr({ - type: self.options.type, placeholder: self.options.placeholder }) .addClass("OxInput Ox" + From ee677fbe8aa6fabd168edc908952328ccb5a3154 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 10 Feb 2010 21:19:57 +0530 Subject: [PATCH 2/2] cleanup Ox.Menu docs --- build/js/ox.ui.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build/js/ox.ui.js b/build/js/ox.ui.js index d18af48..0d5b373 100644 --- a/build/js/ox.ui.js +++ b/build/js/ox.ui.js @@ -1994,6 +1994,7 @@ requires Ox.Menu = function(options, self) { /* + options: element the element the menu is attached to id the menu id @@ -2002,12 +2003,14 @@ requires offset offset of the menu, in px parent the supermenu, if any selected the position of the selected item - side "bottom" or "right" + side open to "bottom" or "right" size "large", "medium" or "small" - events + + events: change_groupId {id, value} checked item of a group has changed click_itemId item not belonging to a group was clicked hide_menuId menu was hidden + */ var self = self || {},