From: <Se...@us...> - 2010-04-21 19:08:28
|
Revision: 4399 http://jaffa.svn.sourceforge.net/jaffa/?rev=4399&view=rev Author: SeanZ Date: 2010-04-21 19:08:22 +0000 (Wed, 21 Apr 2010) Log Message: ----------- added getRadioByValue() to return the radio box by its value. Modified Paths: -------------- trunk/JaffaRIA/source/html/js/extjs/ext-overrides.js Modified: trunk/JaffaRIA/source/html/js/extjs/ext-overrides.js =================================================================== --- trunk/JaffaRIA/source/html/js/extjs/ext-overrides.js 2010-04-21 16:53:54 UTC (rev 4398) +++ trunk/JaffaRIA/source/html/js/extjs/ext-overrides.js 2010-04-21 19:08:22 UTC (rev 4399) @@ -710,5 +710,15 @@ if (typeof v != 'boolean') { this.items.itemAt(0).setValue(v); } + }, + getRadioByValue: function(v) { + var o; + this.items.each(function(itm) { + if (itm.inputValue == v) { + o = itm; + return false; + } + }); + return o; } }); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |