github github
  • Home
  • Pricing and Signup
  • Training
  • Gist
  • Blog
  • Login

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 921
    • 212
  • Source
  • Commits
  • Network (212)
  • Graphs
  • Tree: 85b8816

click here to add a description

click here to add a homepage

  • Switch Branches (8)
    • bind
    • devpreview
    • formcontrols
    • master
    • menu
    • panel
    • tooltip
    • widget-super
  • Switch Tags (21)
    • 1.9m2
    • 1.9m1
    • 1.8rc3
    • 1.8rc2
    • 1.8rc1
    • 1.8b1
    • 1.8a2
    • 1.8a1
    • 1.8.4
    • 1.8.3
    • 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

Datepicker: use a setTimeout 0 so the same code can run in IE (as other browsers) to set focus back to the datepicker text input if a month or year drop-down is clicked closed. Fixes #5897 - Datepicker: inconsistent behavior in IE when click to close month and year drop-downs
rdworth (author)
Wed Aug 04 02:39:54 -0700 2010
commit  85b8816fa9480005aedb
tree    5632d0da86e05f0cdc22
parent  26b2d2d8671a79ea99ff
M ui/jquery.ui.datepicker.js 7 ••••
Txt ui/jquery.ui.datepicker.js
  • View file @ 85b8816
... ...
@@ -846,8 +846,11 @@ $.extend(Datepicker.prototype, {
846 846
   _clickMonthYear: function(id) {
847 847
     var target = $(id);
848 848
     var inst = this._getInst(target[0]);
849  
-    if (inst.input && inst._selectingMonthYear && !$.browser.msie)
850  
-      inst.input.focus();
  849
+    if (inst.input && inst._selectingMonthYear) {
  850
+      setTimeout(function() {
  851
+        inst.input.focus();
  852
+      }, 0);
  853
+    }
851 854
     inst._selectingMonthYear = !inst._selectingMonthYear;
852 855
   },
853 856
 

0 notes on commit 85b8816

Please log in to comment.
Dedicated Server Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
  • Blog
  • Support
  • Training
  • Job Board
  • Shop
  • Contact
  • API
  • Status
  • © 2010 GitHub Inc. All rights reserved.
  • Terms of Service
  • Privacy
  • Security
  • English
  • Deutsch
  • Français
  • 日本語
  • Português (BR)
  • 中文
  • See all available languages

Your current locale selection: English. Choose another?

  • English
  • Afrikaans
  • Català
  • Čeština
  • Deutsch
  • Español
  • Français
  • Hrvatski
  • Indonesia
  • Italiano
  • 日本語
  • Nederlands
  • Norsk
  • Polski
  • Português (BR)
  • Српски
  • Svenska
  • 中文