You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by id...@apache.org on 2009/02/16 15:50:28 UTC

svn commit: r744926 - /myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js

Author: idus
Date: Mon Feb 16 14:50:24 2009
New Revision: 744926

URL: http://svn.apache.org/viewvc?rev=744926&view=rev
Log:
TOBAGO-626: small hack for event bubbling

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=744926&r1=744925&r2=744926&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 14:50:24 2009
@@ -1773,6 +1773,7 @@
   }
 };
 
+// XXX IE only
 Tobago.In.prototype.checkMaxLengthOnPaste = function(event) {
   if (!event) {
     event = window.event;
@@ -1783,9 +1784,8 @@
   if (input.value.length - range.text.length + pasteText.length > this.maxLength) {
     pasteText = pasteText.substring(0, this.maxLength - input.value.length + range.text.length);
     range.text = pasteText;
-    return false;
+    event.returnValue = false;
   }
-  return true;
 };
 
 Tobago.In.prototype.checkMaxLength = function(event) {