├── GPL-LICENSE.txt ├── MIT-LICENSE.txt ├── README.md ├── bower.json ├── i18n ├── i18n.html ├── jquery.ui.timepicker-cs.js ├── jquery.ui.timepicker-de.js ├── jquery.ui.timepicker-es.js ├── jquery.ui.timepicker-fr.js ├── jquery.ui.timepicker-hr.js ├── jquery.ui.timepicker-hu.js ├── jquery.ui.timepicker-it.js ├── jquery.ui.timepicker-ja.js ├── jquery.ui.timepicker-mk.js ├── jquery.ui.timepicker-nl.js ├── jquery.ui.timepicker-pl.js ├── jquery.ui.timepicker-pt-BR.js ├── jquery.ui.timepicker-ru.js ├── jquery.ui.timepicker-sk.js ├── jquery.ui.timepicker-sl.js ├── jquery.ui.timepicker-sv.js └── jquery.ui.timepicker-tr.js ├── include ├── jquery-1.9.0.min.js └── ui-1.10.0 │ ├── jquery.ui.core.min.js │ ├── jquery.ui.position.min.js │ ├── jquery.ui.tabs.min.js │ ├── jquery.ui.widget.min.js │ └── ui-lightness │ ├── images │ ├── ui-bg_diagonals-thick_18_b81900_40x40.png │ ├── ui-bg_diagonals-thick_20_666666_40x40.png │ ├── ui-bg_flat_10_000000_40x100.png │ ├── ui-bg_glass_100_f6f6f6_1x400.png │ ├── ui-bg_glass_100_fdf5ce_1x400.png │ ├── ui-bg_glass_65_ffffff_1x400.png │ ├── ui-bg_gloss-wave_35_f6a828_500x100.png │ ├── ui-bg_highlight-soft_100_eeeeee_1x100.png │ ├── ui-bg_highlight-soft_75_ffe45c_1x100.png │ ├── ui-icons_222222_256x240.png │ ├── ui-icons_228ef1_256x240.png │ ├── ui-icons_ef8c08_256x240.png │ ├── ui-icons_ffd27a_256x240.png │ └── ui-icons_ffffff_256x240.png │ └── jquery-ui-1.10.0.custom.min.css ├── index.html ├── jquery.ui.timepicker.css ├── jquery.ui.timepicker.js ├── legacy_1.2.6 ├── index.html ├── jquery-1.2.6.js ├── jquery.proxy.fix.js └── jquery.ui.1.6.all.js ├── tests ├── dialog.html └── jquery.ui.dialog.min.js └── timepicker.png /GPL-LICENSE.txt: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc. 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES.""'''''' 279 | -------------------------------------------------------------------------------- /MIT-LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011 John Resig, http://jquery.com/ 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | jQuery UI Timepicker by François Gélinas 2 | ======================================== 3 | 4 | What 5 | ---- 6 | This is a jQuery UI time picker plugin build to match with other official jQuery UI widgets. 7 | Based on the existing date picker, it will blend nicely with your form and use your selected jQuery UI theme. 8 | The plugin is very easy to integrate in your form for you time (hours / minutes) inputs. 9 | 10 | Why 11 | --- 12 | I built this plugin because I could not find a plugin that did what I needed. 13 | 14 | Doc 15 | --- 16 | Examples are available on the main page at [http://fgelinas.com/code/timepicker](http://fgelinas.com/code/timepicker) 17 | Most option parameters are documented at [http://fgelinas.com/code/timepicker/#usage](http://fgelinas.com/code/timepicker/#usage) 18 | 19 | Requirements 20 | ------------ 21 | Work with jQuery 1.5.1 and more, also require jQuery UI core. 22 | There is a legacy version of the plugin made to work with older jQuery 1.2.6 and UI 1.6 at [http://fgelinas.com/code/timepicker/#get_timepicker](http://fgelinas.com/code/timepicker/#get_timepicker) 23 | 24 | Licenses 25 | -------- 26 | The plugin is licensed under the [MIT](https://github.com/fgelinas/timepicker/blob/master/MIT-LICENSE.txt) and [GPL](https://github.com/fgelinas/timepicker/blob/master/GPL-LICENSE.txt) licenses. 27 | 28 | Other Stuff 29 | ----------- 30 | There is a jsFiddle page [here](http://jsfiddle.net/fgelinas/R6jLt/) with basic implementation for testing. -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery.ui.timepicker", 3 | "version": "0.3.3", 4 | "homepage": "https://github.com/fgelinas/timepicker", 5 | "authors": [ 6 | "Francois Gelinas " 7 | ], 8 | "description": "jQuery UI Timepicker", 9 | "main": "jquery.ui.timepicker.css", 10 | "keywords": [ 11 | "time", 12 | "jquery" 13 | ], 14 | "license": "MIT", 15 | "ignore": [ 16 | "**/.*", 17 | "node_modules", 18 | "bower_components", 19 | "test", 20 | "tests" 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /i18n/i18n.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Internationalisation page for the jquery ui timepicker 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 66 | 67 | 68 | 89 | 90 |
91 | 92 |
93 | 94 |
95 | 96 | List of localisations : 97 | 168 | 169 | 170 | -------------------------------------------------------------------------------- /i18n/jquery.ui.timepicker-cs.js: -------------------------------------------------------------------------------- 1 | /* Czech initialisation for the timepicker plugin */ 2 | /* Written by David Spohr (spohr.david at gmail). */ 3 | jQuery(function($){ 4 | $.timepicker.regional['cs'] = { 5 | hourText: 'Hodiny', 6 | minuteText: 'Minuty', 7 | amPmText: ['dop.', 'odp.'] , 8 | closeButtonText: 'Zavřít', 9 | nowButtonText: 'Nyní', 10 | deselectButtonText: 'Odoznačit' } 11 | $.timepicker.setDefaults($.timepicker.regional['cs']); 12 | }); 13 | -------------------------------------------------------------------------------- /i18n/jquery.ui.timepicker-de.js: -------------------------------------------------------------------------------- 1 | /* German initialisation for the timepicker plugin */ 2 | /* Written by Lowie Hulzinga. */ 3 | jQuery(function($){ 4 | $.timepicker.regional['de'] = { 5 | hourText: 'Stunde', 6 | minuteText: 'Minuten', 7 | amPmText: ['AM', 'PM'] , 8 | closeButtonText: 'Beenden', 9 | nowButtonText: 'Aktuelle Zeit', 10 | deselectButtonText: 'Wischen' } 11 | $.timepicker.setDefaults($.timepicker.regional['de']); 12 | }); 13 | -------------------------------------------------------------------------------- /i18n/jquery.ui.timepicker-es.js: -------------------------------------------------------------------------------- 1 | /* Spanish initialisation for the jQuery time picker plugin. */ 2 | /* Writen by Jandro González (agonzalezalves@gmail.com) */ 3 | jQuery(function($){ 4 | $.timepicker.regional['es'] = { 5 | hourText: 'Hora', 6 | minuteText: 'Minuto', 7 | amPmText: ['AM', 'PM'], 8 | closeButtonText: 'Aceptar', 9 | nowButtonText: 'Ahora', 10 | deselectButtonText: 'Deseleccionar' } 11 | $.timepicker.setDefaults($.timepicker.regional['es']); 12 | }); 13 | -------------------------------------------------------------------------------- /i18n/jquery.ui.timepicker-fr.js: -------------------------------------------------------------------------------- 1 | /* French initialisation for the jQuery time picker plugin. */ 2 | /* Written by Bernd Plagge (bplagge@choicenet.ne.jp), 3 | Francois Gelinas (frank@fgelinas.com) */ 4 | jQuery(function($){ 5 | $.timepicker.regional['fr'] = { 6 | hourText: 'Heures', 7 | minuteText: 'Minutes', 8 | amPmText: ['AM', 'PM'], 9 | closeButtonText: 'Fermer', 10 | nowButtonText: 'Maintenant', 11 | deselectButtonText: 'Désélectionner' } 12 | $.timepicker.setDefaults($.timepicker.regional['fr']); 13 | }); -------------------------------------------------------------------------------- /i18n/jquery.ui.timepicker-hr.js: -------------------------------------------------------------------------------- 1 | /* Croatian/Bosnian initialisation for the timepicker plugin */ 2 | /* Written by Rene Brakus (rene.brakus@infobip.com). */ 3 | jQuery(function($){ 4 | $.timepicker.regional['hr'] = { 5 | hourText: 'Sat', 6 | minuteText: 'Minuta', 7 | amPmText: ['Prijepodne', 'Poslijepodne'], 8 | closeButtonText: 'Zatvoriti', 9 | nowButtonText: 'Sada', 10 | deselectButtonText: 'Poništite'} 11 | 12 | $.timepicker.setDefaults($.timepicker.regional['hr']); 13 | }); -------------------------------------------------------------------------------- /i18n/jquery.ui.timepicker-hu.js: -------------------------------------------------------------------------------- 1 | /* Hungarian initialisation for the timepicker plugin */ 2 | /* Written by Bálint Dávid Tarcsa. */ 3 | jQuery(function($){ 4 | $.timepicker.regional['hu'] = { 5 | hourText: 'Óra', 6 | minuteText: 'Perc', 7 | amPmText: ['De.', 'Du.'] , 8 | closeButtonText: 'Kész', 9 | nowButtonText: 'Most', 10 | deselectButtonText: 'Törlés' } 11 | $.timepicker.setDefaults($.timepicker.regional['hu']); 12 | }); -------------------------------------------------------------------------------- /i18n/jquery.ui.timepicker-it.js: -------------------------------------------------------------------------------- 1 | /* Italian initialisation for the jQuery time picker plugin. */ 2 | /* Written by Serge Margarita (serge.margarita@gmail.com) */ 3 | jQuery(function($){ 4 | $.timepicker.regional['it'] = { 5 | hourText: 'Ore', 6 | minuteText: 'Minuti', 7 | amPmText: ['AM', 'PM'], 8 | closeButtonText: 'Chiudi', 9 | nowButtonText: 'Adesso', 10 | deselectButtonText: 'Svuota' } 11 | $.timepicker.setDefaults($.timepicker.regional['it']); 12 | }); -------------------------------------------------------------------------------- /i18n/jquery.ui.timepicker-ja.js: -------------------------------------------------------------------------------- 1 | /* Japanese initialisation for the jQuery time picker plugin. */ 2 | /* Written by Bernd Plagge (bplagge@choicenet.ne.jp). */ 3 | jQuery(function($){ 4 | $.timepicker.regional['ja'] = { 5 | hourText: '時間', 6 | minuteText: '分', 7 | amPmText: ['午前', '午後'], 8 | closeButtonText: '閉じる', 9 | nowButtonText: '現時', 10 | deselectButtonText: '選択解除' } 11 | $.timepicker.setDefaults($.timepicker.regional['ja']); 12 | }); 13 | -------------------------------------------------------------------------------- /i18n/jquery.ui.timepicker-mk.js: -------------------------------------------------------------------------------- 1 | /* Macedonian initialisation for the timepicker plugin */ 2 | /* Written by Stojance Panov. */ 3 | jQuery(function($){ 4 | $.timepicker.regional['mk'] = { 5 | hourText: 'Час', 6 | minuteText: 'Минути', 7 | amPmText: ['Претпладне', 'Попладне'], 8 | closeButtonText: 'Затвори', 9 | nowButtonText: 'Сега', 10 | deselectButtonText: 'Поништи'} 11 | 12 | $.timepicker.setDefaults($.timepicker.regional['mk']); 13 | }); -------------------------------------------------------------------------------- /i18n/jquery.ui.timepicker-nl.js: -------------------------------------------------------------------------------- 1 | /* Nederlands initialisation for the timepicker plugin */ 2 | /* Written by Lowie Hulzinga. */ 3 | jQuery(function($){ 4 | $.timepicker.regional['nl'] = { 5 | hourText: 'Uren', 6 | minuteText: 'Minuten', 7 | amPmText: ['AM', 'PM'], 8 | closeButtonText: 'Sluiten', 9 | nowButtonText: 'Actuele tijd', 10 | deselectButtonText: 'Wissen' } 11 | $.timepicker.setDefaults($.timepicker.regional['nl']); 12 | }); -------------------------------------------------------------------------------- /i18n/jquery.ui.timepicker-pl.js: -------------------------------------------------------------------------------- 1 | /* Polish initialisation for the timepicker plugin */ 2 | /* Written by Mateusz Wadolkowski (mw@pcdoctor.pl). */ 3 | jQuery(function($){ 4 | $.timepicker.regional['pl'] = { 5 | hourText: 'Godziny', 6 | minuteText: 'Minuty', 7 | amPmText: ['', ''], 8 | closeButtonText: 'Zamknij', 9 | nowButtonText: 'Teraz', 10 | deselectButtonText: 'Odznacz'} 11 | $.timepicker.setDefaults($.timepicker.regional['pl']); 12 | }); -------------------------------------------------------------------------------- /i18n/jquery.ui.timepicker-pt-BR.js: -------------------------------------------------------------------------------- 1 | /* Brazilan initialisation for the timepicker plugin */ 2 | /* Written by Daniel Almeida (quantodaniel@gmail.com). */ 3 | jQuery(function($){ 4 | $.timepicker.regional['pt-BR'] = { 5 | hourText: 'Hora', 6 | minuteText: 'Minuto', 7 | amPmText: ['AM', 'PM'], 8 | closeButtonText: 'Fechar', 9 | nowButtonText: 'Agora', 10 | deselectButtonText: 'Limpar' } 11 | $.timepicker.setDefaults($.timepicker.regional['pt-BR']); 12 | }); -------------------------------------------------------------------------------- /i18n/jquery.ui.timepicker-ru.js: -------------------------------------------------------------------------------- 1 | /* Russian initialisation for the jQuery time picker plugin. */ 2 | /* Writen by Zakhar Day (zakhar.day@gmail.com) */ 3 | jQuery(function($){ 4 | $.timepicker.regional['ru'] = { 5 | hourText: 'Часы', 6 | minuteText: 'Минуты', 7 | amPmText: ['AM', 'PM'], 8 | closeButtonText: 'Готово', 9 | nowButtonText: 'Сейчас', 10 | deselectButtonText: 'Снять выделение' } 11 | $.timepicker.setDefaults($.timepicker.regional['ru']); 12 | }); -------------------------------------------------------------------------------- /i18n/jquery.ui.timepicker-sk.js: -------------------------------------------------------------------------------- 1 | /* Slovak localization for the timepicker plugin */ 2 | /* Written by Erich Stark (erich at stark.codes). */ 3 | jQuery(function ($) { 4 | $.timepicker.regional['sk'] = { 5 | hourText: 'Hodiny', 6 | minuteText: 'Minúty', 7 | amPmText: ['dop.', 'pop.'], 8 | closeButtonText: 'Zavrieť', 9 | nowButtonText: 'Teraz', 10 | deselectButtonText: 'Odznačit' 11 | }; 12 | $.timepicker.setDefaults($.timepicker.regional['sk']); 13 | }); -------------------------------------------------------------------------------- /i18n/jquery.ui.timepicker-sl.js: -------------------------------------------------------------------------------- 1 | /* Slovenian localization for the jQuery time picker plugin. */ 2 | /* Written by Blaž Maležič (blaz@malezic.si) */ 3 | jQuery(function($){ 4 | $.timepicker.regional['sl'] = { 5 | hourText: 'Ure', 6 | minuteText: 'Minute', 7 | amPmText: ['AM', 'PM'], 8 | closeButtonText: 'Zapri', 9 | nowButtonText: 'Zdaj', 10 | deselectButtonText: 'Pobriši' } 11 | $.timepicker.setDefaults($.timepicker.regional['sl']); 12 | }); 13 | -------------------------------------------------------------------------------- /i18n/jquery.ui.timepicker-sv.js: -------------------------------------------------------------------------------- 1 | /* Swedish initialisation for the timepicker plugin */ 2 | /* Written by Björn Westlin (bjorn.westlin@su.se). */ 3 | jQuery(function($){ 4 | $.timepicker.regional['sv'] = { 5 | hourText: 'Timme', 6 | minuteText: 'Minut', 7 | amPmText: ['AM', 'PM'] , 8 | closeButtonText: 'Stäng', 9 | nowButtonText: 'Nu', 10 | deselectButtonText: 'Rensa' } 11 | $.timepicker.setDefaults($.timepicker.regional['sv']); 12 | }); 13 | -------------------------------------------------------------------------------- /i18n/jquery.ui.timepicker-tr.js: -------------------------------------------------------------------------------- 1 | /* Turkish initialisation for the jQuery time picker plugin. */ 2 | /* Written by Mutlu Tevfik Koçak (mtkocak@gmail.com) */ 3 | jQuery(function($){ 4 | $.timepicker.regional['tr'] = { 5 | hourText: 'Saat', 6 | minuteText: 'Dakika', 7 | amPmText: ['AM', 'PM'], 8 | closeButtonText: 'Kapat', 9 | nowButtonText: 'Şu anda', 10 | deselectButtonText: 'Seçimi temizle' } 11 | $.timepicker.setDefaults($.timepicker.regional['tr']); 12 | }); -------------------------------------------------------------------------------- /include/ui-1.10.0/jquery.ui.core.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery UI - v1.10.0 - 2013-01-24 2 | * http://jqueryui.com 3 | * Includes: jquery.ui.core.js 4 | * Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ 5 | (function(e,t){function i(t,n){var r,i,o,u=t.nodeName.toLowerCase();return"area"===u?(r=t.parentNode,i=r.name,!t.href||!i||r.nodeName.toLowerCase()!=="map"?!1:(o=e("img[usemap=#"+i+"]")[0],!!o&&s(o))):(/input|select|textarea|button|object/.test(u)?!t.disabled:"a"===u?t.href||n:n)&&s(t)}function s(t){return e.expr.filters.visible(t)&&!e(t).parents().addBack().filter(function(){return e.css(this,"visibility")==="hidden"}).length}var n=0,r=/^ui-id-\d+$/;e.ui=e.ui||{};if(e.ui.version)return;e.extend(e.ui,{version:"1.10.0",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),e.fn.extend({_focus:e.fn.focus,focus:function(t,n){return typeof t=="number"?this.each(function(){var r=this;setTimeout(function(){e(r).focus(),n&&n.call(r)},t)}):this._focus.apply(this,arguments)},scrollParent:function(){var t;return e.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?t=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.css(this,"position"))&&/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0):t=this.parents().filter(function(){return/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!t.length?e(document):t},zIndex:function(n){if(n!==t)return this.css("zIndex",n);if(this.length){var r=e(this[0]),i,s;while(r.length&&r[0]!==document){i=r.css("position");if(i==="absolute"||i==="relative"||i==="fixed"){s=parseInt(r.css("zIndex"),10);if(!isNaN(s)&&s!==0)return s}r=r.parent()}}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++n)})},removeUniqueId:function(){return this.each(function(){r.test(this.id)&&e(this).removeAttr("id")})}}),e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(n){return!!e.data(n,t)}}):function(t,n,r){return!!e.data(t,r[3])},focusable:function(t){return i(t,!isNaN(e.attr(t,"tabindex")))},tabbable:function(t){var n=e.attr(t,"tabindex"),r=isNaN(n);return(r||n>=0)&&i(t,!r)}}),e("").outerWidth(1).jquery||e.each(["Width","Height"],function(n,r){function u(t,n,r,s){return e.each(i,function(){n-=parseFloat(e.css(t,"padding"+this))||0,r&&(n-=parseFloat(e.css(t,"border"+this+"Width"))||0),s&&(n-=parseFloat(e.css(t,"margin"+this))||0)}),n}var i=r==="Width"?["Left","Right"]:["Top","Bottom"],s=r.toLowerCase(),o={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+r]=function(n){return n===t?o["inner"+r].call(this):this.each(function(){e(this).css(s,u(this,n)+"px")})},e.fn["outer"+r]=function(t,n){return typeof t!="number"?o["outer"+r].call(this,t):this.each(function(){e(this).css(s,u(this,t,!0,n)+"px")})}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}),e("").data("a-b","a").removeData("a-b").data("a-b")&&(e.fn.removeData=function(t){return function(n){return arguments.length?t.call(this,e.camelCase(n)):t.call(this)}}(e.fn.removeData)),e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),e.support.selectstart="onselectstart"in document.createElement("div"),e.fn.extend({disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),e.extend(e.ui,{plugin:{add:function(t,n,r){var i,s=e.ui[t].prototype;for(i in r)s.plugins[i]=s.plugins[i]||[],s.plugins[i].push([n,r[i]])},call:function(e,t,n){var r,i=e.plugins[t];if(!i||!e.element[0].parentNode||e.element[0].parentNode.nodeType===11)return;for(r=0;r0?!0:(t[r]=1,i=t[r]>0,t[r]=0,i)}})})(jQuery); -------------------------------------------------------------------------------- /include/ui-1.10.0/jquery.ui.position.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery UI - v1.10.0 - 2013-01-24 2 | * http://jqueryui.com 3 | * Includes: jquery.ui.position.js 4 | * Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ 5 | (function(e,t){function h(e,t,n){return[parseInt(e[0],10)*(l.test(e[0])?t/100:1),parseInt(e[1],10)*(l.test(e[1])?n/100:1)]}function p(t,n){return parseInt(e.css(t,n),10)||0}function d(t){var n=t[0];return n.nodeType===9?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:e.isWindow(n)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:n.preventDefault?{width:0,height:0,offset:{top:n.pageY,left:n.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}e.ui=e.ui||{};var n,r=Math.max,i=Math.abs,s=Math.round,o=/left|center|right/,u=/top|center|bottom/,a=/[\+\-]\d+%?/,f=/^\w+/,l=/%$/,c=e.fn.position;e.position={scrollbarWidth:function(){if(n!==t)return n;var r,i,s=e("
"),o=s.children()[0];return e("body").append(s),r=o.offsetWidth,s.css("overflow","scroll"),i=o.offsetWidth,r===i&&(i=s[0].clientWidth),s.remove(),n=r-i},getScrollInfo:function(t){var n=t.isWindow?"":t.element.css("overflow-x"),r=t.isWindow?"":t.element.css("overflow-y"),i=n==="scroll"||n==="auto"&&t.width0?"right":"center",vertical:u<0?"top":o>0?"bottom":"middle"};lr(i(o),i(u))?h.important="horizontal":h.important="vertical",t.using.call(this,e,h)}),a.offset(e.extend(C,{using:u}))})},e.ui.position={fit:{left:function(e,t){var n=t.within,i=n.isWindow?n.scrollLeft:n.offset.left,s=n.width,o=e.left-t.collisionPosition.marginLeft,u=i-o,a=o+t.collisionWidth-s-i,f;t.collisionWidth>s?u>0&&a<=0?(f=e.left+u+t.collisionWidth-s-i,e.left+=u-f):a>0&&u<=0?e.left=i:u>a?e.left=i+s-t.collisionWidth:e.left=i:u>0?e.left+=u:a>0?e.left-=a:e.left=r(e.left-o,e.left)},top:function(e,t){var n=t.within,i=n.isWindow?n.scrollTop:n.offset.top,s=t.within.height,o=e.top-t.collisionPosition.marginTop,u=i-o,a=o+t.collisionHeight-s-i,f;t.collisionHeight>s?u>0&&a<=0?(f=e.top+u+t.collisionHeight-s-i,e.top+=u-f):a>0&&u<=0?e.top=i:u>a?e.top=i+s-t.collisionHeight:e.top=i:u>0?e.top+=u:a>0?e.top-=a:e.top=r(e.top-o,e.top)}},flip:{left:function(e,t){var n=t.within,r=n.offset.left+n.scrollLeft,s=n.width,o=n.isWindow?n.scrollLeft:n.offset.left,u=e.left-t.collisionPosition.marginLeft,a=u-o,f=u+t.collisionWidth-s-o,l=t.my[0]==="left"?-t.elemWidth:t.my[0]==="right"?t.elemWidth:0,c=t.at[0]==="left"?t.targetWidth:t.at[0]==="right"?-t.targetWidth:0,h=-2*t.offset[0],p,d;if(a<0){p=e.left+l+c+h+t.collisionWidth-s-r;if(p<0||p0){d=e.left-t.collisionPosition.marginLeft+l+c+h-o;if(d>0||i(d)a&&(v<0||v0&&(d=e.top-t.collisionPosition.marginTop+c+h+p-o,e.top+c+h+p>f&&(d>0||i(d)10&&i<11,t.innerHTML="",n.removeChild(t)}()})(jQuery); -------------------------------------------------------------------------------- /include/ui-1.10.0/jquery.ui.tabs.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery UI - v1.10.0 - 2013-01-24 2 | * http://jqueryui.com 3 | * Includes: jquery.ui.tabs.js 4 | * Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ 5 | (function(e,t){function i(){return++n}function s(e){return e.hash.length>1&&decodeURIComponent(e.href.replace(r,""))===decodeURIComponent(location.href.replace(r,""))}var n=0,r=/#.*$/;e.widget("ui.tabs",{version:"1.10.0",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var t=this,n=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",n.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(t){e(this).is(".ui-state-disabled")&&t.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){e(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this._processTabs(),n.active=this._initialActive(),e.isArray(n.disabled)&&(n.disabled=e.unique(n.disabled.concat(e.map(this.tabs.filter(".ui-state-disabled"),function(e){return t.tabs.index(e)}))).sort()),this.options.active!==!1&&this.anchors.length?this.active=this._findActive(n.active):this.active=e(),this._refresh(),this.active.length&&this.load(n.active)},_initialActive:function(){var t=this.options.active,n=this.options.collapsible,r=location.hash.substring(1);if(t===null){r&&this.tabs.each(function(n,i){if(e(i).attr("aria-controls")===r)return t=n,!1}),t===null&&(t=this.tabs.index(this.tabs.filter(".ui-tabs-active")));if(t===null||t===-1)t=this.tabs.length?0:!1}return t!==!1&&(t=this.tabs.index(this.tabs.eq(t)),t===-1&&(t=n?!1:0)),!n&&t===!1&&this.anchors.length&&(t=0),t},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):e()}},_tabKeydown:function(t){var n=e(this.document[0].activeElement).closest("li"),r=this.tabs.index(n),i=!0;if(this._handlePageNav(t))return;switch(t.keyCode){case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:r++;break;case e.ui.keyCode.UP:case e.ui.keyCode.LEFT:i=!1,r--;break;case e.ui.keyCode.END:r=this.anchors.length-1;break;case e.ui.keyCode.HOME:r=0;break;case e.ui.keyCode.SPACE:t.preventDefault(),clearTimeout(this.activating),this._activate(r);return;case e.ui.keyCode.ENTER:t.preventDefault(),clearTimeout(this.activating),this._activate(r===this.options.active?!1:r);return;default:return}t.preventDefault(),clearTimeout(this.activating),r=this._focusNextTab(r,i),t.ctrlKey||(n.attr("aria-selected","false"),this.tabs.eq(r).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",r)},this.delay))},_panelKeydown:function(t){if(this._handlePageNav(t))return;t.ctrlKey&&t.keyCode===e.ui.keyCode.UP&&(t.preventDefault(),this.active.focus())},_handlePageNav:function(t){if(t.altKey&&t.keyCode===e.ui.keyCode.PAGE_UP)return this._activate(this._focusNextTab(this.options.active-1,!1)),!0;if(t.altKey&&t.keyCode===e.ui.keyCode.PAGE_DOWN)return this._activate(this._focusNextTab(this.options.active+1,!0)),!0},_findNextTab:function(t,n){function i(){return t>r&&(t=0),t<0&&(t=r),t}var r=this.tabs.length-1;while(e.inArray(i(),this.options.disabled)!==-1)t=n?t+1:t-1;return t},_focusNextTab:function(e,t){return e=this._findNextTab(e,t),this.tabs.eq(e).focus(),e},_setOption:function(e,t){if(e==="active"){this._activate(t);return}if(e==="disabled"){this._setupDisabled(t);return}this._super(e,t),e==="collapsible"&&(this.element.toggleClass("ui-tabs-collapsible",t),!t&&this.options.active===!1&&this._activate(0)),e==="event"&&this._setupEvents(t),e==="heightStyle"&&this._setupHeightStyle(t)},_tabId:function(e){return e.attr("aria-controls")||"ui-tabs-"+i()},_sanitizeSelector:function(e){return e?e.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,n=this.tablist.children(":has(a[href])");t.disabled=e.map(n.filter(".ui-state-disabled"),function(e){return n.index(e)}),this._processTabs(),t.active===!1||!this.anchors.length?(t.active=!1,this.active=e()):this.active.length&&!e.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=e()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var t=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist"),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return e("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=e(),this.anchors.each(function(n,r){var i,o,u,a=e(r).uniqueId().attr("id"),f=e(r).closest("li"),l=f.attr("aria-controls");s(r)?(i=r.hash,o=t.element.find(t._sanitizeSelector(i))):(u=t._tabId(f),i="#"+u,o=t.element.find(i),o.length||(o=t._createPanel(u),o.insertAfter(t.panels[n-1]||t.tablist)),o.attr("aria-live","polite")),o.length&&(t.panels=t.panels.add(o)),l&&f.data("ui-tabs-aria-controls",l),f.attr({"aria-controls":i.substring(1),"aria-labelledby":a}),o.attr("aria-labelledby",a)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(t){return e("
").attr("id",t).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(t){e.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1);for(var n=0,r;r=this.tabs[n];n++)t===!0||e.inArray(n,t)!==-1?e(r).addClass("ui-state-disabled").attr("aria-disabled","true"):e(r).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=t},_setupEvents:function(t){var n={click:function(e){e.preventDefault()}};t&&e.each(t.split(" "),function(e,t){n[t]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,n),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var n,r=this.element.parent();t==="fill"?(n=r.height(),n-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=e(this),r=t.css("position");if(r==="absolute"||r==="fixed")return;n-=t.outerHeight(!0)}),this.element.children().not(this.panels).each(function(){n-=e(this).outerHeight(!0)}),this.panels.each(function(){e(this).height(Math.max(0,n-e(this).innerHeight()+e(this).height()))}).css("overflow","auto")):t==="auto"&&(n=0,this.panels.each(function(){n=Math.max(n,e(this).height("").height())}).height(n))},_eventHandler:function(t){var n=this.options,r=this.active,i=e(t.currentTarget),s=i.closest("li"),o=s[0]===r[0],u=o&&n.collapsible,a=u?e():this._getPanelForTab(s),f=r.length?this._getPanelForTab(r):e(),l={oldTab:r,oldPanel:f,newTab:u?e():s,newPanel:a};t.preventDefault();if(s.hasClass("ui-state-disabled")||s.hasClass("ui-tabs-loading")||this.running||o&&!n.collapsible||this._trigger("beforeActivate",t,l)===!1)return;n.active=u?!1:this.tabs.index(s),this.active=o?e():s,this.xhr&&this.xhr.abort(),!f.length&&!a.length&&e.error("jQuery UI Tabs: Mismatching fragment identifier."),a.length&&this.load(this.tabs.index(s),t),this._toggle(t,l)},_toggle:function(t,n){function o(){r.running=!1,r._trigger("activate",t,n)}function u(){n.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),i.length&&r.options.show?r._show(i,r.options.show,o):(i.show(),o())}var r=this,i=n.newPanel,s=n.oldPanel;this.running=!0,s.length&&this.options.hide?this._hide(s,this.options.hide,function(){n.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),u()}):(n.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),s.hide(),u()),s.attr({"aria-expanded":"false","aria-hidden":"true"}),n.oldTab.attr("aria-selected","false"),i.length&&s.length?n.oldTab.attr("tabIndex",-1):i.length&&this.tabs.filter(function(){return e(this).attr("tabIndex")===0}).attr("tabIndex",-1),i.attr({"aria-expanded":"true","aria-hidden":"false"}),n.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(t){var n,r=this._findActive(t);if(r[0]===this.active[0])return;r.length||(r=this.active),n=r.find(".ui-tabs-anchor")[0],this._eventHandler({target:n,currentTarget:n,preventDefault:e.noop})},_findActive:function(t){return t===!1?e():this.tabs.eq(t)},_getIndex:function(e){return typeof e=="string"&&(e=this.anchors.index(this.anchors.filter("[href$='"+e+"']"))),e},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){e.data(this,"ui-tabs-destroy")?e(this).remove():e(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var t=e(this),n=t.data("ui-tabs-aria-controls");n?t.attr("aria-controls",n).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),this.options.heightStyle!=="content"&&this.panels.css("height","")},enable:function(n){var r=this.options.disabled;if(r===!1)return;n===t?r=!1:(n=this._getIndex(n),e.isArray(r)?r=e.map(r,function(e){return e!==n?e:null}):r=e.map(this.tabs,function(e,t){return t!==n?t:null})),this._setupDisabled(r)},disable:function(n){var r=this.options.disabled;if(r===!0)return;if(n===t)r=!0;else{n=this._getIndex(n);if(e.inArray(n,r)!==-1)return;e.isArray(r)?r=e.merge([n],r).sort():r=[n]}this._setupDisabled(r)},load:function(t,n){t=this._getIndex(t);var r=this,i=this.tabs.eq(t),o=i.find(".ui-tabs-anchor"),u=this._getPanelForTab(i),a={tab:i,panel:u};if(s(o[0]))return;this.xhr=e.ajax(this._ajaxSettings(o,n,a)),this.xhr&&this.xhr.statusText!=="canceled"&&(i.addClass("ui-tabs-loading"),u.attr("aria-busy","true"),this.xhr.success(function(e){setTimeout(function(){u.html(e),r._trigger("load",n,a)},1)}).complete(function(e,t){setTimeout(function(){t==="abort"&&r.panels.stop(!1,!0),i.removeClass("ui-tabs-loading"),u.removeAttr("aria-busy"),e===r.xhr&&delete r.xhr},1)}))},_ajaxSettings:function(t,n,r){var i=this;return{url:t.attr("href"),beforeSend:function(t,s){return i._trigger("beforeLoad",n,e.extend({jqXHR:t,ajaxSettings:s},r))}}},_getPanelForTab:function(t){var n=e(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+n))}})})(jQuery); -------------------------------------------------------------------------------- /include/ui-1.10.0/jquery.ui.widget.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery UI - v1.10.0 - 2013-01-24 2 | * http://jqueryui.com 3 | * Includes: jquery.ui.widget.js 4 | * Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ 5 | (function(e,t){var n=0,r=Array.prototype.slice,i=e.cleanData;e.cleanData=function(t){for(var n=0,r;(r=t[n])!=null;n++)try{e(r).triggerHandler("remove")}catch(s){}i(t)},e.widget=function(t,n,r){var i,s,o,u,a={},f=t.split(".")[0];t=t.split(".")[1],i=f+"-"+t,r||(r=n,n=e.Widget),e.expr[":"][i.toLowerCase()]=function(t){return!!e.data(t,i)},e[f]=e[f]||{},s=e[f][t],o=e[f][t]=function(e,t){if(!this._createWidget)return new o(e,t);arguments.length&&this._createWidget(e,t)},e.extend(o,s,{version:r.version,_proto:e.extend({},r),_childConstructors:[]}),u=new n,u.options=e.widget.extend({},u.options),e.each(r,function(t,r){if(!e.isFunction(r)){a[t]=r;return}a[t]=function(){var e=function(){return n.prototype[t].apply(this,arguments)},i=function(e){return n.prototype[t].apply(this,e)};return function(){var t=this._super,n=this._superApply,s;return this._super=e,this._superApply=i,s=r.apply(this,arguments),this._super=t,this._superApply=n,s}}()}),o.prototype=e.widget.extend(u,{widgetEventPrefix:s?u.widgetEventPrefix:t},a,{constructor:o,namespace:f,widgetName:t,widgetFullName:i}),s?(e.each(s._childConstructors,function(t,n){var r=n.prototype;e.widget(r.namespace+"."+r.widgetName,o,n._proto)}),delete s._childConstructors):n._childConstructors.push(o),e.widget.bridge(t,o)},e.widget.extend=function(n){var i=r.call(arguments,1),s=0,o=i.length,u,a;for(;s",options:{disabled:!1,create:null},_createWidget:function(t,r){r=e(r||this.defaultElement||this)[0],this.element=e(r),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this.bindings=e(),this.hoverable=e(),this.focusable=e(),r!==this&&(e.data(r,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===r&&this.destroy()}}),this.document=e(r.style?r.ownerDocument:r.document||r),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled "+"ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(n,r){var i=n,s,o,u;if(arguments.length===0)return e.widget.extend({},this.options);if(typeof n=="string"){i={},s=n.split("."),n=s.shift();if(s.length){o=i[n]=e.widget.extend({},this.options[n]);for(u=0;u 2 | 3 | 4 | 5 | jQuery UI Time Picker by Francois Gelinas 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 31 | 32 | 61 | 62 | 63 | 64 |
65 | 66 | 67 |
68 | 69 | 70 |
71 |
72 | 73 | 75 | 76 | 77 |
78 | aka beer! 79 |
80 |
81 | 82 |
83 |
84 | 85 | 86 |
87 | 88 |

jQuery UI Timepicker 89 | (By François Gélinas) 90 | 91 | 94 |

95 | 96 |

What is this?

97 |

98 | 99 | This is a jQuery UI time picker plugin built to match with other official jQuery UI widgets. 100 | Based on the existing date picker, it will blend nicely with your form and use your selected jQuery UI theme. 101 | The plugin is very easy to integrate in your form for time (hours / minutes) inputs. 102 |

103 |

104 | Licensed under the same license as jQuery : MIT and GPL licenses 105 |

106 | 107 |
108 | 109 |
110 | 111 | 118 | 119 |
120 |
121 | 122 | 123 | 130 | 131 | [Show code] 132 | 133 |
134 | 135 | 136 |
137 | 138 |
139 | 140 | 141 | 149 | 150 | [Show code] 151 | 155 |
156 | 157 |
158 | 159 |
160 | 161 | 162 |
163 | See the internationalisation page for more information and details. 164 | 182 | [Show code] 183 | 195 |
196 | 197 |
198 | 199 |
200 | 201 | 202 | 203 | 224 | [Show code] 225 | 241 |
242 | 243 |
244 | 245 |
246 | 247 | 248 |
251 | 252 | 253 | 254 | 266 | [Show code] 267 | 272 | 273 |
274 | 275 | 276 |
277 | 278 |
279 | 280 | 281 | 282 | 290 | [Show code] 291 | 295 | 296 |
297 | 298 | 299 |
300 | 301 |
302 | 303 | 304 | 305 | 317 | 318 | [Show code] 319 | 327 |
328 | 329 | 330 | 331 |
332 |
333 | 334 | 335 | 347 | 348 | [Show code] 349 | 356 |
357 | 358 |
359 | 360 |
361 | 362 | 363 | , 364 | 365 | 366 | 378 | 379 | [Show code] 380 | 388 | 389 |
390 | 391 | 392 | 393 | 407 | [Show code] 408 | 418 | 419 |
420 | 421 | 422 |
423 | 424 |
425 | 426 | 427 | 428 | 429 | 439 | 440 | [Show code] 441 | 447 | 448 |
449 | 450 | 451 |
452 | 453 |
454 | 455 | 456 | 477 | 478 | [Show code] 479 | 493 |
494 | 495 |
496 | 497 | 498 |
499 | 500 |
501 | 502 |
503 | Inline time picker : 504 | 505 | 506 | 507 | 508 |
509 | 510 |
511 | 512 |
513 | 514 |
515 | [Show code] 516 |
517 |
518 | 536 |
537 | 538 | 556 | 557 |
558 | 559 | 560 |
561 | 562 |
563 | 564 | Two timepickers to select chronological time range, the first timepicker is restricted to before the time selected in the second timepicker, and vice versa. Updated code to use the new minTime and maxTime options 565 |
566 | 567 | 568 | 569 | 570 | 571 | [Show code] 572 | 573 | 611 | 612 | 650 | 651 |
652 | 653 | 654 | 655 | 656 |
657 |
658 |
659 | Example of using the new minTime and maxTime options 660 |
661 | 662 |
663 | 664 |
665 | [Show code] 666 |
667 | 668 |
669 |
670 | 671 | 684 | 698 |
699 | 700 | 701 |
702 | 703 |
704 | Example to disable and re-enable a timepicker. 705 | 706 |
707 | 708 |
709 | 710 | 711 |
713 |
714 | 715 |
716 | 717 |
718 | [Show code] 719 |
720 | 721 |
722 |
723 | 724 | 746 | 758 |
759 | 760 | 761 | 762 | 763 |
764 | 765 |
766 | Set the timepicker date with a Date object and get the selected time as a Date object 767 |
768 |
769 | 770 |
771 | 772 |
773 | 774 |
775 | Also, note that in the returned date object, the time is correct but the yeat/month/day part of the date is wrong, you have to extract the time of the object. 776 |
777 | [Show code] 778 |
779 |
780 |
781 | 782 | 797 | 810 |
811 | 812 | 813 | 814 | 815 | 816 |
817 | 818 | 819 | 820 | 821 | 822 |
823 | 824 |

Usage:

825 |
$('#timepicker').timepicker({
 826 |     // Options
 827 |     timeSeparator: ':',           // The character to use to separate hours and minutes. (default: ':')
 828 |     showLeadingZero: true,        // Define whether or not to show a leading zero for hours < 10.
 829 |                                      (default: true)
 830 |     showMinutesLeadingZero: true, // Define whether or not to show a leading zero for minutes < 10.
 831 |                                      (default: true)
 832 |     showPeriod: false,            // Define whether or not to show AM/PM with selected time. (default: false)
 833 |     showPeriodLabels: true,       // Define if the AM/PM labels on the left are displayed. (default: true)
 834 |     periodSeparator: ' ',         // The character to use to separate the time from the time period.
 835 |     altField: '#alternate_input', // Define an alternate input to parse selected time to
 836 |     defaultTime: '12:34',         // Used as default time when input field is empty or for inline timePicker
 837 |                                   // (set to 'now' for the current time, '' for no highlighted time,
 838 |                                      default value: now)
 839 | 
 840 |     // trigger options
 841 |     showOn: 'focus',              // Define when the timepicker is shown.
 842 |                                   // 'focus': when the input gets focus, 'button' when the button trigger element is clicked,
 843 |                                   // 'both': when the input gets focus and when the button is clicked.
 844 |     button: null,                 // jQuery selector that acts as button trigger. ex: '#trigger_button'
 845 | 
 846 |     // Localization
 847 |     hourText: 'Hour',             // Define the locale text for "Hours"
 848 |     minuteText: 'Minute',         // Define the locale text for "Minute"
 849 |     amPmText: ['AM', 'PM'],       // Define the locale text for periods
 850 | 
 851 |     // Position
 852 |     myPosition: 'left top',       // Corner of the dialog to position, used with the jQuery UI Position utility if present.
 853 |     atPosition: 'left bottom',    // Corner of the input to position
 854 | 
 855 |     // Events
 856 |     beforeShow: beforeShowCallback, // Callback function executed before the timepicker is rendered and displayed.
 857 |     onSelect: onSelectCallback,   // Define a callback function when an hour / minutes is selected.
 858 |     onClose: onCloseCallback,     // Define a callback function when the timepicker is closed.
 859 |     onHourShow: onHourShow,       // Define a callback to enable / disable certain hours. ex: function onHourShow(hour)
 860 |     onMinuteShow: onMinuteShow,   // Define a callback to enable / disable certain minutes. ex: function onMinuteShow(hour, minute)
 861 | 
 862 |     // custom hours and minutes
 863 |     hours: {
 864 |         starts: 0,                // First displayed hour
 865 |         ends: 23                  // Last displayed hour
 866 |     },
 867 |     minutes: {
 868 |         starts: 0,                // First displayed minute
 869 |         ends: 55,                 // Last displayed minute
 870 |         interval: 5,              // Interval of displayed minutes
 871 |         manual: []                // Optional extra entries for minutes
 872 |     },
 873 |     rows: 4,                      // Number of rows for the input tables, minimum 2, makes more sense if you use multiple of 2
 874 |     showHours: true,              // Define if the hours section is displayed or not. Set to false to get a minute only dialog
 875 |     showMinutes: true,            // Define if the minutes section is displayed or not. Set to false to get an hour only dialog
 876 | 
 877 |     // Min and Max time
 878 |     minTime: {                    // Set the minimum time selectable by the user, disable hours and minutes
 879 |         hour: minHour,            // previous to min time
 880 |         minute: minMinute
 881 |     },
 882 |     maxTime: {                    // Set the minimum time selectable by the user, disable hours and minutes
 883 |         hour: maxHour,            // after max time
 884 |         minute: maxMinute
 885 |     },
 886 | 
 887 | 
 888 |     // buttons
 889 |     showCloseButton: false,       // shows an OK button to confirm the edit
 890 |     closeButtonText: 'Done',      // Text for the confirmation button (ok button)
 891 |     showNowButton: false,         // Shows the 'now' button
 892 |     nowButtonText: 'Now',         // Text for the now button
 893 |     showDeselectButton: false,    // Shows the deselect time button
 894 |     deselectButtonText: 'Deselect' // Text for the deselect button
 895 | 
 896 | });
897 | 898 |
899 | 900 | 901 | 902 | 903 | 904 | 943 | 944 | 945 | 946 | 947 | 948 |
949 | 950 |

Releases :

951 |
952 | 953 |
0.3.3 - 23 October 2013
954 |
Better zIndex detection - Thanks Mark Larter ref #62
955 |
Added Hungarian localisation - Thanks Bálint Dávid Tarcsa.
956 |
Added the button self if showOn is "button" or "both" and the button element is not explicitely set. Thanks Kevin Reintjes ref #75
957 |
Fixed rounding time using not 5 minutes but using minutes from interval. Thanks Jan Dvořák ref #73
958 |
Added Option for adding manual entries in minutes display. Thanks Mischa Gorinskat ref #71
959 |
Added support for minTime and maxTime options. Thanks @phazei ref #76
960 | 961 |
0.3.2 - 25 January 2013
962 |
Updated to jQuery 1.9.0 and UI 1.10.0. Removed deprecated IE6 hacks.
963 |
Added support for Date object with the setTime and getTimeAsDate function - thanks AAverin.
964 |
Removed an extra </tr>, thanks FishB8.
965 |
Fixed an error that occurs on some showAnim effects like 'blind'.
966 |
Fixed a problem when wither hours or minutes was required and missing, the parsed time was not formatted correctly.
967 |
Fixed a problem when available hours are all AM or all PM only and they would not show in the grid, thanks @malerbabomba
968 | 969 | 970 |
0.3.1 - 19 July 2012
971 |
Added the "destroy" method.
972 |
Fixed a bug in the deselect function, thanks Kazu.
973 |
Allow for hours and minutes outside normal time range (0-23, 0-59) for more flexibility.
974 |
Fixed a bug with the onClose callback that could generate an infinite loop.
975 |
Added Croatian/Bosnian translation, thanks Rene Brakus.
976 |
Added Portuguese/Brazilan tranlsation, thanks Daniel Almeida.
977 |
Added Spanish tranlsation, thanks Jandro González.
978 | 979 | 980 |
Release 0.3.0 - 27 March 2012
981 |
Fixed a zIndex problem in jQuery Dialog when the user clicked on the input while the timepicker was still visible.
982 |
Added Czech translation, thanks David Spohr
983 |
Added Swedish translation, thanks Björn Westlin
984 |
Added Dutch translation, thanks Lowie Hulzinga
985 |
Prevent showing the timepicker dialog with the button when disabled(Thanks ruhley. ref #38)
986 |
Add ui-state-disabled class to button trigger when disabled.
987 |
Fixed onClose function on first time passes the hours variable as string (Thanks Zanisimo, ref #39)
988 |
Added refresh method. ex: $('selector').timepicker('refresh');
989 | 990 |
Release 0.2.9 - November 13, 2011
991 |
Fixed the zIndex problem and removed the zIndex option (Thanks everyone who reported the problem)
992 |
Fix a bug where repeatedly clicking on hour cells made the timepicker very slow.
993 |
Added Italian translation, thanks to Serge Margarita.
994 | 995 |
Release 0.2.8 - October 28, 2011
996 |
Updated defaultTime to allow for Date object (github issue #26)
997 |
Fixed the now and deselect buttons in IE
998 | 999 |
Release 0.2.7 - October 19, 2011
1000 |
Added option to omit minutes in parsed time when user select 0 for minutes. (Thanks tribalvibes, Github issue #23)
1001 |
Added support for internationalisation (fr, de and ja, Thanks Bernd Plagge).
1002 |
Added an internationalisation page
1003 | 1004 |
0.2.6 - October 12, 2011
1005 |
Fixed a bug when input ID have more then one special char. (Thanks Jacqueline Krijnen)
1006 |
Fixed a bug when parsing hours only or minutes only time. (Thanks protron, github issue #20)
1007 |
Added 'Now', 'Deselect' and 'Close' buttons. (Thanks Christian Grobmeier for the close button code, github issue #22)
1008 | 1009 |
0.2.5 - September 13, 2011
1010 |
Added support for disable and enable. (Suggested by danielrex, github issue #17)
1011 |
Added an example for 2 timepicker to behave as a period selector (start time and end time). (Thanks Bill Pellowe)
1012 |
Renamed the stylesheet to jquery.ui.timepicker.css to be more consistent with jQuery UI file name convention.
1013 | 1014 |
0.2.4 - August 5, 2011
1015 |
Fixed the hand cursor in the css file. (Thanks Mike Neumegen)
1016 |
Added position option to use with the jquery ui position utility.
1017 |
Added option to display only hours or only minutes.
1018 | 1019 |
0.2.3 - July 11, 2011
1020 |
Fix github issue #3 : Bug when hours or minutes choices does not divide by number of rows (thanks wukimus).
1021 |
Changed default behavior of the defaultTime option, if set to '' and input is empty, there will be no highlighted time in the popup (Thanks Rasmus Schultz)
1022 |
Fix github issue #4 : Error when generating empty minute cell. (Thanks 123Haynes)
1023 |
Fix github issue #5 : Add functionality for "getTime" option. (Thanks edanuff)
1024 |
Added the periodSeparator option. (thanks jrchamp)
1025 |
Fixed "getTime" for inline timepickers. (thanks Mike Neumegen)
1026 |
Added "getHour" and "getMinute" to get individual values.
1027 |
New page interface, about time :)
1028 | 1029 |
0.2.2 - June 16, 2011
1030 |
Fixed a "console.log" line that I forgot to remove before release 0.2.1. (Thanks Derek Lavine)
1031 | 1032 |
0.2.1 - June 8, 2011
1033 |
Timepicker does not give the focus back to the input any more after time selection. This is similar to the datepicker behaviour and is more natural to the user because it shows the dialog again when the user click on the input again, as expected.
1034 |
Added options to customize the hours and minutes ranges and interval for more customization.
1035 | 1036 |
0.2 - May 28, 2011
1037 |
In the last release, I messed up versions and lost some changes so I'm fixing all this up with release 0.2
1038 | 1039 | 1040 |
0.1.2 - May 26, 2011
1041 |
Fixed a bug with inline timepickers that would append a #timepickr hashtag when selecting hours and minutes.
1042 |
Fixed z-index problem with IE6 (Thanks Graham Bentley)
1043 |
Added selection of highlighted text when enter is pressed on the input field (Thanks Glen Chiacchieri)
1044 |
Adjusted some focus problems, now the input gets the focus back when the used click on hours / minutes.
1045 | 1046 |
0.1.something aka the lost release - around April 11
1047 |
Fixed a bug for when input Id had a dot in it, it was getting double escaped when it should not. (Thanks Zdenek Machac)
1048 |
So in 0.1.1 I created a bug that made timepicker changes the location hash, well now it's fixed. (Thanks Lucas Falk)
1049 | 1050 |
0.1.1 - April 6, 2011
1051 |
Changed the cells click and dblclick binding for faster rendering in IE6/7 (Thanks Blair Parsons)
1052 |
Fixed a class naming bug created in 0.1.0 (Thanks Morlion Peter)
1053 | 1054 |
0.1.0 - March 23, 2011
1055 |
Fixed some bugs with version 0.0.9
1056 | 1057 |
0.0.9 - March 22, 2011
1058 |
Added zIndex option (Thanks Frank Enderle)
1059 |
Added showPeriodLabels option (default: true) to show/hide AM/PM labels on the left (thanks Frank Enderle)
1060 |
Added showOn ['focus'|'button'|'both'] and button options for alternate trigger method
1061 | 1062 |
0.0.8 - February 17, 2011
1063 |
Fixed close event not triggered when switching to another input with time picker (thanks Stuart Gregg)
1064 | 1065 |
0.0.7 - February 10, 2011
1066 |
Added function to set time after initialisation :$('#timepicker').timepicker('setTime',newTime);
1067 |
Added support for disabled period of time : onHourShow and onMinuteShow (thanks Rene Felgenträger)
1068 | 1069 |
0.0.6 - January 19, 2011
1070 |
Replaced some div with tables to : fix some display bugs in IE7, fix inline display and fix my headhake.
1071 |
Added standard "change" event being triggered on the input when the content changes. (Thanks Rasmus Schultz)
1072 |
Added support for inline timePicker, attached to div or span.
1073 |
Added altField that receive the parsed time value when selected time changes.
1074 |
Added defaultTime value to use when input field is missing (inline) or input value is empty. If defaultTime is missing then current time is used.
1075 | 1076 |
0.0.5 - January 18, 2011
1077 |
Now updating time picker selected value when manually typing in the text field (thanks Rasmus Schultz)
1078 | Another step toward inline time picker ?
1079 |
Fixed : with showPeriod: true and showLeadingZero: true, PM hours did not show leading zeros (thanks Chandler May)
1080 |
Fixed : with showPeriod: true and showLeadingZero: true, Selecting 12 AM shows as 00 AM in the input field, also parsing 12AM did not work correctly (thanks Rasmus Schultz)
1081 | 1082 |
0.0.4 - January 10, 2011
1083 |
Changed showLeadingZero to affect only hours, added showMinutesLeadingZero for minutes display.
1084 |
Changed the default value of timeSeparator from 'h' to ':'.
1085 |
Removed width:100% on tables in the css, caused a bug in some browsers.
1086 | 1087 |
0.0.3 - January 8, 2011
1088 |
Fixed a bug with the widget not displaying with some jQuery UI 1.8.7 css. (Thanks Alexander Fietz)
1089 |
Fixed a display bug on page load, a small empty div was visible at the bottom of pages. (Thanks Gertjan van Roekel)
1090 |
Modified the jquery-ui-timepicker.css to make the widget more dynamic to style and sizes changes.
1091 | 1092 |
0.0.2 - January 4, 2011
1093 |
Added showPeriod: period (AM/PM) in input and showLeadingZero: to control display of number < 10. (big thanks Steve Commisso)
1094 | 1095 |
0.0.1 - December 2010
1096 |
First release
1097 |
1098 | 1099 | 1100 |
1101 | 1102 | 1103 | 1104 | 1105 | 1106 |
1107 | 1108 |

Download Timepicker

1109 | 1110 |

1111 | Current version : 0.3.3 - released 25 January 2013 1112 |

1113 | 1114 |

1115 | Get it on github 1116 |

1117 | 1118 |

1119 | Download from here (.zip) 1120 |

1121 | 1122 |
1123 | 1124 |

1125 | I put a lot of time and effort in this project. If you like it, buy me a beer please donate 1126 | 1127 |

1128 | 1129 |
1130 | 1131 | 1133 | 1134 | 1135 |
1136 | 1137 |
1138 | 1139 |

1140 | Instruction for legacy jQuery integration (jQuery 1.2.6 and jQuery UI 1.6) 1141 |

1142 | 1143 |
    1144 |
  • 1145 | Get the legacy package here 1146 | , built with jQuery Timepicker 0.2.4 but should work with newer versions 1147 |
  • 1148 |
  • 1149 | Make sure to include jquery-1.2.6.js, jquery.fix.for.1.2.6.js and jquery.ui.1.6.all.js 1150 |
  • 1151 |
  • 1152 | See the working example in index.html in the "legacy_1.2.6" folder. 1153 |
  • 1154 |
  • 1155 | Support for previous versions of jquery is limited. 1156 |
  • 1157 |
1158 | 1159 | 1160 | 1161 |
1162 |
1163 | 1164 | 1165 |
1166 | 1167 | 1168 | 1173 | 1174 |
1175 | 1176 | 1177 | 1178 | -------------------------------------------------------------------------------- /jquery.ui.timepicker.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Timepicker stylesheet 3 | * Version 0.3.3 4 | * Highly inspired from datepicker 5 | * FG - Nov 2010 - Web3R 6 | * 7 | * version 0.0.3 : Fixed some settings, more dynamic 8 | * version 0.0.4 : Removed width:100% on tables 9 | * version 0.1.1 : set width 0 on tables to fix an ie6 bug 10 | */ 11 | 12 | .ui-timepicker-inline { display: inline; } 13 | 14 | #ui-timepicker-div { padding: 0.2em; } 15 | .ui-timepicker-table { display: inline-table; width: 0; } 16 | .ui-timepicker-table table { margin:0.15em 0 0 0; border-collapse: collapse; } 17 | 18 | .ui-timepicker-hours, .ui-timepicker-minutes { padding: 0.2em; } 19 | 20 | .ui-timepicker-table .ui-timepicker-title { line-height: 1.8em; text-align: center; } 21 | .ui-timepicker-table td { padding: 0.1em; width: 2.2em; } 22 | .ui-timepicker-table th.periods { padding: 0.1em; width: 2.2em; } 23 | 24 | /* span for disabled cells */ 25 | .ui-timepicker-table td span { 26 | display:block; 27 | padding:0.2em 0.3em 0.2em 0.5em; 28 | width: 1.2em; 29 | 30 | text-align:right; 31 | text-decoration:none; 32 | } 33 | /* anchors for clickable cells */ 34 | .ui-timepicker-table td a { 35 | display:block; 36 | padding:0.2em 0.3em 0.2em 0.5em; 37 | width: 1.2em; 38 | cursor: pointer; 39 | text-align:right; 40 | text-decoration:none; 41 | } 42 | 43 | 44 | /* buttons and button pane styling */ 45 | .ui-timepicker .ui-timepicker-buttonpane { 46 | background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; 47 | } 48 | .ui-timepicker .ui-timepicker-buttonpane button { margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; } 49 | /* The close button */ 50 | .ui-timepicker .ui-timepicker-close { float: right } 51 | 52 | /* the now button */ 53 | .ui-timepicker .ui-timepicker-now { float: left; } 54 | 55 | /* the deselect button */ 56 | .ui-timepicker .ui-timepicker-deselect { float: left; } 57 | 58 | 59 | -------------------------------------------------------------------------------- /legacy_1.2.6/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | jQuery UI Time Picker by Francois Gelinas 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 20 | 21 | 22 | 23 | 24 | 38 | 39 | 68 | 69 | 70 | 71 |
72 | 73 |
74 |
75 |
76 | 77 | 78 |
79 | 80 |

jQuery UI Timepicker 81 | (By François Gélinas) 82 | 83 | 86 |

87 | 88 |

What is this?

89 |

90 | 91 | This is a jQuery UI time picker plugin build to match with other official jQuery UI widgets. 92 | Based on the existing date picker, it will blend nicely with your form and use your selected jQuery UI theme. 93 | The plugin is very easy to integrate in your form for you time (hours / minutes) inputs. 94 |

95 |

96 | Licensed under the same license as jQuery : MIT and GPL licenses 97 |

98 | 99 |
100 | 101 |
102 | 103 | 110 | 111 |
112 |
113 | Default time picker : 114 | 115 | 120 | 121 | [Show code] 122 | 123 |
124 | 125 | 126 |
127 | 128 |
129 | Time picker with period (AM/PM) in input and with hours leading 0s : 130 | 131 | 139 | 140 | [Show code] 141 | 145 |
146 | 147 |
148 | 149 |
150 | Time picker with labels in another language (Français) : 151 | 152 | 164 | [Show code] 165 | 171 |
172 | 173 |
174 | 175 |
176 | Time picker with restricted (disabled) hours / minutes. 8:30 PM to 6:30 AM disabled : 177 | 178 | 179 | 200 | [Show code] 201 | 217 |
218 | 219 |
220 | 221 |
222 | Define when the time picker is shown with the showOn option and set a trigger element with the button option 223 | 224 |
227 | 228 | 229 | 230 | 231 | 242 | [Show code] 243 | 248 | 249 |
250 | 251 | 252 |
253 | 254 |
255 | Time picker without the AM/PM labels on the left (showPeriodLabels option set to false: 256 | 257 | 258 | 266 | [Show code] 267 | 271 | 272 |
273 | 274 | 275 |
276 | 277 |
278 | 279 | Custom defined hours range (Business hours 6am to 7pm) and minutes increment set to 15 instead of 5, on 3 rows 280 | 281 | 293 | 294 | [Show code] 295 | 303 |
304 | 305 |
306 | 307 |
308 | Input for hours only : 309 | 310 | , input for minutes only : 311 | 312 | 313 | 325 | 326 | [Show code] 327 | 335 | 336 |
337 | 338 | 339 |
340 | 341 |
342 | onSelect (hours and minutes both trigger event), beforeShow and onClose events : 343 | 344 | 362 | 363 | [Show code] 364 | 378 |
379 | 380 |
381 | 382 | 383 |
384 | 385 |
386 | 387 |
388 | Inline time picker : 389 | 390 | Alternate field : 391 | 392 | 393 |
394 | 395 |
396 | 397 |
398 | 399 |
400 | [Show code] 401 |
402 |
403 | 421 |
422 | 423 | 441 | 442 |
443 | 444 |
445 | 446 | 447 | 448 | 449 | 450 |
451 | 452 |

Usage:

453 |
$('#timepicker').timepicker({
454 |     // Options
455 |     timeSeparator: ':',           // The character to use to separate hours and minutes. (default: ':')
456 |     showLeadingZero: true,        // Define whether or not to show a leading zero for hours < 10. (default: true)
457 |     showMinutesLeadingZero: true, // Define whether or not to show a leading zero for minutes < 10. (default: true)
458 |     showPeriod: false,            // Define whether or not to show AM/PM with selected time. (default: false)
459 |     showPeriodLabels: true,       // Define if the AM/PM labels on the left are displayed. (default: true)
460 |     periodSeparator: ' ',         // The character to use to separate the time from the time period.
461 |     altField: '#alternate_input', // Define an alternate input to parse selected time to
462 |     defaultTime: '12:34',         // Used as default time when input field is empty or for inline timePicker
463 |                                   // (set to 'now' for the current time, '' for no highlighted time, default value: now)
464 | 
465 |     zIndex: null,                 // Overwrite the default zIndex used by the time picker
466 | 
467 |     // trigger options
468 |     showOn: 'focus',              // Define when the timepicker is shown.
469 |                                   // 'focus': when the input gets focus, 'button' when the button trigger element is clicked,
470 |                                   // 'both': when the input gets focus and when the button is clicked.
471 |     button: null,                 // jQuery selector that acts as button trigger. ex: '#trigger_button'
472 | 
473 |     // Localization
474 |     hourText: 'Hour',             // Define the locale text for "Hours"
475 |     minuteText: 'Minute',         // Define the locale text for "Minute"
476 |     amPmText: ['AM', 'PM'],       // Define the locale text for periods
477 | 
478 |     // Position
479 |     myPosition: 'left top',       // Corner of the dialog to position, used with the jQuery UI Position utility if present.
480 |     atPosition: 'left bottom',    // Corner of the input to position
481 | 
482 |     // Events
483 |     onSelect: onSelectCallback,   // Define a callback function when an hour / minutes is selected.
484 |     onClose: onCloseCallback,     // Define a callback function when the timepicker is closed.
485 |     onHourShow: onHourShow,       // Define a callback to enable / disable certain hours. ex: function onHourShow(hour)
486 |     onMinuteShow: onMinuteShow,   // Define a callback to enable / disable certain minutes. ex: function onMinuteShow(hour, minute)
487 | 
488 |     // custom hours and minutes
489 |     hours: {
490 |         starts: 0,                // First displayed hour
491 |         ends: 23                  // Last displayed hour
492 |     },
493 |     minutes: {
494 |         starts: 0,                // First displayed minute
495 |         ends: 55,                 // Last displayed minute
496 |         interval: 5               // Interval of displayed minutes
497 |     },
498 |     rows: 4,                      // Number of rows for the input tables, minimum 2, makes more sense if you use multiple of 2
499 |     showHours: true,              // Define if the hours section is displayed or not. Set to false to get a minute only dialog
500 |     showMinutes: true             // Define if the minutes section is displayed or not. Set to false to get an hour only dialog
501 | });
502 | 503 |
504 | 505 | 506 | 507 | 508 | 509 | 548 | 549 | 550 | 551 | 552 | 553 |
554 | 555 |

Releases :

556 |
557 | 558 |
0.2.4 - August 5, 2011
559 |
Fixed the hand cursor in the css file. (Thanks Mike Neumegen)
560 |
Added position option to use with the jquery ui position utility.
561 |
Added option to display only hours or only minutes.
562 | 563 |
0.2.3 - July 11, 2011
564 |
Fix github issue #3 : Bug when hours or minutes choices does not divide by number of rows (thanks wukimus).
565 |
Changed default behavior of the defaultTime option, if set to '' and input is empty, there will be no highlighted time in the popup (Thanks Rasmus Schultz)
566 |
Fix github issue #4 : Error when generating empty minute cell. (Thanks 123Haynes)
567 |
Fix github issue #5 : Add functionality for "getTime" option. (Thanks edanuff)
568 |
Added the periodSeparator option. (thanks jrchamp)
569 |
Fixed "getTime" for inline timepickers. (thanks Mike Neumegen)
570 |
Added "getHour" and "getMinute" to get individual values.
571 |
New page interface, about time :)
572 | 573 |
0.2.2 - June 16, 2011
574 |
Fixed a "console.log" line that I forgot to remove before release 0.2.1. (Thanks Derek Lavine)
575 | 576 |
0.2.1 - June 8, 2011
577 |
Timepicker does not give the focus back to the input any more after time selection. This is similar to the datepicker behaviour and is more natural to the user because it shows the dialog again when the user click on the input again, as expected.
578 |
Added options to customize the hours and minutes ranges and interval for more customization.
579 | 580 |
0.2 - May 28, 2011
581 |
In the last release, I messed up versions and lost some changes so I'm fixing all this up with release 0.2
582 | 583 | 584 |
0.1.2 - May 26, 2011
585 |
Fixed a bug with inline timepickers that would append a #timepickr hashtag when selecting hours and minutes.
586 |
Fixed z-index problem with IE6 (Thanks Graham Bentley)
587 |
Added selection of highlighted text when enter is pressed on the input field (Thanks Glen Chiacchieri)
588 |
Adjusted some focus problems, now the input gets the focus back when the used click on hours / minutes.
589 | 590 |
0.1.something aka the lost release - around April 11
591 |
Fixed a bug for when input Id had a dot in it, it was getting double escaped when it should not. (Thanks Zdenek Machac)
592 |
So in 0.1.1 I created a bug that made timepicker changes the location hash, well now it's fixed. (Thanks Lucas Falk)
593 | 594 |
0.1.1 - April 6, 2011
595 |
Changed the cells click and dblclick binding for faster rendering in IE6/7 (Thanks Blair Parsons)
596 |
Fixed a class naming bug created in 0.1.0 (Thanks Morlion Peter)
597 | 598 |
0.1.0 - March 23, 2011
599 |
Fixed some bugs with version 0.0.9
600 | 601 |
0.0.9 - March 22, 2011
602 |
Added zIndex option (Thanks Frank Enderle)
603 |
Added showPeriodLabels option (default: true) to show/hide AM/PM labels on the left (thanks Frank Enderle)
604 |
Added showOn ['focus'|'button'|'both'] and button options for alternate trigger method
605 | 606 |
0.0.8 - February 17, 2011
607 |
Fixed close event not triggered when switching to another input with time picker (thanks Stuart Gregg)
608 | 609 |
0.0.7 - February 10, 2011
610 |
Added function to set time after initialisation :$('#timepicker').timepicker('setTime',newTime);
611 |
Added support for disabled period of time : onHourShow and onMinuteShow (thanks Rene Felgenträger)
612 | 613 |
0.0.6 - January 19, 2011
614 |
Replaced some div with tables to : fix some display bugs in IE7, fix inline display and fix my headhake.
615 |
Added standard "change" event being triggered on the input when the content changes. (Thanks Rasmus Schultz)
616 |
Added support for inline timePicker, attached to div or span.
617 |
Added altField that receive the parsed time value when selected time changes.
618 |
Added defaultTime value to use when input field is missing (inline) or input value is empty. If defaultTime is missing then current time is used.
619 | 620 |
0.0.5 - January 18, 2011
621 |
Now updating time picker selected value when manually typing in the text field (thanks Rasmus Schultz)
622 | Another step toward inline time picker ?
623 |
Fixed : with showPeriod: true and showLeadingZero: true, PM hours did not show leading zeros (thanks Chandler May)
624 |
Fixed : with showPeriod: true and showLeadingZero: true, Selecting 12 AM shows as 00 AM in the input field, also parsing 12AM did not work correctly (thanks Rasmus Schultz)
625 | 626 |
0.0.4 - January 10, 2011
627 |
Changed showLeadingZero to affect only hours, added showMinutesLeadingZero for minutes display.
628 |
Changed the default value of timeSeparator from 'h' to ':'.
629 |
Removed width:100% on tables in the css, caused a bug in some browsers.
630 | 631 |
0.0.3 - January 8, 2011
632 |
Fixed a bug with the widget not displaying with some jQuery UI 1.8.7 css. (Thanks Alexander Fietz)
633 |
Fixed a display bug on page load, a small empty div was visible at the bottom of pages. (Thanks Gertjan van Roekel)
634 |
Modified the jquery-ui-timepicker.css to make the widget more dynamic to style and sizes changes.
635 | 636 |
0.0.2 - January 4, 2011
637 |
Added showPeriod: period (AM/PM) in input and showLeadingZero: to control display of number < 10. (big thanks Steve Commisso)
638 | 639 |
0.0.1 - December 2010
640 |
First release
641 |
642 | 643 |
644 | 645 |

To Do :

646 | 647 |
    648 |
  • 649 | Possibility to use the timepicker for hours only, or minutes only. 650 |
  • 651 | 652 |
  • 653 | Change the code style to use the jQuery widget framework. 654 |
  • 655 |
  • 656 | Detect a second click on the same cell and close the picker (ie: the user selected hours and do not want to select different minutes or vice versa, and click twice on the same cell instead) 657 | This is already simulated with the handling of the double click. 658 |
  • 659 |
660 | 661 |
662 | 663 | 664 | 665 | 666 | 667 |
668 | 669 |

Download Timepicker

670 | 671 |

672 | Current version : 0.2.4 - released August 5, 2011 673 |

674 | 675 |

676 | Get it on github 677 |

678 | 679 |

680 | Download from here (.zip) 681 |

682 | 683 |
684 | 685 |

686 | I put a lot of time and effort in this project. If you like it, please pay me a beer donate 687 |

688 | 689 | 691 | 692 | 693 |
694 |

695 | 696 |
697 | 698 |

699 | Instruction for legacy jQuery integration (jQuery 1.2.6 and jQuery UI 1.6) 700 |
701 | 702 |

    703 |
  • 704 | Get the legacy package here 705 | , built with jQuery Timepicker 0.2.4 but should work with newer versions 706 |
  • 707 |
  • 708 | Make sure to include jquery-1.2.6.js, jquery.fix.for.1.2.6.js and jquery.ui.1.6.all.js 709 |
  • 710 |
  • 711 | See the working example in index.html in the "legacy_1.2.6" folder. 712 |
  • 713 |
  • 714 | Support for previous versions of jquery is limited. 715 |
  • 716 |
717 | 718 |

719 | 720 |
721 |
722 | 723 | 724 | 725 | 726 | 727 | 728 |
729 | 730 | 731 | 760 | 761 | 762 | 763 | -------------------------------------------------------------------------------- /legacy_1.2.6/jquery.proxy.fix.js: -------------------------------------------------------------------------------- 1 | /* 2 | * This is a fix to add the proxy function to jquery 3 | * can be used for when using older jquery library. 4 | * 5 | * Francois Gelinas 6 | * August 9, 2011 7 | * 8 | * Licensed using the jQuery license : MIT and GPL 9 | * http://jquery.org/license/ 10 | */ 11 | 12 | (function( $, undefined ) { 13 | // Bind a function to a context, optionally partially applying any 14 | // arguments. 15 | if ( !$.proxy) { 16 | 17 | $.proxy = function( fn, context ) { 18 | if ( typeof context === "string" ) { 19 | var tmp = fn[ context ]; 20 | context = fn; 21 | fn = tmp; 22 | } 23 | var slice = Array.prototype.slice; 24 | 25 | // Quick check to determine if target is callable, in the spec 26 | // this throws a TypeError, but we will just return undefined. 27 | if ( !jQuery.isFunction( fn ) ) { 28 | return undefined; 29 | } 30 | 31 | // Simulated bind 32 | var args = slice.call( arguments, 2 ), 33 | proxy = function() { 34 | return fn.apply( context, args.concat( slice.call( arguments ) ) ); 35 | }; 36 | 37 | // Set the guid of unique handler to the same of original handler, so it can be removed 38 | proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++; 39 | 40 | return proxy; 41 | } 42 | 43 | } 44 | }(jQuery)); -------------------------------------------------------------------------------- /tests/dialog.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 21 | 22 | 23 | 24 | 25 |

Testing the timepicker within a jQuery Dialog

26 | 27 |
28 | 29 |

30 | The timepicker : 31 |
32 | 33 |

34 | 35 | 36 |
37 | 38 | 39 | -------------------------------------------------------------------------------- /tests/jquery.ui.dialog.min.js: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery UI Dialog 1.8.16 3 | * 4 | * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) 5 | * Dual licensed under the MIT or GPL Version 2 licenses. 6 | * http://jquery.org/license 7 | * 8 | * http://docs.jquery.com/UI/Dialog 9 | * 10 | * Depends: 11 | * jquery.ui.core.js 12 | * jquery.ui.widget.js 13 | * jquery.ui.button.js 14 | * jquery.ui.draggable.js 15 | * jquery.ui.mouse.js 16 | * jquery.ui.position.js 17 | * jquery.ui.resizable.js 18 | */ 19 | (function(c,l){var m={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},n={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true},o=c.attrFn||{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true,click:true};c.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false, 20 | position:{my:"center",at:"center",collision:"fit",using:function(a){var b=c(this).css(a).offset().top;b<0&&c(this).css("top",a.top-b)}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");if(typeof this.originalTitle!=="string")this.originalTitle="";this.options.title=this.options.title||this.originalTitle;var a=this,b=a.options,d=b.title||" ",e=c.ui.dialog.getTitleId(a.element),g=(a.uiDialog=c("
")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+ 21 | b.dialogClass).css({zIndex:b.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(i){if(b.closeOnEscape&&!i.isDefaultPrevented()&&i.keyCode&&i.keyCode===c.ui.keyCode.ESCAPE){a.close(i);i.preventDefault()}}).attr({role:"dialog","aria-labelledby":e}).mousedown(function(i){a.moveToTop(false,i)});a.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(g);var f=(a.uiDialogTitlebar=c("
")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(g), 22 | h=c('').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){h.addClass("ui-state-hover")},function(){h.removeClass("ui-state-hover")}).focus(function(){h.addClass("ui-state-focus")}).blur(function(){h.removeClass("ui-state-focus")}).click(function(i){a.close(i);return false}).appendTo(f);(a.uiDialogTitlebarCloseText=c("")).addClass("ui-icon ui-icon-closethick").text(b.closeText).appendTo(h);c("").addClass("ui-dialog-title").attr("id", 23 | e).html(d).prependTo(f);if(c.isFunction(b.beforeclose)&&!c.isFunction(b.beforeClose))b.beforeClose=b.beforeclose;f.find("*").add(f).disableSelection();b.draggable&&c.fn.draggable&&a._makeDraggable();b.resizable&&c.fn.resizable&&a._makeResizable();a._createButtons(b.buttons);a._isOpen=false;c.fn.bgiframe&&g.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var a=this;a.overlay&&a.overlay.destroy();a.uiDialog.hide();a.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"); 24 | a.uiDialog.remove();a.originalTitle&&a.element.attr("title",a.originalTitle);return a},widget:function(){return this.uiDialog},close:function(a){var b=this,d,e;if(false!==b._trigger("beforeClose",a)){b.overlay&&b.overlay.destroy();b.uiDialog.unbind("keypress.ui-dialog");b._isOpen=false;if(b.options.hide)b.uiDialog.hide(b.options.hide,function(){b._trigger("close",a)});else{b.uiDialog.hide();b._trigger("close",a)}c.ui.dialog.overlay.resize();if(b.options.modal){d=0;c(".ui-dialog").each(function(){if(this!== 25 | b.uiDialog[0]){e=c(this).css("z-index");isNaN(e)||(d=Math.max(d,e))}});c.ui.dialog.maxZ=d}return b}},isOpen:function(){return this._isOpen},moveToTop:function(a,b){var d=this,e=d.options;if(e.modal&&!a||!e.stack&&!e.modal)return d._trigger("focus",b);if(e.zIndex>c.ui.dialog.maxZ)c.ui.dialog.maxZ=e.zIndex;if(d.overlay){c.ui.dialog.maxZ+=1;d.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=c.ui.dialog.maxZ)}a={scrollTop:d.element.scrollTop(),scrollLeft:d.element.scrollLeft()};c.ui.dialog.maxZ+=1; 26 | d.uiDialog.css("z-index",c.ui.dialog.maxZ);d.element.attr(a);d._trigger("focus",b);return d},open:function(){if(!this._isOpen){var a=this,b=a.options,d=a.uiDialog;a.overlay=b.modal?new c.ui.dialog.overlay(a):null;a._size();a._position(b.position);d.show(b.show);a.moveToTop(true);b.modal&&d.bind("keypress.ui-dialog",function(e){if(e.keyCode===c.ui.keyCode.TAB){var g=c(":tabbable",this),f=g.filter(":first");g=g.filter(":last");if(e.target===g[0]&&!e.shiftKey){f.focus(1);return false}else if(e.target=== 27 | f[0]&&e.shiftKey){g.focus(1);return false}}});c(a.element.find(":tabbable").get().concat(d.find(".ui-dialog-buttonpane :tabbable").get().concat(d.get()))).eq(0).focus();a._isOpen=true;a._trigger("open");return a}},_createButtons:function(a){var b=this,d=false,e=c("
").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),g=c("
").addClass("ui-dialog-buttonset").appendTo(e);b.uiDialog.find(".ui-dialog-buttonpane").remove();typeof a==="object"&&a!==null&&c.each(a, 28 | function(){return!(d=true)});if(d){c.each(a,function(f,h){h=c.isFunction(h)?{click:h,text:f}:h;var i=c('').click(function(){h.click.apply(b.element[0],arguments)}).appendTo(g);c.each(h,function(j,k){if(j!=="click")j in o?i[j](k):i.attr(j,k)});c.fn.button&&i.button()});e.appendTo(b.uiDialog)}},_makeDraggable:function(){function a(f){return{position:f.position,offset:f.offset}}var b=this,d=b.options,e=c(document),g;b.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close", 29 | handle:".ui-dialog-titlebar",containment:"document",start:function(f,h){g=d.height==="auto"?"auto":c(this).height();c(this).height(c(this).height()).addClass("ui-dialog-dragging");b._trigger("dragStart",f,a(h))},drag:function(f,h){b._trigger("drag",f,a(h))},stop:function(f,h){d.position=[h.position.left-e.scrollLeft(),h.position.top-e.scrollTop()];c(this).removeClass("ui-dialog-dragging").height(g);b._trigger("dragStop",f,a(h));c.ui.dialog.overlay.resize()}})},_makeResizable:function(a){function b(f){return{originalPosition:f.originalPosition, 30 | originalSize:f.originalSize,position:f.position,size:f.size}}a=a===l?this.options.resizable:a;var d=this,e=d.options,g=d.uiDialog.css("position");a=typeof a==="string"?a:"n,e,s,w,se,sw,ne,nw";d.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:d.element,maxWidth:e.maxWidth,maxHeight:e.maxHeight,minWidth:e.minWidth,minHeight:d._minHeight(),handles:a,start:function(f,h){c(this).addClass("ui-dialog-resizing");d._trigger("resizeStart",f,b(h))},resize:function(f,h){d._trigger("resize", 31 | f,b(h))},stop:function(f,h){c(this).removeClass("ui-dialog-resizing");e.height=c(this).height();e.width=c(this).width();d._trigger("resizeStop",f,b(h));c.ui.dialog.overlay.resize()}}).css("position",g).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var a=this.options;return a.height==="auto"?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(a){var b=[],d=[0,0],e;if(a){if(typeof a==="string"||typeof a==="object"&&"0"in a){b=a.split?a.split(" "): 32 | [a[0],a[1]];if(b.length===1)b[1]=b[0];c.each(["left","top"],function(g,f){if(+b[g]===b[g]){d[g]=b[g];b[g]=f}});a={my:b.join(" "),at:b.join(" "),offset:d.join(" ")}}a=c.extend({},c.ui.dialog.prototype.options.position,a)}else a=c.ui.dialog.prototype.options.position;(e=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(c.extend({of:window},a));e||this.uiDialog.hide()},_setOptions:function(a){var b=this,d={},e=false;c.each(a,function(g,f){b._setOption(g,f); 33 | if(g in m)e=true;if(g in n)d[g]=f});e&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",d)},_setOption:function(a,b){var d=this,e=d.uiDialog;switch(a){case "beforeclose":a="beforeClose";break;case "buttons":d._createButtons(b);break;case "closeText":d.uiDialogTitlebarCloseText.text(""+b);break;case "dialogClass":e.removeClass(d.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+b);break;case "disabled":b?e.addClass("ui-dialog-disabled"): 34 | e.removeClass("ui-dialog-disabled");break;case "draggable":var g=e.is(":data(draggable)");g&&!b&&e.draggable("destroy");!g&&b&&d._makeDraggable();break;case "position":d._position(b);break;case "resizable":(g=e.is(":data(resizable)"))&&!b&&e.resizable("destroy");g&&typeof b==="string"&&e.resizable("option","handles",b);!g&&b!==false&&d._makeResizable(b);break;case "title":c(".ui-dialog-title",d.uiDialogTitlebar).html(""+(b||" "));break}c.Widget.prototype._setOption.apply(d,arguments)},_size:function(){var a= 35 | this.options,b,d,e=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(a.minWidth>a.width)a.width=a.minWidth;b=this.uiDialog.css({height:"auto",width:a.width}).height();d=Math.max(0,a.minHeight-b);if(a.height==="auto")if(c.support.minHeight)this.element.css({minHeight:d,height:"auto"});else{this.uiDialog.show();a=this.element.css("height","auto").height();e||this.uiDialog.hide();this.element.height(Math.max(a,d))}else this.element.height(Math.max(a.height- 36 | b,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});c.extend(c.ui.dialog,{version:"1.8.16",uuid:0,maxZ:0,getTitleId:function(a){a=a.attr("id");if(!a){this.uuid+=1;a=this.uuid}return"ui-dialog-title-"+a},overlay:function(a){this.$el=c.ui.dialog.overlay.create(a)}});c.extend(c.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(a){return a+".dialog-overlay"}).join(" "), 37 | create:function(a){if(this.instances.length===0){setTimeout(function(){c.ui.dialog.overlay.instances.length&&c(document).bind(c.ui.dialog.overlay.events,function(d){if(c(d.target).zIndex()
").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});c.fn.bgiframe&&b.bgiframe();this.instances.push(b);return b},destroy:function(a){var b=c.inArray(a,this.instances);b!=-1&&this.oldInstances.push(this.instances.splice(b,1)[0]);this.instances.length===0&&c([document,window]).unbind(".dialog-overlay");a.remove();var d=0;c.each(this.instances,function(){d=Math.max(d,this.css("z-index"))});this.maxZ=d},height:function(){var a,b;if(c.browser.msie&& 39 | c.browser.version<7){a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);b=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return a