aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorCa-Phun Ung <pazu2k@gmail.com>2008-10-07 10:33:32 +0000
committerCa-Phun Ung <pazu2k@gmail.com>2008-10-07 10:33:32 +0000
commit3357c51b18443d6869ddc62c8a15f8a922f8cf7c (patch)
tree61ae16de602db6937b19f01db3f9b77fc33cf1c6 /ui
parenteb3e6499bfc716def73436a5e6d5b591130464a5 (diff)
downloadjquery-ui-3357c51b18443d6869ddc62c8a15f8a922f8cf7c.tar.gz
jquery-ui-3357c51b18443d6869ddc62c8a15f8a922f8cf7c.zip
Spinner: fixed incremental:false issue on mousedown (thanks cloudream)
Diffstat (limited to 'ui')
-rw-r--r--ui/ui.spinner.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/ui.spinner.js b/ui/ui.spinner.js
index 29eab908a..1b055221b 100644
--- a/ui/ui.spinner.js
+++ b/ui/ui.spinner.js
@@ -209,7 +209,7 @@ $.widget('ui.spinner', {
if (isNaN(this._getValue())) {
this._setValue(this.options.start);
}
- this._setValue(this._getValue() + (d == 'up' ? 1:-1) * (this.options.incremental && this.counter > 100 ? (this.counter > 200 ? 100 : 10) : 1) * this.options.stepping);
+ this._setValue(this._getValue() + (d == 'up' ? 1:-1) *(this.options.incremental && this.counter > 100 ? (this.counter > 200 ? 100 : 10) : 1) * this.options.stepping);
this._animate(d);
this._constrain();
if (this.counter) {
@@ -234,7 +234,7 @@ $.widget('ui.spinner', {
}
this.timer = window.setInterval(function() {
self[d](e);
- if (self.counter > 20) {
+ if (self.options.incremental && self.counter > 20) {
self._mousedown(20, d, e);
}
}, i);