diff options
author | Rafael Xavier de Souza <rxaviers@gmail.com> | 2013-11-30 10:22:17 -0200 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2015-01-29 17:47:48 -0500 |
commit | ffc8ab2710c2cf9769cbdc8b253e7a82e9e8a53f (patch) | |
tree | cc18b1738fa47a6e24c448ba79e625ceb995121b /demos/datepicker/localization.html | |
parent | ff4bfd643d4f30eb171ab8e40600fe8963ddfb1b (diff) | |
download | jquery-ui-ffc8ab2710c2cf9769cbdc8b253e7a82e9e8a53f.tar.gz jquery-ui-ffc8ab2710c2cf9769cbdc8b253e7a82e9e8a53f.zip |
Datepicker: Use Globalize 1.0.0
Diffstat (limited to 'demos/datepicker/localization.html')
-rw-r--r-- | demos/datepicker/localization.html | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/demos/datepicker/localization.html b/demos/datepicker/localization.html index b8c99547b..61aa7c9a2 100644 --- a/demos/datepicker/localization.html +++ b/demos/datepicker/localization.html @@ -6,8 +6,6 @@ <link rel="stylesheet" href="../../themes/base/all.css"> <script src="../../external/jquery/jquery.js"></script> <script src="../../external/globalize/globalize.js"></script> - <script src="../../external/globalize/globalize.culture.de-DE.js"></script> - <script src="../../external/globalize/globalize.culture.ja-JP.js"></script> <script src="../../external/date.js"></script> <script src="../../external/localization.js"></script> <script src="../../ui/core.js"></script> @@ -18,11 +16,11 @@ <link rel="stylesheet" href="../demos.css"> <script> $(function() { - Globalize.culture( "de-DE" ); + Globalize.locale( "de-DE" ); $( "#datepicker" ).datepicker(); $( "#locale" ).change(function() { - // TODO refresh the current value to convert to the selected culture - Globalize.culture( $(this).val() ); + // TODO refresh the current value to convert to the selected locale + Globalize.locale( $(this).val() ); }); }); </script> @@ -32,7 +30,6 @@ <p>Date: <input type="text" id="datepicker"/> <select id="locale"> <option value="de-DE" selected>German (Deutsch)</option> - <option value="ja-JP">Japanese (日本語</option> <option value="en">English</option> </select></p> |