Hi.

On 12/14/06, AKB <[EMAIL PROTECTED]> wrote:
>
> I have found a little bug while trying to use it (last version from
> http://www.softwareunity.com/sandbox/jqueryspinbtn/)
>
> It seems to fail when you set the min value to 0, like this:
>
> var myOptionsHour = { min: 0, max: 23, step: 1 }
> $("#someid").SpinButton(myOptionsHour);
>
> Everything works fine, but it allows you to spin to negative values, just
> doesn't respect the 0 min value.

Search for this line:

min: cfg && cfg.min ? Number(cfg.min) : null,

And replace with this:

min: cfg && cfg.min !== null ? Number(cfg.min) : null,

Then, if it worked, notify the plugin author.

-- 
Choan
<http://choangalvez.nom.es/>

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to