diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2011-05-30 20:08:58 +0200 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2011-05-30 20:08:58 +0200 |
commit | 27a4fdd8ed4fe7733ea139022c04bd7ef8033cba (patch) | |
tree | d2bf357243b4f36db7ac05033a1287c2ca5e4464 | |
parent | 8c085cd27ce5d2c765a2d762a863e52d1fc6308c (diff) | |
download | jquery-ui-27a4fdd8ed4fe7733ea139022c04bd7ef8033cba.tar.gz jquery-ui-27a4fdd8ed4fe7733ea139022c04bd7ef8033cba.zip |
Spinner: disable text selection on buttons (plus minmal whitespace cleanup)
-rw-r--r-- | ui/jquery.ui.spinner.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/jquery.ui.spinner.js b/ui/jquery.ui.spinner.js index 4a23aca53..b4cefc982 100644 --- a/ui/jquery.ui.spinner.js +++ b/ui/jquery.ui.spinner.js @@ -63,6 +63,7 @@ $.widget( "ui.spinner", { // add buttons .append( self._buttonHtml() ) // add behaviours + .disableSelection() // TODO: user ._hoverable .hover(function() { if ( !options.disabled ) { @@ -252,7 +253,7 @@ $.widget( "ui.spinner", { this.counter > 20 ? this.counter > 100 ? this.counter > 200 - ? 100 + ? 100 : 10 : 2 : 1); |