You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2009/02/16 14:20:44 UTC
svn commit: r744909 -
/myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Author: bommel
Date: Mon Feb 16 13:20:30 2009
New Revision: 744909
URL: http://svn.apache.org/viewvc?rev=744909&view=rev
Log:
(TOBAGO-626) Input length restriction for tc:textarea Can't really test and debug the paste event on ie (ubuntu).
Modified:
myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Modified: myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js?rev=744909&r1=744908&r2=744909&view=diff
==============================================================================
--- myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js (original)
+++ myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js Mon Feb 16 13:20:30 2009
@@ -1781,7 +1781,7 @@
var pasteText = window.clipboardData.getData("Text");
var range = document.selection.createRange();
if (input.value.length - range.text.length + pasteText.length > this.maxLength) {
- pasteText = pasteText.substring(0, maxLength - input.value.length + range.text.length);
+ pasteText = pasteText.substring(0, this.maxLength - input.value.length + range.text.length);
range.text = pasteText;
return false;
}