Development

Changeset 29320

You must first sign up to be able to contribute.

Changeset 29320

Show
Ignore:
Timestamp:
04/29/10 22:02:35 (3 years ago)
Author:
Yoda-BZH
Message:

* Fix, if the field contains only a ".", NaN vas set in the field. parseInt('0' + a number) will set the field to "0"

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/ybNetworkWidgetsPlugin/trunk/lib/widget/sfWidgetFormIp.class.php

    r29319 r29320  
    7171        if(110 == event.keyCode) { // dot 
    7272            // removing the trailing dot 
    73             currentInput.val(parseInt(currentInputVal)); 
     73            currentInput.val(parseInt('0' + currentInputVal)); 
    7474            // changing focus 
    7575            currentInput.next().focus();