Author: Yoda-BZH
Date: 2010-04-29 22:02:35 +0200 (Thu, 29 Apr 2010)
New Revision: 29320

Modified:
   plugins/ybNetworkWidgetsPlugin/trunk/lib/widget/sfWidgetFormIp.class.php
Log:
* Fix, if the field contains only a ".", NaN vas set in the field. parseInt('0' 
+ a number) will set the field to "0"



Modified: 
plugins/ybNetworkWidgetsPlugin/trunk/lib/widget/sfWidgetFormIp.class.php
===================================================================
--- plugins/ybNetworkWidgetsPlugin/trunk/lib/widget/sfWidgetFormIp.class.php    
2010-04-29 19:42:42 UTC (rev 29319)
+++ plugins/ybNetworkWidgetsPlugin/trunk/lib/widget/sfWidgetFormIp.class.php    
2010-04-29 20:02:35 UTC (rev 29320)
@@ -70,7 +70,7 @@
         currentInputVal = currentInput.val()
         if(110 == event.keyCode) { // dot
             // removing the trailing dot
-            currentInput.val(parseInt(currentInputVal));
+            currentInput.val(parseInt('0' + currentInputVal));
             // changing focus
             currentInput.next().focus();
             return;

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to