|
From: Thyamad c. <th...@us...> - 2005-12-24 02:41:44
|
Update of /cvsroot/thyapi/thyapi/thywidgets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4597/thywidgets Modified Files: thyeditbox.js Log Message: Commiting file additions and modification from SVN revision 2514 to 2515... Changes made by vinicius on 2005-12-24 04:35:16 +0100 (Sat, 24 Dec 2005) corresponding to SVN revision 2515 with message: Maxlength property included in thyEditBox Index: thyeditbox.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/thyeditbox.js,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** thyeditbox.js 1 Sep 2005 18:15:38 -0000 1.5 --- thyeditbox.js 24 Dec 2005 02:41:36 -0000 1.6 *************** *** 75,80 **** p.initThyEditBox = function() { - var self = this; - this.contents.elm.childNodes[0]._dynobj = this; } --- 75,78 ---- *************** *** 104,107 **** --- 102,106 ---- (this.readOnly ? 'readonly ': '')+ (this.disabled ? 'disabled ': '')+ + (this.maxLength ? 'maxlength="'+this.maxLength+'" ' : '')+ 'value="'+this._value+'" />' ); *************** *** 189,192 **** --- 188,210 ---- } + /** + * Method: setMaxLength + * + * Sets the maxlength property of the element + * + * Parameter: + * + * length - integer or false/null + */ + p.setMaxLength = function(length) + { + this.maxLength = length; + + if (this._created) + { + this.contents.elm.childNodes[0].maxLength = length; + } + } + /*************************************************************************\ * Private Methods * |