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

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 563
    • 91
  • Source
  • Commits
  • Network (91)
  • Graphs
  • Tree: b7c0823

click here to add a description

click here to add a homepage

  • Switch Branches (7)
    • bind
    • devpreview
    • formcontrols
    • master
    • menu
    • panel
    • tooltip
  • Switch Tags (18)
    • 1.9m1
    • 1.8rc3
    • 1.8rc2
    • 1.8rc1
    • 1.8b1
    • 1.8a2
    • 1.8a1
    • 1.8.2
    • 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 value to min and max when page_up or page_down is pressed. Fixed 
#5591 - Slider: can go below its defined minimum with PageDown
rdworth (author)
Tue May 11 04:31:48 -0700 2010
commit  b7c0823da65254f420e4
tree    f344bec014438f9cbe77
parent  b53b48b61834fc09fdcd
M ui/jquery.ui.slider.js 4 ••••
Txt ui/jquery.ui.slider.js
  • View file @ b7c0823
... ...
@@ -181,10 +181,10 @@ $.widget( "ui.slider", $.ui.mouse, {
181 181
             newVal = self._valueMax();
182 182
             break;
183 183
           case $.ui.keyCode.PAGE_UP:
184  
-            newVal = curVal + ( (self._valueMax() - self._valueMin()) / numPages );
  184
+            newVal = self._trimAlignValue( curVal + ( (self._valueMax() - self._valueMin()) / numPages ) );
185 185
             break;
186 186
           case $.ui.keyCode.PAGE_DOWN:
187  
-            newVal = curVal - ( (self._valueMax() - self._valueMin()) / numPages );
  187
+            newVal = self._trimAlignValue( curVal - ( (self._valueMax() - self._valueMin()) / numPages ) );
188 188
             break;
189 189
           case $.ui.keyCode.UP:
190 190
           case $.ui.keyCode.RIGHT:

0 notes on commit b7c0823

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