github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 497
    • 79
  • Source
  • Commits
  • Network (79)
  • Graphs
  • Tree: 114c001

click here to add a description

click here to add a homepage

  • Switch Branches (7)
    • bind
    • devpreview
    • formcontrols
    • master
    • menu
    • panel
    • tooltip
  • Switch Tags (17)
    • 1.9m1
    • 1.8rc3
    • 1.8rc2
    • 1.8rc1
    • 1.8b1
    • 1.8a2
    • 1.8a1
    • 1.8.1
    • 1.8
    • 1.7
    • 1.6rc6
    • 1.6rc5
    • 1.6rc3
    • 1.6rc2
    • 1.6
    • 1.5.2
    • 1.5.1
  • Comments
  • Contributors
Sending Request…

The official jQuery user interface library. — Read more

  Cancel

http://jqueryui.com/

  Cancel
  • HTTP
  • Git Read-Only

This URL has Read+Write access

Slider: trim to max and min on UP DOWN LEFT RIGHT. Fixed #5591 - Slider: can go 
outside min and max with keyboard
rdworth (author)
Tue May 11 05:36:56 -0700 2010
commit  114c001aba3406e35e4f
tree    380194fea630bb4c7591
parent  5fd158053f01130e2ede
M ui/jquery.ui.slider.js 4 ••••
Txt ui/jquery.ui.slider.js
  • View file @ 114c001
... ...
@@ -191,14 +191,14 @@ $.widget( "ui.slider", $.ui.mouse, {
191 191
             if ( curVal === self._valueMax() ) {
192 192
               return;
193 193
             }
194  
-            newVal = curVal + step;
  194
+            newVal = self._trimAlignValue( curVal + step );
195 195
             break;
196 196
           case $.ui.keyCode.DOWN:
197 197
           case $.ui.keyCode.LEFT:
198 198
             if ( curVal === self._valueMin() ) {
199 199
               return;
200 200
             }
201  
-            newVal = curVal - step;
  201
+            newVal = self._trimAlignValue( curVal - step );
202 202
             break;
203 203
         }
204 204
   

0 notes on commit 114c001

Please log in to comment.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server