trusty-cms 3.1.6 → 3.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (773) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/Gemfile.lock +5 -10
  4. data/app/assets/javascripts/admin.js +3 -3
  5. data/app/controllers/admin/snippets_controller.rb +8 -0
  6. data/app/views/snippets/_form.html.haml +29 -0
  7. data/app/views/snippets/_popups.html.haml +4 -0
  8. data/app/views/snippets/edit.html.haml +11 -0
  9. data/app/views/snippets/index.html.haml +33 -0
  10. data/app/views/snippets/new.html.haml +9 -0
  11. data/app/views/snippets/remove.html.haml +17 -0
  12. data/config/initializers/assets.rb +1 -0
  13. data/config/initializers/trusty_cms_config.rb +4 -0
  14. data/config/routes.rb +3 -0
  15. data/lib/tasks/snippets_extension_tasks.rake +47 -0
  16. data/lib/trusty_cms.rb +1 -1
  17. data/lib/trusty_cms/engine.rb +1 -0
  18. data/lib/trusty_cms/initializer.rb +0 -1
  19. data/package.json +14 -0
  20. data/spec/dummy/config/initializers/assets.rb +1 -0
  21. data/spec/dummy/package.json +11 -0
  22. data/spec/dummy/yarn.lock +17 -0
  23. data/trusty_cms.gemspec +0 -1
  24. data/yarn.lock +17 -0
  25. metadata +16 -764
  26. data/app/assets/bower_components/jquery-ui/README.md +0 -12
  27. data/app/assets/bower_components/jquery-ui/bower.json +0 -12
  28. data/app/assets/bower_components/jquery-ui/component.json +0 -13
  29. data/app/assets/bower_components/jquery-ui/composer.json +0 -69
  30. data/app/assets/bower_components/jquery-ui/jquery-ui.js +0 -18686
  31. data/app/assets/bower_components/jquery-ui/jquery-ui.min.js +0 -13
  32. data/app/assets/bower_components/jquery-ui/package.json +0 -16
  33. data/app/assets/bower_components/jquery-ui/themes/base/accordion.css +0 -23
  34. data/app/assets/bower_components/jquery-ui/themes/base/all.css +0 -12
  35. data/app/assets/bower_components/jquery-ui/themes/base/autocomplete.css +0 -16
  36. data/app/assets/bower_components/jquery-ui/themes/base/base.css +0 -30
  37. data/app/assets/bower_components/jquery-ui/themes/base/button.css +0 -82
  38. data/app/assets/bower_components/jquery-ui/themes/base/checkboxradio.css +0 -34
  39. data/app/assets/bower_components/jquery-ui/themes/base/controlgroup.css +0 -65
  40. data/app/assets/bower_components/jquery-ui/themes/base/core.css +0 -97
  41. data/app/assets/bower_components/jquery-ui/themes/base/datepicker.css +0 -185
  42. data/app/assets/bower_components/jquery-ui/themes/base/dialog.css +0 -101
  43. data/app/assets/bower_components/jquery-ui/themes/base/draggable.css +0 -12
  44. data/app/assets/bower_components/jquery-ui/themes/base/images/ui-icons_444444_256x240.png +0 -0
  45. data/app/assets/bower_components/jquery-ui/themes/base/images/ui-icons_555555_256x240.png +0 -0
  46. data/app/assets/bower_components/jquery-ui/themes/base/images/ui-icons_777620_256x240.png +0 -0
  47. data/app/assets/bower_components/jquery-ui/themes/base/images/ui-icons_777777_256x240.png +0 -0
  48. data/app/assets/bower_components/jquery-ui/themes/base/images/ui-icons_cc0000_256x240.png +0 -0
  49. data/app/assets/bower_components/jquery-ui/themes/base/images/ui-icons_ffffff_256x240.png +0 -0
  50. data/app/assets/bower_components/jquery-ui/themes/base/jquery-ui.css +0 -1312
  51. data/app/assets/bower_components/jquery-ui/themes/base/jquery-ui.min.css +0 -7
  52. data/app/assets/bower_components/jquery-ui/themes/base/menu.css +0 -64
  53. data/app/assets/bower_components/jquery-ui/themes/base/progressbar.css +0 -28
  54. data/app/assets/bower_components/jquery-ui/themes/base/resizable.css +0 -78
  55. data/app/assets/bower_components/jquery-ui/themes/base/selectable.css +0 -17
  56. data/app/assets/bower_components/jquery-ui/themes/base/selectmenu.css +0 -50
  57. data/app/assets/bower_components/jquery-ui/themes/base/slider.css +0 -75
  58. data/app/assets/bower_components/jquery-ui/themes/base/sortable.css +0 -12
  59. data/app/assets/bower_components/jquery-ui/themes/base/spinner.css +0 -52
  60. data/app/assets/bower_components/jquery-ui/themes/base/tabs.css +0 -51
  61. data/app/assets/bower_components/jquery-ui/themes/base/theme.css +0 -444
  62. data/app/assets/bower_components/jquery-ui/themes/base/tooltip.css +0 -19
  63. data/app/assets/bower_components/jquery-ui/themes/black-tie/images/ui-bg_diagonals-thick_8_333333_40x40.png +0 -0
  64. data/app/assets/bower_components/jquery-ui/themes/black-tie/images/ui-bg_glass_40_111111_1x400.png +0 -0
  65. data/app/assets/bower_components/jquery-ui/themes/black-tie/images/ui-bg_glass_55_1c1c1c_1x400.png +0 -0
  66. data/app/assets/bower_components/jquery-ui/themes/black-tie/images/ui-bg_highlight-hard_100_f9f9f9_1x100.png +0 -0
  67. data/app/assets/bower_components/jquery-ui/themes/black-tie/images/ui-bg_highlight-hard_40_aaaaaa_1x100.png +0 -0
  68. data/app/assets/bower_components/jquery-ui/themes/black-tie/images/ui-bg_highlight-soft_50_aaaaaa_1x100.png +0 -0
  69. data/app/assets/bower_components/jquery-ui/themes/black-tie/images/ui-bg_inset-hard_45_cd0a0a_1x100.png +0 -0
  70. data/app/assets/bower_components/jquery-ui/themes/black-tie/images/ui-bg_inset-hard_55_ffeb80_1x100.png +0 -0
  71. data/app/assets/bower_components/jquery-ui/themes/black-tie/images/ui-icons_222222_256x240.png +0 -0
  72. data/app/assets/bower_components/jquery-ui/themes/black-tie/images/ui-icons_4ca300_256x240.png +0 -0
  73. data/app/assets/bower_components/jquery-ui/themes/black-tie/images/ui-icons_bbbbbb_256x240.png +0 -0
  74. data/app/assets/bower_components/jquery-ui/themes/black-tie/images/ui-icons_ededed_256x240.png +0 -0
  75. data/app/assets/bower_components/jquery-ui/themes/black-tie/images/ui-icons_ffcf29_256x240.png +0 -0
  76. data/app/assets/bower_components/jquery-ui/themes/black-tie/images/ui-icons_ffffff_256x240.png +0 -0
  77. data/app/assets/bower_components/jquery-ui/themes/black-tie/jquery-ui.css +0 -1312
  78. data/app/assets/bower_components/jquery-ui/themes/black-tie/jquery-ui.min.css +0 -7
  79. data/app/assets/bower_components/jquery-ui/themes/black-tie/theme.css +0 -444
  80. data/app/assets/bower_components/jquery-ui/themes/blitzer/images/ui-bg_diagonals-thick_75_f3d8d8_40x40.png +0 -0
  81. data/app/assets/bower_components/jquery-ui/themes/blitzer/images/ui-bg_dots-small_65_a6a6a6_2x2.png +0 -0
  82. data/app/assets/bower_components/jquery-ui/themes/blitzer/images/ui-bg_glass_55_fbf8ee_1x400.png +0 -0
  83. data/app/assets/bower_components/jquery-ui/themes/blitzer/images/ui-bg_highlight-hard_100_eeeeee_1x100.png +0 -0
  84. data/app/assets/bower_components/jquery-ui/themes/blitzer/images/ui-bg_highlight-hard_100_f6f6f6_1x100.png +0 -0
  85. data/app/assets/bower_components/jquery-ui/themes/blitzer/images/ui-bg_highlight-soft_15_cc0000_1x100.png +0 -0
  86. data/app/assets/bower_components/jquery-ui/themes/blitzer/images/ui-icons_004276_256x240.png +0 -0
  87. data/app/assets/bower_components/jquery-ui/themes/blitzer/images/ui-icons_cc0000_256x240.png +0 -0
  88. data/app/assets/bower_components/jquery-ui/themes/blitzer/images/ui-icons_ffffff_256x240.png +0 -0
  89. data/app/assets/bower_components/jquery-ui/themes/blitzer/jquery-ui.css +0 -1312
  90. data/app/assets/bower_components/jquery-ui/themes/blitzer/jquery-ui.min.css +0 -7
  91. data/app/assets/bower_components/jquery-ui/themes/blitzer/theme.css +0 -444
  92. data/app/assets/bower_components/jquery-ui/themes/cupertino/images/ui-bg_diagonals-thick_90_eeeeee_40x40.png +0 -0
  93. data/app/assets/bower_components/jquery-ui/themes/cupertino/images/ui-bg_glass_100_e4f1fb_1x400.png +0 -0
  94. data/app/assets/bower_components/jquery-ui/themes/cupertino/images/ui-bg_glass_50_3baae3_1x400.png +0 -0
  95. data/app/assets/bower_components/jquery-ui/themes/cupertino/images/ui-bg_glass_80_d7ebf9_1x400.png +0 -0
  96. data/app/assets/bower_components/jquery-ui/themes/cupertino/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png +0 -0
  97. data/app/assets/bower_components/jquery-ui/themes/cupertino/images/ui-bg_highlight-hard_70_000000_1x100.png +0 -0
  98. data/app/assets/bower_components/jquery-ui/themes/cupertino/images/ui-bg_highlight-soft_100_deedf7_1x100.png +0 -0
  99. data/app/assets/bower_components/jquery-ui/themes/cupertino/images/ui-bg_highlight-soft_25_ffef8f_1x100.png +0 -0
  100. data/app/assets/bower_components/jquery-ui/themes/cupertino/images/ui-icons_2694e8_256x240.png +0 -0
  101. data/app/assets/bower_components/jquery-ui/themes/cupertino/images/ui-icons_2e83ff_256x240.png +0 -0
  102. data/app/assets/bower_components/jquery-ui/themes/cupertino/images/ui-icons_3d80b3_256x240.png +0 -0
  103. data/app/assets/bower_components/jquery-ui/themes/cupertino/images/ui-icons_72a7cf_256x240.png +0 -0
  104. data/app/assets/bower_components/jquery-ui/themes/cupertino/images/ui-icons_ffffff_256x240.png +0 -0
  105. data/app/assets/bower_components/jquery-ui/themes/cupertino/jquery-ui.css +0 -1312
  106. data/app/assets/bower_components/jquery-ui/themes/cupertino/jquery-ui.min.css +0 -7
  107. data/app/assets/bower_components/jquery-ui/themes/cupertino/theme.css +0 -444
  108. data/app/assets/bower_components/jquery-ui/themes/dark-hive/images/ui-bg_glass_40_ffc73d_1x400.png +0 -0
  109. data/app/assets/bower_components/jquery-ui/themes/dark-hive/images/ui-bg_highlight-hard_20_0972a5_1x100.png +0 -0
  110. data/app/assets/bower_components/jquery-ui/themes/dark-hive/images/ui-bg_highlight-soft_33_003147_1x100.png +0 -0
  111. data/app/assets/bower_components/jquery-ui/themes/dark-hive/images/ui-bg_highlight-soft_35_222222_1x100.png +0 -0
  112. data/app/assets/bower_components/jquery-ui/themes/dark-hive/images/ui-bg_highlight-soft_44_444444_1x100.png +0 -0
  113. data/app/assets/bower_components/jquery-ui/themes/dark-hive/images/ui-bg_highlight-soft_80_eeeeee_1x100.png +0 -0
  114. data/app/assets/bower_components/jquery-ui/themes/dark-hive/images/ui-bg_loop_25_000000_21x21.png +0 -0
  115. data/app/assets/bower_components/jquery-ui/themes/dark-hive/images/ui-icons_222222_256x240.png +0 -0
  116. data/app/assets/bower_components/jquery-ui/themes/dark-hive/images/ui-icons_4b8e0b_256x240.png +0 -0
  117. data/app/assets/bower_components/jquery-ui/themes/dark-hive/images/ui-icons_a83300_256x240.png +0 -0
  118. data/app/assets/bower_components/jquery-ui/themes/dark-hive/images/ui-icons_cccccc_256x240.png +0 -0
  119. data/app/assets/bower_components/jquery-ui/themes/dark-hive/images/ui-icons_ffffff_256x240.png +0 -0
  120. data/app/assets/bower_components/jquery-ui/themes/dark-hive/jquery-ui.css +0 -1312
  121. data/app/assets/bower_components/jquery-ui/themes/dark-hive/jquery-ui.min.css +0 -7
  122. data/app/assets/bower_components/jquery-ui/themes/dark-hive/theme.css +0 -444
  123. data/app/assets/bower_components/jquery-ui/themes/dot-luv/images/ui-bg_diagonals-thick_15_0b3e6f_40x40.png +0 -0
  124. data/app/assets/bower_components/jquery-ui/themes/dot-luv/images/ui-bg_dots-medium_30_0b58a2_4x4.png +0 -0
  125. data/app/assets/bower_components/jquery-ui/themes/dot-luv/images/ui-bg_dots-small_20_333333_2x2.png +0 -0
  126. data/app/assets/bower_components/jquery-ui/themes/dot-luv/images/ui-bg_dots-small_30_a32d00_2x2.png +0 -0
  127. data/app/assets/bower_components/jquery-ui/themes/dot-luv/images/ui-bg_dots-small_40_00498f_2x2.png +0 -0
  128. data/app/assets/bower_components/jquery-ui/themes/dot-luv/images/ui-bg_gloss-wave_20_111111_500x100.png +0 -0
  129. data/app/assets/bower_components/jquery-ui/themes/dot-luv/images/ui-icons_00498f_256x240.png +0 -0
  130. data/app/assets/bower_components/jquery-ui/themes/dot-luv/images/ui-icons_98d2fb_256x240.png +0 -0
  131. data/app/assets/bower_components/jquery-ui/themes/dot-luv/images/ui-icons_9ccdfc_256x240.png +0 -0
  132. data/app/assets/bower_components/jquery-ui/themes/dot-luv/images/ui-icons_ffffff_256x240.png +0 -0
  133. data/app/assets/bower_components/jquery-ui/themes/dot-luv/jquery-ui.css +0 -1312
  134. data/app/assets/bower_components/jquery-ui/themes/dot-luv/jquery-ui.min.css +0 -7
  135. data/app/assets/bower_components/jquery-ui/themes/dot-luv/theme.css +0 -444
  136. data/app/assets/bower_components/jquery-ui/themes/eggplant/images/ui-bg_gloss-wave_30_3d3644_500x100.png +0 -0
  137. data/app/assets/bower_components/jquery-ui/themes/eggplant/images/ui-bg_highlight-soft_100_dcd9de_1x100.png +0 -0
  138. data/app/assets/bower_components/jquery-ui/themes/eggplant/images/ui-bg_highlight-soft_100_eae6ea_1x100.png +0 -0
  139. data/app/assets/bower_components/jquery-ui/themes/eggplant/images/ui-bg_highlight-soft_25_30273a_1x100.png +0 -0
  140. data/app/assets/bower_components/jquery-ui/themes/eggplant/images/ui-bg_highlight-soft_45_5f5964_1x100.png +0 -0
  141. data/app/assets/bower_components/jquery-ui/themes/eggplant/images/ui-icons_454545_256x240.png +0 -0
  142. data/app/assets/bower_components/jquery-ui/themes/eggplant/images/ui-icons_734d99_256x240.png +0 -0
  143. data/app/assets/bower_components/jquery-ui/themes/eggplant/images/ui-icons_8d78a5_256x240.png +0 -0
  144. data/app/assets/bower_components/jquery-ui/themes/eggplant/images/ui-icons_a8a3ae_256x240.png +0 -0
  145. data/app/assets/bower_components/jquery-ui/themes/eggplant/images/ui-icons_ebccce_256x240.png +0 -0
  146. data/app/assets/bower_components/jquery-ui/themes/eggplant/images/ui-icons_ffffff_256x240.png +0 -0
  147. data/app/assets/bower_components/jquery-ui/themes/eggplant/jquery-ui.css +0 -1312
  148. data/app/assets/bower_components/jquery-ui/themes/eggplant/jquery-ui.min.css +0 -7
  149. data/app/assets/bower_components/jquery-ui/themes/eggplant/theme.css +0 -444
  150. data/app/assets/bower_components/jquery-ui/themes/excite-bike/images/ui-bg_diagonals-small_25_c5ddfc_40x40.png +0 -0
  151. data/app/assets/bower_components/jquery-ui/themes/excite-bike/images/ui-bg_diagonals-thick_20_e69700_40x40.png +0 -0
  152. data/app/assets/bower_components/jquery-ui/themes/excite-bike/images/ui-bg_diagonals-thick_22_1484e6_40x40.png +0 -0
  153. data/app/assets/bower_components/jquery-ui/themes/excite-bike/images/ui-bg_diagonals-thick_26_2293f7_40x40.png +0 -0
  154. data/app/assets/bower_components/jquery-ui/themes/excite-bike/images/ui-bg_highlight-soft_100_f9f9f9_1x100.png +0 -0
  155. data/app/assets/bower_components/jquery-ui/themes/excite-bike/images/ui-bg_inset-hard_100_eeeeee_1x100.png +0 -0
  156. data/app/assets/bower_components/jquery-ui/themes/excite-bike/images/ui-icons_0a82eb_256x240.png +0 -0
  157. data/app/assets/bower_components/jquery-ui/themes/excite-bike/images/ui-icons_0b54d5_256x240.png +0 -0
  158. data/app/assets/bower_components/jquery-ui/themes/excite-bike/images/ui-icons_5fa5e3_256x240.png +0 -0
  159. data/app/assets/bower_components/jquery-ui/themes/excite-bike/images/ui-icons_fcdd4a_256x240.png +0 -0
  160. data/app/assets/bower_components/jquery-ui/themes/excite-bike/images/ui-icons_ffffff_256x240.png +0 -0
  161. data/app/assets/bower_components/jquery-ui/themes/excite-bike/jquery-ui.css +0 -1312
  162. data/app/assets/bower_components/jquery-ui/themes/excite-bike/jquery-ui.min.css +0 -7
  163. data/app/assets/bower_components/jquery-ui/themes/excite-bike/theme.css +0 -444
  164. data/app/assets/bower_components/jquery-ui/themes/flick/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  165. data/app/assets/bower_components/jquery-ui/themes/flick/images/ui-bg_highlight-soft_100_f6f6f6_1x100.png +0 -0
  166. data/app/assets/bower_components/jquery-ui/themes/flick/images/ui-bg_highlight-soft_25_0073ea_1x100.png +0 -0
  167. data/app/assets/bower_components/jquery-ui/themes/flick/images/ui-bg_highlight-soft_50_dddddd_1x100.png +0 -0
  168. data/app/assets/bower_components/jquery-ui/themes/flick/images/ui-icons_0073ea_256x240.png +0 -0
  169. data/app/assets/bower_components/jquery-ui/themes/flick/images/ui-icons_454545_256x240.png +0 -0
  170. data/app/assets/bower_components/jquery-ui/themes/flick/images/ui-icons_666666_256x240.png +0 -0
  171. data/app/assets/bower_components/jquery-ui/themes/flick/images/ui-icons_ff0084_256x240.png +0 -0
  172. data/app/assets/bower_components/jquery-ui/themes/flick/images/ui-icons_ffffff_256x240.png +0 -0
  173. data/app/assets/bower_components/jquery-ui/themes/flick/jquery-ui.css +0 -1312
  174. data/app/assets/bower_components/jquery-ui/themes/flick/jquery-ui.min.css +0 -7
  175. data/app/assets/bower_components/jquery-ui/themes/flick/theme.css +0 -444
  176. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/images/ui-bg_diagonals-small_40_db4865_40x40.png +0 -0
  177. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/images/ui-bg_diagonals-small_50_93c3cd_40x40.png +0 -0
  178. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/images/ui-bg_diagonals-small_50_ff3853_40x40.png +0 -0
  179. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/images/ui-bg_diagonals-small_75_ccd232_40x40.png +0 -0
  180. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/images/ui-bg_dots-medium_80_ffff38_4x4.png +0 -0
  181. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/images/ui-bg_dots-small_35_35414f_2x2.png +0 -0
  182. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/images/ui-bg_white-lines_85_f7f7ba_40x100.png +0 -0
  183. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/images/ui-icons_454545_256x240.png +0 -0
  184. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/images/ui-icons_88a206_256x240.png +0 -0
  185. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/images/ui-icons_c02669_256x240.png +0 -0
  186. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/images/ui-icons_e1e463_256x240.png +0 -0
  187. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/images/ui-icons_ffeb33_256x240.png +0 -0
  188. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/images/ui-icons_ffffff_256x240.png +0 -0
  189. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/jquery-ui.css +0 -1312
  190. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/jquery-ui.min.css +0 -7
  191. data/app/assets/bower_components/jquery-ui/themes/hot-sneaks/theme.css +0 -444
  192. data/app/assets/bower_components/jquery-ui/themes/humanity/images/ui-bg_glass_100_f5f0e5_1x400.png +0 -0
  193. data/app/assets/bower_components/jquery-ui/themes/humanity/images/ui-bg_glass_25_cb842e_1x400.png +0 -0
  194. data/app/assets/bower_components/jquery-ui/themes/humanity/images/ui-bg_glass_70_ede4d4_1x400.png +0 -0
  195. data/app/assets/bower_components/jquery-ui/themes/humanity/images/ui-bg_highlight-hard_100_f4f0ec_1x100.png +0 -0
  196. data/app/assets/bower_components/jquery-ui/themes/humanity/images/ui-bg_highlight-hard_65_fee4bd_1x100.png +0 -0
  197. data/app/assets/bower_components/jquery-ui/themes/humanity/images/ui-bg_highlight-hard_75_f5f5b5_1x100.png +0 -0
  198. data/app/assets/bower_components/jquery-ui/themes/humanity/images/ui-bg_inset-soft_100_f4f0ec_1x100.png +0 -0
  199. data/app/assets/bower_components/jquery-ui/themes/humanity/images/ui-icons_c47a23_256x240.png +0 -0
  200. data/app/assets/bower_components/jquery-ui/themes/humanity/images/ui-icons_cb672b_256x240.png +0 -0
  201. data/app/assets/bower_components/jquery-ui/themes/humanity/images/ui-icons_f08000_256x240.png +0 -0
  202. data/app/assets/bower_components/jquery-ui/themes/humanity/images/ui-icons_f35f07_256x240.png +0 -0
  203. data/app/assets/bower_components/jquery-ui/themes/humanity/images/ui-icons_ff7519_256x240.png +0 -0
  204. data/app/assets/bower_components/jquery-ui/themes/humanity/images/ui-icons_ffffff_256x240.png +0 -0
  205. data/app/assets/bower_components/jquery-ui/themes/humanity/jquery-ui.css +0 -1312
  206. data/app/assets/bower_components/jquery-ui/themes/humanity/jquery-ui.min.css +0 -7
  207. data/app/assets/bower_components/jquery-ui/themes/humanity/theme.css +0 -444
  208. data/app/assets/bower_components/jquery-ui/themes/le-frog/images/ui-bg_diagonals-small_0_aaaaaa_40x40.png +0 -0
  209. data/app/assets/bower_components/jquery-ui/themes/le-frog/images/ui-bg_diagonals-thick_15_444444_40x40.png +0 -0
  210. data/app/assets/bower_components/jquery-ui/themes/le-frog/images/ui-bg_diagonals-thick_95_ffdc2e_40x40.png +0 -0
  211. data/app/assets/bower_components/jquery-ui/themes/le-frog/images/ui-bg_glass_55_fbf5d0_1x400.png +0 -0
  212. data/app/assets/bower_components/jquery-ui/themes/le-frog/images/ui-bg_highlight-hard_30_285c00_1x100.png +0 -0
  213. data/app/assets/bower_components/jquery-ui/themes/le-frog/images/ui-bg_highlight-soft_33_3a8104_1x100.png +0 -0
  214. data/app/assets/bower_components/jquery-ui/themes/le-frog/images/ui-bg_highlight-soft_50_4eb305_1x100.png +0 -0
  215. data/app/assets/bower_components/jquery-ui/themes/le-frog/images/ui-bg_highlight-soft_60_4ca20b_1x100.png +0 -0
  216. data/app/assets/bower_components/jquery-ui/themes/le-frog/images/ui-bg_inset-soft_10_285c00_1x100.png +0 -0
  217. data/app/assets/bower_components/jquery-ui/themes/le-frog/images/ui-icons_4eb305_256x240.png +0 -0
  218. data/app/assets/bower_components/jquery-ui/themes/le-frog/images/ui-icons_72b42d_256x240.png +0 -0
  219. data/app/assets/bower_components/jquery-ui/themes/le-frog/images/ui-icons_cd0a0a_256x240.png +0 -0
  220. data/app/assets/bower_components/jquery-ui/themes/le-frog/images/ui-icons_ffffff_256x240.png +0 -0
  221. data/app/assets/bower_components/jquery-ui/themes/le-frog/jquery-ui.css +0 -1312
  222. data/app/assets/bower_components/jquery-ui/themes/le-frog/jquery-ui.min.css +0 -7
  223. data/app/assets/bower_components/jquery-ui/themes/le-frog/theme.css +0 -444
  224. data/app/assets/bower_components/jquery-ui/themes/mint-choc/images/ui-bg_glass_15_5f391b_1x400.png +0 -0
  225. data/app/assets/bower_components/jquery-ui/themes/mint-choc/images/ui-bg_gloss-wave_20_1c160d_500x100.png +0 -0
  226. data/app/assets/bower_components/jquery-ui/themes/mint-choc/images/ui-bg_gloss-wave_25_453326_500x100.png +0 -0
  227. data/app/assets/bower_components/jquery-ui/themes/mint-choc/images/ui-bg_gloss-wave_30_44372c_500x100.png +0 -0
  228. data/app/assets/bower_components/jquery-ui/themes/mint-choc/images/ui-bg_highlight-soft_20_201913_1x100.png +0 -0
  229. data/app/assets/bower_components/jquery-ui/themes/mint-choc/images/ui-bg_highlight-soft_20_619226_1x100.png +0 -0
  230. data/app/assets/bower_components/jquery-ui/themes/mint-choc/images/ui-bg_inset-soft_10_201913_1x100.png +0 -0
  231. data/app/assets/bower_components/jquery-ui/themes/mint-choc/images/ui-icons_222222_256x240.png +0 -0
  232. data/app/assets/bower_components/jquery-ui/themes/mint-choc/images/ui-icons_9bcc60_256x240.png +0 -0
  233. data/app/assets/bower_components/jquery-ui/themes/mint-choc/images/ui-icons_add978_256x240.png +0 -0
  234. data/app/assets/bower_components/jquery-ui/themes/mint-choc/images/ui-icons_e3ddc9_256x240.png +0 -0
  235. data/app/assets/bower_components/jquery-ui/themes/mint-choc/images/ui-icons_f1fd86_256x240.png +0 -0
  236. data/app/assets/bower_components/jquery-ui/themes/mint-choc/images/ui-icons_ffffff_256x240.png +0 -0
  237. data/app/assets/bower_components/jquery-ui/themes/mint-choc/jquery-ui.css +0 -1312
  238. data/app/assets/bower_components/jquery-ui/themes/mint-choc/jquery-ui.min.css +0 -7
  239. data/app/assets/bower_components/jquery-ui/themes/mint-choc/theme.css +0 -444
  240. data/app/assets/bower_components/jquery-ui/themes/overcast/images/ui-bg_glass_100_f8f8f8_1x400.png +0 -0
  241. data/app/assets/bower_components/jquery-ui/themes/overcast/images/ui-bg_glass_35_dddddd_1x400.png +0 -0
  242. data/app/assets/bower_components/jquery-ui/themes/overcast/images/ui-bg_glass_60_eeeeee_1x400.png +0 -0
  243. data/app/assets/bower_components/jquery-ui/themes/overcast/images/ui-bg_inset-hard_75_999999_1x100.png +0 -0
  244. data/app/assets/bower_components/jquery-ui/themes/overcast/images/ui-bg_inset-soft_50_c9c9c9_1x100.png +0 -0
  245. data/app/assets/bower_components/jquery-ui/themes/overcast/images/ui-icons_3383bb_256x240.png +0 -0
  246. data/app/assets/bower_components/jquery-ui/themes/overcast/images/ui-icons_454545_256x240.png +0 -0
  247. data/app/assets/bower_components/jquery-ui/themes/overcast/images/ui-icons_70b2e1_256x240.png +0 -0
  248. data/app/assets/bower_components/jquery-ui/themes/overcast/images/ui-icons_999999_256x240.png +0 -0
  249. data/app/assets/bower_components/jquery-ui/themes/overcast/images/ui-icons_fbc856_256x240.png +0 -0
  250. data/app/assets/bower_components/jquery-ui/themes/overcast/jquery-ui.css +0 -1312
  251. data/app/assets/bower_components/jquery-ui/themes/overcast/jquery-ui.min.css +0 -7
  252. data/app/assets/bower_components/jquery-ui/themes/overcast/theme.css +0 -444
  253. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/images/ui-bg_diagonal-maze_20_6e4f1c_10x10.png +0 -0
  254. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/images/ui-bg_diagonal-maze_40_000000_10x10.png +0 -0
  255. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/images/ui-bg_fine-grain_10_eceadf_60x60.png +0 -0
  256. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/images/ui-bg_fine-grain_10_f8f7f6_60x60.png +0 -0
  257. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/images/ui-bg_fine-grain_15_eceadf_60x60.png +0 -0
  258. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/images/ui-bg_fine-grain_15_f7f3de_60x60.png +0 -0
  259. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/images/ui-bg_fine-grain_15_ffffff_60x60.png +0 -0
  260. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/images/ui-bg_fine-grain_65_654b24_60x60.png +0 -0
  261. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/images/ui-bg_fine-grain_68_b83400_60x60.png +0 -0
  262. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/images/ui-icons_222222_256x240.png +0 -0
  263. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/images/ui-icons_3572ac_256x240.png +0 -0
  264. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/images/ui-icons_8c291d_256x240.png +0 -0
  265. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/images/ui-icons_b83400_256x240.png +0 -0
  266. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/images/ui-icons_fbdb93_256x240.png +0 -0
  267. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/images/ui-icons_ffffff_256x240.png +0 -0
  268. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/jquery-ui.css +0 -1312
  269. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/jquery-ui.min.css +0 -7
  270. data/app/assets/bower_components/jquery-ui/themes/pepper-grinder/theme.css +0 -444
  271. data/app/assets/bower_components/jquery-ui/themes/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
  272. data/app/assets/bower_components/jquery-ui/themes/redmond/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
  273. data/app/assets/bower_components/jquery-ui/themes/redmond/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  274. data/app/assets/bower_components/jquery-ui/themes/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
  275. data/app/assets/bower_components/jquery-ui/themes/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
  276. data/app/assets/bower_components/jquery-ui/themes/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
  277. data/app/assets/bower_components/jquery-ui/themes/redmond/images/ui-icons_217bc0_256x240.png +0 -0
  278. data/app/assets/bower_components/jquery-ui/themes/redmond/images/ui-icons_2e83ff_256x240.png +0 -0
  279. data/app/assets/bower_components/jquery-ui/themes/redmond/images/ui-icons_469bdd_256x240.png +0 -0
  280. data/app/assets/bower_components/jquery-ui/themes/redmond/images/ui-icons_6da8d5_256x240.png +0 -0
  281. data/app/assets/bower_components/jquery-ui/themes/redmond/images/ui-icons_cd0a0a_256x240.png +0 -0
  282. data/app/assets/bower_components/jquery-ui/themes/redmond/images/ui-icons_d8e7f3_256x240.png +0 -0
  283. data/app/assets/bower_components/jquery-ui/themes/redmond/images/ui-icons_f9bd01_256x240.png +0 -0
  284. data/app/assets/bower_components/jquery-ui/themes/redmond/jquery-ui.css +0 -1312
  285. data/app/assets/bower_components/jquery-ui/themes/redmond/jquery-ui.min.css +0 -7
  286. data/app/assets/bower_components/jquery-ui/themes/redmond/theme.css +0 -444
  287. data/app/assets/bower_components/jquery-ui/themes/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  288. data/app/assets/bower_components/jquery-ui/themes/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  289. data/app/assets/bower_components/jquery-ui/themes/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  290. data/app/assets/bower_components/jquery-ui/themes/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  291. data/app/assets/bower_components/jquery-ui/themes/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  292. data/app/assets/bower_components/jquery-ui/themes/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  293. data/app/assets/bower_components/jquery-ui/themes/smoothness/images/ui-icons_222222_256x240.png +0 -0
  294. data/app/assets/bower_components/jquery-ui/themes/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  295. data/app/assets/bower_components/jquery-ui/themes/smoothness/images/ui-icons_454545_256x240.png +0 -0
  296. data/app/assets/bower_components/jquery-ui/themes/smoothness/images/ui-icons_888888_256x240.png +0 -0
  297. data/app/assets/bower_components/jquery-ui/themes/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  298. data/app/assets/bower_components/jquery-ui/themes/smoothness/jquery-ui.css +0 -1312
  299. data/app/assets/bower_components/jquery-ui/themes/smoothness/jquery-ui.min.css +0 -7
  300. data/app/assets/bower_components/jquery-ui/themes/smoothness/theme.css +0 -444
  301. data/app/assets/bower_components/jquery-ui/themes/south-street/images/ui-bg_glass_55_fcf0ba_1x400.png +0 -0
  302. data/app/assets/bower_components/jquery-ui/themes/south-street/images/ui-bg_gloss-wave_100_ece8da_500x100.png +0 -0
  303. data/app/assets/bower_components/jquery-ui/themes/south-street/images/ui-bg_highlight-hard_100_f5f3e5_1x100.png +0 -0
  304. data/app/assets/bower_components/jquery-ui/themes/south-street/images/ui-bg_highlight-hard_100_fafaf4_1x100.png +0 -0
  305. data/app/assets/bower_components/jquery-ui/themes/south-street/images/ui-bg_highlight-hard_15_459e00_1x100.png +0 -0
  306. data/app/assets/bower_components/jquery-ui/themes/south-street/images/ui-bg_highlight-hard_95_cccccc_1x100.png +0 -0
  307. data/app/assets/bower_components/jquery-ui/themes/south-street/images/ui-bg_highlight-soft_25_67b021_1x100.png +0 -0
  308. data/app/assets/bower_components/jquery-ui/themes/south-street/images/ui-bg_highlight-soft_95_ffedad_1x100.png +0 -0
  309. data/app/assets/bower_components/jquery-ui/themes/south-street/images/ui-bg_inset-soft_15_2b2922_1x100.png +0 -0
  310. data/app/assets/bower_components/jquery-ui/themes/south-street/images/ui-icons_808080_256x240.png +0 -0
  311. data/app/assets/bower_components/jquery-ui/themes/south-street/images/ui-icons_847e71_256x240.png +0 -0
  312. data/app/assets/bower_components/jquery-ui/themes/south-street/images/ui-icons_8DC262_256x240.png +0 -0
  313. data/app/assets/bower_components/jquery-ui/themes/south-street/images/ui-icons_cd0a0a_256x240.png +0 -0
  314. data/app/assets/bower_components/jquery-ui/themes/south-street/images/ui-icons_eeeeee_256x240.png +0 -0
  315. data/app/assets/bower_components/jquery-ui/themes/south-street/images/ui-icons_ffffff_256x240.png +0 -0
  316. data/app/assets/bower_components/jquery-ui/themes/south-street/jquery-ui.css +0 -1312
  317. data/app/assets/bower_components/jquery-ui/themes/south-street/jquery-ui.min.css +0 -7
  318. data/app/assets/bower_components/jquery-ui/themes/south-street/theme.css +0 -444
  319. data/app/assets/bower_components/jquery-ui/themes/start/images/ui-bg_glass_45_0078ae_1x400.png +0 -0
  320. data/app/assets/bower_components/jquery-ui/themes/start/images/ui-bg_glass_55_f8da4e_1x400.png +0 -0
  321. data/app/assets/bower_components/jquery-ui/themes/start/images/ui-bg_glass_75_79c9ec_1x400.png +0 -0
  322. data/app/assets/bower_components/jquery-ui/themes/start/images/ui-bg_gloss-wave_45_e14f1c_500x100.png +0 -0
  323. data/app/assets/bower_components/jquery-ui/themes/start/images/ui-bg_gloss-wave_50_6eac2c_500x100.png +0 -0
  324. data/app/assets/bower_components/jquery-ui/themes/start/images/ui-bg_gloss-wave_75_2191c0_500x100.png +0 -0
  325. data/app/assets/bower_components/jquery-ui/themes/start/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
  326. data/app/assets/bower_components/jquery-ui/themes/start/images/ui-icons_0078ae_256x240.png +0 -0
  327. data/app/assets/bower_components/jquery-ui/themes/start/images/ui-icons_056b93_256x240.png +0 -0
  328. data/app/assets/bower_components/jquery-ui/themes/start/images/ui-icons_d8e7f3_256x240.png +0 -0
  329. data/app/assets/bower_components/jquery-ui/themes/start/images/ui-icons_e0fdff_256x240.png +0 -0
  330. data/app/assets/bower_components/jquery-ui/themes/start/images/ui-icons_f5e175_256x240.png +0 -0
  331. data/app/assets/bower_components/jquery-ui/themes/start/images/ui-icons_f7a50d_256x240.png +0 -0
  332. data/app/assets/bower_components/jquery-ui/themes/start/images/ui-icons_fcd113_256x240.png +0 -0
  333. data/app/assets/bower_components/jquery-ui/themes/start/jquery-ui.css +0 -1312
  334. data/app/assets/bower_components/jquery-ui/themes/start/jquery-ui.min.css +0 -7
  335. data/app/assets/bower_components/jquery-ui/themes/start/theme.css +0 -444
  336. data/app/assets/bower_components/jquery-ui/themes/sunny/images/ui-bg_diagonals-medium_20_d34d17_40x40.png +0 -0
  337. data/app/assets/bower_components/jquery-ui/themes/sunny/images/ui-bg_gloss-wave_45_817865_500x100.png +0 -0
  338. data/app/assets/bower_components/jquery-ui/themes/sunny/images/ui-bg_gloss-wave_60_fece2f_500x100.png +0 -0
  339. data/app/assets/bower_components/jquery-ui/themes/sunny/images/ui-bg_gloss-wave_70_ffdd57_500x100.png +0 -0
  340. data/app/assets/bower_components/jquery-ui/themes/sunny/images/ui-bg_gloss-wave_90_fff9e5_500x100.png +0 -0
  341. data/app/assets/bower_components/jquery-ui/themes/sunny/images/ui-bg_highlight-soft_100_feeebd_1x100.png +0 -0
  342. data/app/assets/bower_components/jquery-ui/themes/sunny/images/ui-bg_inset-soft_30_ffffff_1x100.png +0 -0
  343. data/app/assets/bower_components/jquery-ui/themes/sunny/images/ui-icons_3d3d3d_256x240.png +0 -0
  344. data/app/assets/bower_components/jquery-ui/themes/sunny/images/ui-icons_bd7b00_256x240.png +0 -0
  345. data/app/assets/bower_components/jquery-ui/themes/sunny/images/ui-icons_d19405_256x240.png +0 -0
  346. data/app/assets/bower_components/jquery-ui/themes/sunny/images/ui-icons_eb990f_256x240.png +0 -0
  347. data/app/assets/bower_components/jquery-ui/themes/sunny/images/ui-icons_ed9f26_256x240.png +0 -0
  348. data/app/assets/bower_components/jquery-ui/themes/sunny/images/ui-icons_fadc7a_256x240.png +0 -0
  349. data/app/assets/bower_components/jquery-ui/themes/sunny/images/ui-icons_ffe180_256x240.png +0 -0
  350. data/app/assets/bower_components/jquery-ui/themes/sunny/jquery-ui.css +0 -1312
  351. data/app/assets/bower_components/jquery-ui/themes/sunny/jquery-ui.min.css +0 -7
  352. data/app/assets/bower_components/jquery-ui/themes/sunny/theme.css +0 -444
  353. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/images/ui-bg_diamond_10_4f4221_10x8.png +0 -0
  354. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/images/ui-bg_diamond_20_372806_10x8.png +0 -0
  355. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/images/ui-bg_diamond_25_675423_10x8.png +0 -0
  356. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/images/ui-bg_diamond_25_d5ac5d_10x8.png +0 -0
  357. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/images/ui-bg_diamond_8_261803_10x8.png +0 -0
  358. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/images/ui-bg_diamond_8_443113_10x8.png +0 -0
  359. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/images/ui-bg_highlight-hard_65_fee4bd_1x100.png +0 -0
  360. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/images/ui-icons_070603_256x240.png +0 -0
  361. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/images/ui-icons_e8e2b5_256x240.png +0 -0
  362. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/images/ui-icons_e9cd86_256x240.png +0 -0
  363. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/images/ui-icons_efec9f_256x240.png +0 -0
  364. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/images/ui-icons_f2ec64_256x240.png +0 -0
  365. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/images/ui-icons_f9f2bd_256x240.png +0 -0
  366. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/images/ui-icons_ff7519_256x240.png +0 -0
  367. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/jquery-ui.css +0 -1312
  368. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/jquery-ui.min.css +0 -7
  369. data/app/assets/bower_components/jquery-ui/themes/swanky-purse/theme.css +0 -444
  370. data/app/assets/bower_components/jquery-ui/themes/trontastic/images/ui-bg_diagonals-small_50_262626_40x40.png +0 -0
  371. data/app/assets/bower_components/jquery-ui/themes/trontastic/images/ui-bg_glass_40_0a0a0a_1x400.png +0 -0
  372. data/app/assets/bower_components/jquery-ui/themes/trontastic/images/ui-bg_glass_55_f1fbe5_1x400.png +0 -0
  373. data/app/assets/bower_components/jquery-ui/themes/trontastic/images/ui-bg_glass_60_000000_1x400.png +0 -0
  374. data/app/assets/bower_components/jquery-ui/themes/trontastic/images/ui-bg_gloss-wave_55_000000_500x100.png +0 -0
  375. data/app/assets/bower_components/jquery-ui/themes/trontastic/images/ui-bg_gloss-wave_85_9fda58_500x100.png +0 -0
  376. data/app/assets/bower_components/jquery-ui/themes/trontastic/images/ui-bg_gloss-wave_95_f6ecd5_500x100.png +0 -0
  377. data/app/assets/bower_components/jquery-ui/themes/trontastic/images/ui-icons_000000_256x240.png +0 -0
  378. data/app/assets/bower_components/jquery-ui/themes/trontastic/images/ui-icons_1f1f1f_256x240.png +0 -0
  379. data/app/assets/bower_components/jquery-ui/themes/trontastic/images/ui-icons_9fda58_256x240.png +0 -0
  380. data/app/assets/bower_components/jquery-ui/themes/trontastic/images/ui-icons_b8ec79_256x240.png +0 -0
  381. data/app/assets/bower_components/jquery-ui/themes/trontastic/images/ui-icons_cd0a0a_256x240.png +0 -0
  382. data/app/assets/bower_components/jquery-ui/themes/trontastic/images/ui-icons_ffffff_256x240.png +0 -0
  383. data/app/assets/bower_components/jquery-ui/themes/trontastic/jquery-ui.css +0 -1312
  384. data/app/assets/bower_components/jquery-ui/themes/trontastic/jquery-ui.min.css +0 -7
  385. data/app/assets/bower_components/jquery-ui/themes/trontastic/theme.css +0 -444
  386. data/app/assets/bower_components/jquery-ui/themes/ui-darkness/images/ui-bg_glass_20_555555_1x400.png +0 -0
  387. data/app/assets/bower_components/jquery-ui/themes/ui-darkness/images/ui-bg_glass_40_0078a3_1x400.png +0 -0
  388. data/app/assets/bower_components/jquery-ui/themes/ui-darkness/images/ui-bg_glass_40_ffc73d_1x400.png +0 -0
  389. data/app/assets/bower_components/jquery-ui/themes/ui-darkness/images/ui-bg_gloss-wave_25_333333_500x100.png +0 -0
  390. data/app/assets/bower_components/jquery-ui/themes/ui-darkness/images/ui-bg_highlight-soft_80_eeeeee_1x100.png +0 -0
  391. data/app/assets/bower_components/jquery-ui/themes/ui-darkness/images/ui-bg_inset-soft_25_000000_1x100.png +0 -0
  392. data/app/assets/bower_components/jquery-ui/themes/ui-darkness/images/ui-bg_inset-soft_30_f58400_1x100.png +0 -0
  393. data/app/assets/bower_components/jquery-ui/themes/ui-darkness/images/ui-icons_222222_256x240.png +0 -0
  394. data/app/assets/bower_components/jquery-ui/themes/ui-darkness/images/ui-icons_4b8e0b_256x240.png +0 -0
  395. data/app/assets/bower_components/jquery-ui/themes/ui-darkness/images/ui-icons_a83300_256x240.png +0 -0
  396. data/app/assets/bower_components/jquery-ui/themes/ui-darkness/images/ui-icons_cccccc_256x240.png +0 -0
  397. data/app/assets/bower_components/jquery-ui/themes/ui-darkness/images/ui-icons_ffffff_256x240.png +0 -0
  398. data/app/assets/bower_components/jquery-ui/themes/ui-darkness/jquery-ui.css +0 -1312
  399. data/app/assets/bower_components/jquery-ui/themes/ui-darkness/jquery-ui.min.css +0 -7
  400. data/app/assets/bower_components/jquery-ui/themes/ui-darkness/theme.css +0 -444
  401. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  402. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  403. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  404. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  405. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  406. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  407. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  408. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  409. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
  410. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
  411. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
  412. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
  413. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
  414. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/jquery-ui.css +0 -1312
  415. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/jquery-ui.min.css +0 -7
  416. data/app/assets/bower_components/jquery-ui/themes/ui-lightness/theme.css +0 -444
  417. data/app/assets/bower_components/jquery-ui/themes/vader/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  418. data/app/assets/bower_components/jquery-ui/themes/vader/images/ui-bg_gloss-wave_16_121212_500x100.png +0 -0
  419. data/app/assets/bower_components/jquery-ui/themes/vader/images/ui-bg_highlight-hard_15_888888_1x100.png +0 -0
  420. data/app/assets/bower_components/jquery-ui/themes/vader/images/ui-bg_highlight-hard_55_555555_1x100.png +0 -0
  421. data/app/assets/bower_components/jquery-ui/themes/vader/images/ui-bg_highlight-soft_35_adadad_1x100.png +0 -0
  422. data/app/assets/bower_components/jquery-ui/themes/vader/images/ui-bg_highlight-soft_60_dddddd_1x100.png +0 -0
  423. data/app/assets/bower_components/jquery-ui/themes/vader/images/ui-bg_inset-soft_15_121212_1x100.png +0 -0
  424. data/app/assets/bower_components/jquery-ui/themes/vader/images/ui-icons_666666_256x240.png +0 -0
  425. data/app/assets/bower_components/jquery-ui/themes/vader/images/ui-icons_aaaaaa_256x240.png +0 -0
  426. data/app/assets/bower_components/jquery-ui/themes/vader/images/ui-icons_bbbbbb_256x240.png +0 -0
  427. data/app/assets/bower_components/jquery-ui/themes/vader/images/ui-icons_c98000_256x240.png +0 -0
  428. data/app/assets/bower_components/jquery-ui/themes/vader/images/ui-icons_cccccc_256x240.png +0 -0
  429. data/app/assets/bower_components/jquery-ui/themes/vader/images/ui-icons_cd0a0a_256x240.png +0 -0
  430. data/app/assets/bower_components/jquery-ui/themes/vader/images/ui-icons_f29a00_256x240.png +0 -0
  431. data/app/assets/bower_components/jquery-ui/themes/vader/jquery-ui.css +0 -1312
  432. data/app/assets/bower_components/jquery-ui/themes/vader/jquery-ui.min.css +0 -7
  433. data/app/assets/bower_components/jquery-ui/themes/vader/theme.css +0 -444
  434. data/app/assets/bower_components/jquery-ui/ui/core.js +0 -21
  435. data/app/assets/bower_components/jquery-ui/ui/data.js +0 -39
  436. data/app/assets/bower_components/jquery-ui/ui/disable-selection.js +0 -46
  437. data/app/assets/bower_components/jquery-ui/ui/effect.js +0 -1635
  438. data/app/assets/bower_components/jquery-ui/ui/effects/effect-blind.js +0 -70
  439. data/app/assets/bower_components/jquery-ui/ui/effects/effect-bounce.js +0 -110
  440. data/app/assets/bower_components/jquery-ui/ui/effects/effect-clip.js +0 -65
  441. data/app/assets/bower_components/jquery-ui/ui/effects/effect-drop.js +0 -69
  442. data/app/assets/bower_components/jquery-ui/ui/effects/effect-explode.js +0 -111
  443. data/app/assets/bower_components/jquery-ui/ui/effects/effect-fade.js +0 -47
  444. data/app/assets/bower_components/jquery-ui/ui/effects/effect-fold.js +0 -89
  445. data/app/assets/bower_components/jquery-ui/ui/effects/effect-highlight.js +0 -57
  446. data/app/assets/bower_components/jquery-ui/ui/effects/effect-puff.js +0 -42
  447. data/app/assets/bower_components/jquery-ui/ui/effects/effect-pulsate.js +0 -64
  448. data/app/assets/bower_components/jquery-ui/ui/effects/effect-scale.js +0 -56
  449. data/app/assets/bower_components/jquery-ui/ui/effects/effect-shake.js +0 -74
  450. data/app/assets/bower_components/jquery-ui/ui/effects/effect-size.js +0 -191
  451. data/app/assets/bower_components/jquery-ui/ui/effects/effect-slide.js +0 -76
  452. data/app/assets/bower_components/jquery-ui/ui/effects/effect-transfer.js +0 -40
  453. data/app/assets/bower_components/jquery-ui/ui/escape-selector.js +0 -21
  454. data/app/assets/bower_components/jquery-ui/ui/focusable.js +0 -84
  455. data/app/assets/bower_components/jquery-ui/ui/form-reset-mixin.js +0 -77
  456. data/app/assets/bower_components/jquery-ui/ui/form.js +0 -20
  457. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-af.js +0 -37
  458. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-ar-DZ.js +0 -39
  459. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-ar.js +0 -39
  460. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-az.js +0 -37
  461. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-be.js +0 -37
  462. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-bg.js +0 -38
  463. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-bs.js +0 -37
  464. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-ca.js +0 -37
  465. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-cs.js +0 -37
  466. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-cy-GB.js +0 -45
  467. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-da.js +0 -37
  468. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-de.js +0 -37
  469. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-el.js +0 -37
  470. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-en-AU.js +0 -37
  471. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-en-GB.js +0 -37
  472. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-en-NZ.js +0 -37
  473. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-eo.js +0 -37
  474. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-es.js +0 -37
  475. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-et.js +0 -45
  476. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-eu.js +0 -36
  477. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-fa.js +0 -73
  478. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-fi.js +0 -37
  479. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-fo.js +0 -45
  480. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-fr-CA.js +0 -37
  481. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-fr-CH.js +0 -37
  482. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-fr.js +0 -39
  483. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-gl.js +0 -37
  484. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-he.js +0 -37
  485. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-hi.js +0 -37
  486. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-hr.js +0 -37
  487. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-hu.js +0 -36
  488. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-hy.js +0 -37
  489. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-id.js +0 -37
  490. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-is.js +0 -45
  491. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-it-CH.js +0 -37
  492. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-it.js +0 -37
  493. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-ja.js +0 -37
  494. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-ka.js +0 -48
  495. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-kk.js +0 -37
  496. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-km.js +0 -37
  497. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-ko.js +0 -37
  498. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-ky.js +0 -38
  499. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-lb.js +0 -45
  500. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-lt.js +0 -45
  501. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-lv.js +0 -45
  502. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-mk.js +0 -37
  503. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-ml.js +0 -37
  504. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-ms.js +0 -37
  505. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-nb.js +0 -49
  506. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-nl-BE.js +0 -37
  507. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-nl.js +0 -37
  508. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-nn.js +0 -49
  509. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-no.js +0 -50
  510. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-pl.js +0 -37
  511. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-pt-BR.js +0 -45
  512. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-pt.js +0 -44
  513. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-rm.js +0 -61
  514. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-ro.js +0 -40
  515. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-ru.js +0 -37
  516. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-sk.js +0 -37
  517. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-sl.js +0 -38
  518. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-sq.js +0 -37
  519. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-sr-SR.js +0 -37
  520. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-sr.js +0 -37
  521. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-sv.js +0 -37
  522. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-ta.js +0 -53
  523. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-th.js +0 -37
  524. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-tj.js +0 -37
  525. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-tr.js +0 -37
  526. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-uk.js +0 -38
  527. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-vi.js +0 -37
  528. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-zh-CN.js +0 -37
  529. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-zh-HK.js +0 -37
  530. data/app/assets/bower_components/jquery-ui/ui/i18n/datepicker-zh-TW.js +0 -37
  531. data/app/assets/bower_components/jquery-ui/ui/ie.js +0 -15
  532. data/app/assets/bower_components/jquery-ui/ui/jquery-1-7.js +0 -89
  533. data/app/assets/bower_components/jquery-ui/ui/keycode.js +0 -45
  534. data/app/assets/bower_components/jquery-ui/ui/labels.js +0 -62
  535. data/app/assets/bower_components/jquery-ui/ui/minified/core.js +0 -4
  536. data/app/assets/bower_components/jquery-ui/ui/minified/data.js +0 -4
  537. data/app/assets/bower_components/jquery-ui/ui/minified/disable-selection.js +0 -4
  538. data/app/assets/bower_components/jquery-ui/ui/minified/effect.js +0 -4
  539. data/app/assets/bower_components/jquery-ui/ui/minified/escape-selector.js +0 -4
  540. data/app/assets/bower_components/jquery-ui/ui/minified/focusable.js +0 -4
  541. data/app/assets/bower_components/jquery-ui/ui/minified/form-reset-mixin.js +0 -4
  542. data/app/assets/bower_components/jquery-ui/ui/minified/form.js +0 -4
  543. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-af.js +0 -4
  544. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-ar-DZ.js +0 -4
  545. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-ar.js +0 -4
  546. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-az.js +0 -4
  547. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-be.js +0 -4
  548. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-bg.js +0 -4
  549. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-bs.js +0 -4
  550. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-ca.js +0 -4
  551. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-cs.js +0 -4
  552. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-cy-GB.js +0 -4
  553. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-da.js +0 -4
  554. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-de.js +0 -4
  555. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-el.js +0 -4
  556. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-en-AU.js +0 -4
  557. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-en-GB.js +0 -4
  558. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-en-NZ.js +0 -4
  559. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-eo.js +0 -4
  560. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-es.js +0 -4
  561. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-et.js +0 -4
  562. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-eu.js +0 -4
  563. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-fa.js +0 -4
  564. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-fi.js +0 -4
  565. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-fo.js +0 -4
  566. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-fr-CA.js +0 -4
  567. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-fr-CH.js +0 -4
  568. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-fr.js +0 -4
  569. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-gl.js +0 -4
  570. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-he.js +0 -4
  571. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-hi.js +0 -4
  572. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-hr.js +0 -4
  573. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-hu.js +0 -4
  574. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-hy.js +0 -4
  575. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-id.js +0 -4
  576. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-is.js +0 -4
  577. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-it-CH.js +0 -4
  578. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-it.js +0 -4
  579. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-ja.js +0 -4
  580. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-ka.js +0 -4
  581. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-kk.js +0 -4
  582. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-km.js +0 -4
  583. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-ko.js +0 -4
  584. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-ky.js +0 -4
  585. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-lb.js +0 -4
  586. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-lt.js +0 -4
  587. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-lv.js +0 -4
  588. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-mk.js +0 -4
  589. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-ml.js +0 -4
  590. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-ms.js +0 -4
  591. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-nb.js +0 -4
  592. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-nl-BE.js +0 -4
  593. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-nl.js +0 -4
  594. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-nn.js +0 -4
  595. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-no.js +0 -4
  596. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-pl.js +0 -4
  597. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-pt-BR.js +0 -4
  598. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-pt.js +0 -4
  599. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-rm.js +0 -4
  600. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-ro.js +0 -4
  601. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-ru.js +0 -4
  602. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-sk.js +0 -4
  603. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-sl.js +0 -4
  604. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-sq.js +0 -4
  605. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-sr-SR.js +0 -4
  606. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-sr.js +0 -4
  607. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-sv.js +0 -4
  608. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-ta.js +0 -4
  609. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-th.js +0 -4
  610. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-tj.js +0 -4
  611. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-tr.js +0 -4
  612. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-uk.js +0 -4
  613. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-vi.js +0 -4
  614. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-zh-CN.js +0 -4
  615. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-zh-HK.js +0 -4
  616. data/app/assets/bower_components/jquery-ui/ui/minified/i18n/datepicker-zh-TW.js +0 -4
  617. data/app/assets/bower_components/jquery-ui/ui/minified/ie.js +0 -4
  618. data/app/assets/bower_components/jquery-ui/ui/minified/jquery-1-7.js +0 -4
  619. data/app/assets/bower_components/jquery-ui/ui/minified/keycode.js +0 -4
  620. data/app/assets/bower_components/jquery-ui/ui/minified/labels.js +0 -4
  621. data/app/assets/bower_components/jquery-ui/ui/minified/plugin.js +0 -4
  622. data/app/assets/bower_components/jquery-ui/ui/minified/position.js +0 -4
  623. data/app/assets/bower_components/jquery-ui/ui/minified/safe-active-element.js +0 -4
  624. data/app/assets/bower_components/jquery-ui/ui/minified/safe-blur.js +0 -4
  625. data/app/assets/bower_components/jquery-ui/ui/minified/scroll-parent.js +0 -4
  626. data/app/assets/bower_components/jquery-ui/ui/minified/tabbable.js +0 -4
  627. data/app/assets/bower_components/jquery-ui/ui/minified/unique-id.js +0 -4
  628. data/app/assets/bower_components/jquery-ui/ui/minified/version.js +0 -4
  629. data/app/assets/bower_components/jquery-ui/ui/minified/widget.js +0 -4
  630. data/app/assets/bower_components/jquery-ui/ui/plugin.js +0 -44
  631. data/app/assets/bower_components/jquery-ui/ui/position.js +0 -525
  632. data/app/assets/bower_components/jquery-ui/ui/safe-active-element.js +0 -40
  633. data/app/assets/bower_components/jquery-ui/ui/safe-blur.js +0 -21
  634. data/app/assets/bower_components/jquery-ui/ui/scroll-parent.js +0 -45
  635. data/app/assets/bower_components/jquery-ui/ui/tabbable.js +0 -35
  636. data/app/assets/bower_components/jquery-ui/ui/unique-id.js +0 -49
  637. data/app/assets/bower_components/jquery-ui/ui/version.js +0 -17
  638. data/app/assets/bower_components/jquery-ui/ui/widget.js +0 -713
  639. data/app/assets/bower_components/jquery-ui/ui/widgets/accordion.js +0 -613
  640. data/app/assets/bower_components/jquery-ui/ui/widgets/autocomplete.js +0 -682
  641. data/app/assets/bower_components/jquery-ui/ui/widgets/button.js +0 -386
  642. data/app/assets/bower_components/jquery-ui/ui/widgets/checkboxradio.js +0 -278
  643. data/app/assets/bower_components/jquery-ui/ui/widgets/controlgroup.js +0 -296
  644. data/app/assets/bower_components/jquery-ui/ui/widgets/datepicker.js +0 -2120
  645. data/app/assets/bower_components/jquery-ui/ui/widgets/dialog.js +0 -930
  646. data/app/assets/bower_components/jquery-ui/ui/widgets/draggable.js +0 -1251
  647. data/app/assets/bower_components/jquery-ui/ui/widgets/droppable.js +0 -497
  648. data/app/assets/bower_components/jquery-ui/ui/widgets/menu.js +0 -670
  649. data/app/assets/bower_components/jquery-ui/ui/widgets/mouse.js +0 -226
  650. data/app/assets/bower_components/jquery-ui/ui/widgets/progressbar.js +0 -178
  651. data/app/assets/bower_components/jquery-ui/ui/widgets/resizable.js +0 -1201
  652. data/app/assets/bower_components/jquery-ui/ui/widgets/selectable.js +0 -310
  653. data/app/assets/bower_components/jquery-ui/ui/widgets/selectmenu.js +0 -687
  654. data/app/assets/bower_components/jquery-ui/ui/widgets/slider.js +0 -750
  655. data/app/assets/bower_components/jquery-ui/ui/widgets/sortable.js +0 -1554
  656. data/app/assets/bower_components/jquery-ui/ui/widgets/spinner.js +0 -575
  657. data/app/assets/bower_components/jquery-ui/ui/widgets/tabs.js +0 -921
  658. data/app/assets/bower_components/jquery-ui/ui/widgets/tooltip.js +0 -520
  659. data/app/assets/bower_components/jquery/AUTHORS.txt +0 -295
  660. data/app/assets/bower_components/jquery/LICENSE.txt +0 -36
  661. data/app/assets/bower_components/jquery/README.md +0 -65
  662. data/app/assets/bower_components/jquery/bower.json +0 -14
  663. data/app/assets/bower_components/jquery/dist/core.js +0 -481
  664. data/app/assets/bower_components/jquery/dist/jquery.js +0 -10074
  665. data/app/assets/bower_components/jquery/dist/jquery.min.js +0 -4
  666. data/app/assets/bower_components/jquery/dist/jquery.min.map +0 -1
  667. data/app/assets/bower_components/jquery/dist/jquery.slim.js +0 -7966
  668. data/app/assets/bower_components/jquery/dist/jquery.slim.min.js +0 -4
  669. data/app/assets/bower_components/jquery/dist/jquery.slim.min.map +0 -1
  670. data/app/assets/bower_components/jquery/external/sizzle/LICENSE.txt +0 -36
  671. data/app/assets/bower_components/jquery/external/sizzle/dist/sizzle.js +0 -2217
  672. data/app/assets/bower_components/jquery/external/sizzle/dist/sizzle.min.js +0 -3
  673. data/app/assets/bower_components/jquery/external/sizzle/dist/sizzle.min.map +0 -1
  674. data/app/assets/bower_components/jquery/src/ajax.js +0 -855
  675. data/app/assets/bower_components/jquery/src/ajax/jsonp.js +0 -102
  676. data/app/assets/bower_components/jquery/src/ajax/load.js +0 -75
  677. data/app/assets/bower_components/jquery/src/ajax/parseXML.js +0 -30
  678. data/app/assets/bower_components/jquery/src/ajax/script.js +0 -77
  679. data/app/assets/bower_components/jquery/src/ajax/var/location.js +0 -5
  680. data/app/assets/bower_components/jquery/src/ajax/var/nonce.js +0 -7
  681. data/app/assets/bower_components/jquery/src/ajax/var/rquery.js +0 -5
  682. data/app/assets/bower_components/jquery/src/ajax/xhr.js +0 -169
  683. data/app/assets/bower_components/jquery/src/attributes.js +0 -13
  684. data/app/assets/bower_components/jquery/src/attributes/attr.js +0 -137
  685. data/app/assets/bower_components/jquery/src/attributes/classes.js +0 -179
  686. data/app/assets/bower_components/jquery/src/attributes/prop.js +0 -128
  687. data/app/assets/bower_components/jquery/src/attributes/support.js +0 -33
  688. data/app/assets/bower_components/jquery/src/attributes/val.js +0 -184
  689. data/app/assets/bower_components/jquery/src/callbacks.js +0 -234
  690. data/app/assets/bower_components/jquery/src/core.js +0 -481
  691. data/app/assets/bower_components/jquery/src/core/DOMEval.js +0 -16
  692. data/app/assets/bower_components/jquery/src/core/access.js +0 -67
  693. data/app/assets/bower_components/jquery/src/core/init.js +0 -127
  694. data/app/assets/bower_components/jquery/src/core/parseHTML.js +0 -65
  695. data/app/assets/bower_components/jquery/src/core/ready-no-deferred.js +0 -111
  696. data/app/assets/bower_components/jquery/src/core/ready.js +0 -95
  697. data/app/assets/bower_components/jquery/src/core/readyException.js +0 -13
  698. data/app/assets/bower_components/jquery/src/core/support.js +0 -20
  699. data/app/assets/bower_components/jquery/src/core/var/rsingleTag.js +0 -6
  700. data/app/assets/bower_components/jquery/src/css.js +0 -424
  701. data/app/assets/bower_components/jquery/src/css/addGetHookIf.js +0 -26
  702. data/app/assets/bower_components/jquery/src/css/adjustCSS.js +0 -71
  703. data/app/assets/bower_components/jquery/src/css/curCSS.js +0 -59
  704. data/app/assets/bower_components/jquery/src/css/hiddenVisibleSelectors.js +0 -15
  705. data/app/assets/bower_components/jquery/src/css/showHide.js +0 -105
  706. data/app/assets/bower_components/jquery/src/css/support.js +0 -89
  707. data/app/assets/bower_components/jquery/src/css/var/cssExpand.js +0 -5
  708. data/app/assets/bower_components/jquery/src/css/var/getStyles.js +0 -17
  709. data/app/assets/bower_components/jquery/src/css/var/isHiddenWithinTree.js +0 -34
  710. data/app/assets/bower_components/jquery/src/css/var/rmargin.js +0 -5
  711. data/app/assets/bower_components/jquery/src/css/var/rnumnonpx.js +0 -7
  712. data/app/assets/bower_components/jquery/src/css/var/swap.js +0 -26
  713. data/app/assets/bower_components/jquery/src/data.js +0 -161
  714. data/app/assets/bower_components/jquery/src/data/Data.js +0 -161
  715. data/app/assets/bower_components/jquery/src/data/var/acceptData.js +0 -19
  716. data/app/assets/bower_components/jquery/src/data/var/dataPriv.js +0 -7
  717. data/app/assets/bower_components/jquery/src/data/var/dataUser.js +0 -7
  718. data/app/assets/bower_components/jquery/src/deferred.js +0 -389
  719. data/app/assets/bower_components/jquery/src/deferred/exceptionHook.js +0 -21
  720. data/app/assets/bower_components/jquery/src/deprecated.js +0 -30
  721. data/app/assets/bower_components/jquery/src/dimensions.js +0 -56
  722. data/app/assets/bower_components/jquery/src/effects.js +0 -688
  723. data/app/assets/bower_components/jquery/src/effects/Tween.js +0 -123
  724. data/app/assets/bower_components/jquery/src/effects/animatedSelector.js +0 -15
  725. data/app/assets/bower_components/jquery/src/event.js +0 -726
  726. data/app/assets/bower_components/jquery/src/event/ajax.js +0 -22
  727. data/app/assets/bower_components/jquery/src/event/alias.js +0 -29
  728. data/app/assets/bower_components/jquery/src/event/focusin.js +0 -55
  729. data/app/assets/bower_components/jquery/src/event/support.js +0 -11
  730. data/app/assets/bower_components/jquery/src/event/trigger.js +0 -185
  731. data/app/assets/bower_components/jquery/src/exports/amd.js +0 -26
  732. data/app/assets/bower_components/jquery/src/exports/global.js +0 -34
  733. data/app/assets/bower_components/jquery/src/jquery.js +0 -40
  734. data/app/assets/bower_components/jquery/src/manipulation.js +0 -486
  735. data/app/assets/bower_components/jquery/src/manipulation/_evalUrl.js +0 -23
  736. data/app/assets/bower_components/jquery/src/manipulation/buildFragment.js +0 -104
  737. data/app/assets/bower_components/jquery/src/manipulation/getAll.js +0 -23
  738. data/app/assets/bower_components/jquery/src/manipulation/setGlobalEval.js +0 -22
  739. data/app/assets/bower_components/jquery/src/manipulation/support.js +0 -35
  740. data/app/assets/bower_components/jquery/src/manipulation/var/rcheckableType.js +0 -5
  741. data/app/assets/bower_components/jquery/src/manipulation/var/rscriptType.js +0 -5
  742. data/app/assets/bower_components/jquery/src/manipulation/var/rtagName.js +0 -5
  743. data/app/assets/bower_components/jquery/src/manipulation/wrapMap.js +0 -29
  744. data/app/assets/bower_components/jquery/src/offset.js +0 -232
  745. data/app/assets/bower_components/jquery/src/queue.js +0 -145
  746. data/app/assets/bower_components/jquery/src/queue/delay.js +0 -24
  747. data/app/assets/bower_components/jquery/src/selector-native.js +0 -237
  748. data/app/assets/bower_components/jquery/src/selector-sizzle.js +0 -19
  749. data/app/assets/bower_components/jquery/src/selector.js +0 -3
  750. data/app/assets/bower_components/jquery/src/serialize.js +0 -126
  751. data/app/assets/bower_components/jquery/src/traversing.js +0 -178
  752. data/app/assets/bower_components/jquery/src/traversing/findFilter.js +0 -99
  753. data/app/assets/bower_components/jquery/src/traversing/var/dir.js +0 -22
  754. data/app/assets/bower_components/jquery/src/traversing/var/rneedsContext.js +0 -8
  755. data/app/assets/bower_components/jquery/src/traversing/var/siblings.js +0 -17
  756. data/app/assets/bower_components/jquery/src/var/ObjectFunctionString.js +0 -7
  757. data/app/assets/bower_components/jquery/src/var/arr.js +0 -5
  758. data/app/assets/bower_components/jquery/src/var/class2type.js +0 -6
  759. data/app/assets/bower_components/jquery/src/var/concat.js +0 -7
  760. data/app/assets/bower_components/jquery/src/var/document.js +0 -5
  761. data/app/assets/bower_components/jquery/src/var/documentElement.js +0 -7
  762. data/app/assets/bower_components/jquery/src/var/fnToString.js +0 -7
  763. data/app/assets/bower_components/jquery/src/var/getProto.js +0 -5
  764. data/app/assets/bower_components/jquery/src/var/hasOwn.js +0 -7
  765. data/app/assets/bower_components/jquery/src/var/indexOf.js +0 -7
  766. data/app/assets/bower_components/jquery/src/var/pnum.js +0 -5
  767. data/app/assets/bower_components/jquery/src/var/push.js +0 -7
  768. data/app/assets/bower_components/jquery/src/var/rcssNum.js +0 -9
  769. data/app/assets/bower_components/jquery/src/var/rnotwhite.js +0 -5
  770. data/app/assets/bower_components/jquery/src/var/slice.js +0 -7
  771. data/app/assets/bower_components/jquery/src/var/support.js +0 -6
  772. data/app/assets/bower_components/jquery/src/var/toString.js +0 -7
  773. data/app/assets/bower_components/jquery/src/wrap.js +0 -77
@@ -1,296 +0,0 @@
1
- /*!
2
- * jQuery UI Controlgroup 1.12.0
3
- * http://jqueryui.com
4
- *
5
- * Copyright jQuery Foundation and other contributors
6
- * Released under the MIT license.
7
- * http://jquery.org/license
8
- */
9
-
10
- //>>label: Controlgroup
11
- //>>group: Widgets
12
- //>>description: Visually groups form control widgets
13
- //>>docs: http://api.jqueryui.com/controlgroup/
14
- //>>demos: http://jqueryui.com/controlgroup/
15
- //>>css.structure: ../../themes/base/core.css
16
- //>>css.structure: ../../themes/base/controlgroup.css
17
- //>>css.theme: ../../themes/base/theme.css
18
-
19
- ( function( factory ) {
20
- if ( typeof define === "function" && define.amd ) {
21
-
22
- // AMD. Register as an anonymous module.
23
- define( [
24
- "jquery",
25
- "../widget"
26
- ], factory );
27
- } else {
28
-
29
- // Browser globals
30
- factory( jQuery );
31
- }
32
- }( function( $ ) {
33
- var controlgroupCornerRegex = /ui-corner-([a-z]){2,6}/g;
34
-
35
- return $.widget( "ui.controlgroup", {
36
- version: "1.12.0",
37
- defaultElement: "<div>",
38
- options: {
39
- direction: "horizontal",
40
- disabled: null,
41
- onlyVisible: true,
42
- items: {
43
- "button": "input[type=button], input[type=submit], input[type=reset], button, a",
44
- "controlgroupLabel": ".ui-controlgroup-label",
45
- "checkboxradio": "input[type='checkbox'], input[type='radio']",
46
- "selectmenu": "select",
47
- "spinner": ".ui-spinner-input"
48
- }
49
- },
50
-
51
- _create: function() {
52
- this._enhance();
53
- },
54
-
55
- // To support the enhanced option in jQuery Mobile, we isolate DOM manipulation
56
- _enhance: function() {
57
- this.element.attr( "role", "toolbar" );
58
- this.refresh();
59
- },
60
-
61
- _destroy: function() {
62
- this._callChildMethod( "destroy" );
63
- this.childWidgets.removeData( "ui-controlgroup-data" );
64
- this.element.removeAttr( "role" );
65
- if ( this.options.items.controlgroupLabel ) {
66
- this.element
67
- .find( this.options.items.controlgroupLabel )
68
- .find( ".ui-controlgroup-label-contents" )
69
- .contents().unwrap();
70
- }
71
- },
72
-
73
- _initWidgets: function() {
74
- var that = this,
75
- childWidgets = [];
76
-
77
- // First we iterate over each of the items options
78
- $.each( this.options.items, function( widget, selector ) {
79
- var labels;
80
- var options = {};
81
-
82
- // Make sure the widget has a selector set
83
- if ( !selector ) {
84
- return;
85
- }
86
-
87
- if ( widget === "controlgroupLabel" ) {
88
- labels = that.element.find( selector );
89
- labels.each( function() {
90
- var element = $( this );
91
-
92
- if ( element.children( ".ui-controlgroup-label-contents" ).length ) {
93
- return;
94
- }
95
- element.contents()
96
- .wrapAll( "<span class='ui-controlgroup-label-contents'></span>" );
97
- } );
98
- that._addClass( labels, null, "ui-widget ui-widget-content ui-state-default" );
99
- childWidgets = childWidgets.concat( labels.get() );
100
- return;
101
- }
102
-
103
- // Make sure the widget actually exists
104
- if ( !$.fn[ widget ] ) {
105
- return;
106
- }
107
-
108
- // We assume everything is in the middle to start because we can't determine
109
- // first / last elements until all enhancments are done.
110
- if ( that[ "_" + widget + "Options" ] ) {
111
- options = that[ "_" + widget + "Options" ]( "middle" );
112
- }
113
-
114
- // Find instances of this widget inside controlgroup and init them
115
- that.element
116
- .find( selector )
117
- .each( function() {
118
- var element = $( this );
119
- var instance = element[ widget ]( "instance" );
120
-
121
- // We need to clone the default options for this type of widget to avoid
122
- // polluting the variable options which has a wider scope than a single widget.
123
- var instanceOptions = $.widget.extend( {}, options );
124
-
125
- // If the button is the child of a spinner ignore it
126
- // TODO: Find a more generic solution
127
- if ( widget === "button" && element.parent( ".ui-spinner" ).length ) {
128
- return;
129
- }
130
-
131
- // Create the widget if it doesn't exist
132
- if ( !instance ) {
133
- instance = element[ widget ]()[ widget ]( "instance" );
134
- }
135
- if ( instance ) {
136
- instanceOptions.classes =
137
- that._resolveClassesValues( instanceOptions.classes, instance );
138
- }
139
- element[ widget ]( instanceOptions );
140
-
141
- // Store an instance of the controlgroup to be able to reference
142
- // from the outermost element for changing options and refresh
143
- var widgetElement = element[ widget ]( "widget" );
144
- $.data( widgetElement[ 0 ], "ui-controlgroup-data",
145
- instance ? instance : element[ widget ]( "instance" ) );
146
-
147
- childWidgets.push( widgetElement[ 0 ] );
148
- } );
149
- } );
150
-
151
- this.childWidgets = $( $.unique( childWidgets ) );
152
- this._addClass( this.childWidgets, "ui-controlgroup-item" );
153
- },
154
-
155
- _callChildMethod: function( method ) {
156
- this.childWidgets.each( function() {
157
- var element = $( this ),
158
- data = element.data( "ui-controlgroup-data" );
159
- if ( data && data[ method ] ) {
160
- data[ method ]();
161
- }
162
- } );
163
- },
164
-
165
- _updateCornerClass: function( element, position ) {
166
- var remove = "ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all";
167
- var add = this._buildSimpleOptions( position, "label" ).classes.label;
168
-
169
- this._removeClass( element, null, remove );
170
- this._addClass( element, null, add );
171
- },
172
-
173
- _buildSimpleOptions: function( position, key ) {
174
- var direction = this.options.direction === "vertical";
175
- var result = {
176
- classes: {}
177
- };
178
- result.classes[ key ] = {
179
- "middle": "",
180
- "first": "ui-corner-" + ( direction ? "top" : "left" ),
181
- "last": "ui-corner-" + ( direction ? "bottom" : "right" ),
182
- "only": "ui-corner-all"
183
- }[ position ];
184
-
185
- return result;
186
- },
187
-
188
- _spinnerOptions: function( position ) {
189
- var options = this._buildSimpleOptions( position, "ui-spinner" );
190
-
191
- options.classes[ "ui-spinner-up" ] = "";
192
- options.classes[ "ui-spinner-down" ] = "";
193
-
194
- return options;
195
- },
196
-
197
- _buttonOptions: function( position ) {
198
- return this._buildSimpleOptions( position, "ui-button" );
199
- },
200
-
201
- _checkboxradioOptions: function( position ) {
202
- return this._buildSimpleOptions( position, "ui-checkboxradio-label" );
203
- },
204
-
205
- _selectmenuOptions: function( position ) {
206
- var direction = this.options.direction === "vertical";
207
- return {
208
- width: direction ? "auto" : false,
209
- classes: {
210
- middle: {
211
- "ui-selectmenu-button-open": "",
212
- "ui-selectmenu-button-closed": ""
213
- },
214
- first: {
215
- "ui-selectmenu-button-open": "ui-corner-" + ( direction ? "top" : "tl" ),
216
- "ui-selectmenu-button-closed": "ui-corner-" + ( direction ? "top" : "left" )
217
- },
218
- last: {
219
- "ui-selectmenu-button-open": direction ? "" : "ui-corner-tr",
220
- "ui-selectmenu-button-closed": "ui-corner-" + ( direction ? "bottom" : "right" )
221
- },
222
- only: {
223
- "ui-selectmenu-button-open": "ui-corner-top",
224
- "ui-selectmenu-button-closed": "ui-corner-all"
225
- }
226
-
227
- }[ position ]
228
- };
229
- },
230
-
231
- _resolveClassesValues: function( classes, instance ) {
232
- var result = {};
233
- $.each( classes, function( key ) {
234
- var current = instance.options.classes[ key ] || "";
235
- current = current.replace( controlgroupCornerRegex, "" ).trim();
236
- result[ key ] = ( current + " " + classes[ key ] ).replace( /\s+/g, " " );
237
- } );
238
- return result;
239
- },
240
-
241
- _setOption: function( key, value ) {
242
- if ( key === "direction" ) {
243
- this._removeClass( "ui-controlgroup-" + this.options.direction );
244
- }
245
-
246
- this._super( key, value );
247
- if ( key === "disabled" ) {
248
- this._callChildMethod( value ? "disable" : "enable" );
249
- return;
250
- }
251
-
252
- this.refresh();
253
- },
254
-
255
- refresh: function() {
256
- var children,
257
- that = this;
258
-
259
- this._addClass( "ui-controlgroup ui-controlgroup-" + this.options.direction );
260
-
261
- if ( this.options.direction === "horizontal" ) {
262
- this._addClass( null, "ui-helper-clearfix" );
263
- }
264
- this._initWidgets();
265
-
266
- children = this.childWidgets;
267
-
268
- // We filter here because we need to track all childWidgets not just the visible ones
269
- if ( this.options.onlyVisible ) {
270
- children = children.filter( ":visible" );
271
- }
272
-
273
- if ( children.length ) {
274
-
275
- // We do this last because we need to make sure all enhancment is done
276
- // before determining first and last
277
- $.each( [ "first", "last" ], function( index, value ) {
278
- var instance = children[ value ]().data( "ui-controlgroup-data" );
279
-
280
- if ( instance && that[ "_" + instance.widgetName + "Options" ] ) {
281
- var options = that[ "_" + instance.widgetName + "Options" ](
282
- children.length === 1 ? "only" : value
283
- );
284
- options.classes = that._resolveClassesValues( options.classes, instance );
285
- instance.element[ instance.widgetName ]( options );
286
- } else {
287
- that._updateCornerClass( children[ value ](), value );
288
- }
289
- } );
290
-
291
- // Finally call the refresh method on each of the child widgets.
292
- this._callChildMethod( "refresh" );
293
- }
294
- }
295
- } );
296
- } ) );
@@ -1,2120 +0,0 @@
1
- // jscs:disable maximumLineLength
2
- /* jscs:disable requireCamelCaseOrUpperCaseIdentifiers */
3
- /*!
4
- * jQuery UI Datepicker 1.12.0
5
- * http://jqueryui.com
6
- *
7
- * Copyright jQuery Foundation and other contributors
8
- * Released under the MIT license.
9
- * http://jquery.org/license
10
- */
11
-
12
- //>>label: Datepicker
13
- //>>group: Widgets
14
- //>>description: Displays a calendar from an input or inline for selecting dates.
15
- //>>docs: http://api.jqueryui.com/datepicker/
16
- //>>demos: http://jqueryui.com/datepicker/
17
- //>>css.structure: ../../themes/base/core.css
18
- //>>css.structure: ../../themes/base/datepicker.css
19
- //>>css.theme: ../../themes/base/theme.css
20
-
21
- ( function( factory ) {
22
- if ( typeof define === "function" && define.amd ) {
23
-
24
- // AMD. Register as an anonymous module.
25
- define( [
26
- "jquery",
27
- "../version",
28
- "../keycode"
29
- ], factory );
30
- } else {
31
-
32
- // Browser globals
33
- factory( jQuery );
34
- }
35
- }( function( $ ) {
36
-
37
- $.extend( $.ui, { datepicker: { version: "1.12.0" } } );
38
-
39
- var datepicker_instActive;
40
-
41
- function datepicker_getZindex( elem ) {
42
- var position, value;
43
- while ( elem.length && elem[ 0 ] !== document ) {
44
-
45
- // Ignore z-index if position is set to a value where z-index is ignored by the browser
46
- // This makes behavior of this function consistent across browsers
47
- // WebKit always returns auto if the element is positioned
48
- position = elem.css( "position" );
49
- if ( position === "absolute" || position === "relative" || position === "fixed" ) {
50
-
51
- // IE returns 0 when zIndex is not specified
52
- // other browsers return a string
53
- // we ignore the case of nested elements with an explicit value of 0
54
- // <div style="z-index: -10;"><div style="z-index: 0;"></div></div>
55
- value = parseInt( elem.css( "zIndex" ), 10 );
56
- if ( !isNaN( value ) && value !== 0 ) {
57
- return value;
58
- }
59
- }
60
- elem = elem.parent();
61
- }
62
-
63
- return 0;
64
- }
65
- /* Date picker manager.
66
- Use the singleton instance of this class, $.datepicker, to interact with the date picker.
67
- Settings for (groups of) date pickers are maintained in an instance object,
68
- allowing multiple different settings on the same page. */
69
-
70
- function Datepicker() {
71
- this._curInst = null; // The current instance in use
72
- this._keyEvent = false; // If the last event was a key event
73
- this._disabledInputs = []; // List of date picker inputs that have been disabled
74
- this._datepickerShowing = false; // True if the popup picker is showing , false if not
75
- this._inDialog = false; // True if showing within a "dialog", false if not
76
- this._mainDivId = "ui-datepicker-div"; // The ID of the main datepicker division
77
- this._inlineClass = "ui-datepicker-inline"; // The name of the inline marker class
78
- this._appendClass = "ui-datepicker-append"; // The name of the append marker class
79
- this._triggerClass = "ui-datepicker-trigger"; // The name of the trigger marker class
80
- this._dialogClass = "ui-datepicker-dialog"; // The name of the dialog marker class
81
- this._disableClass = "ui-datepicker-disabled"; // The name of the disabled covering marker class
82
- this._unselectableClass = "ui-datepicker-unselectable"; // The name of the unselectable cell marker class
83
- this._currentClass = "ui-datepicker-current-day"; // The name of the current day marker class
84
- this._dayOverClass = "ui-datepicker-days-cell-over"; // The name of the day hover marker class
85
- this.regional = []; // Available regional settings, indexed by language code
86
- this.regional[ "" ] = { // Default regional settings
87
- closeText: "Done", // Display text for close link
88
- prevText: "Prev", // Display text for previous month link
89
- nextText: "Next", // Display text for next month link
90
- currentText: "Today", // Display text for current month link
91
- monthNames: [ "January","February","March","April","May","June",
92
- "July","August","September","October","November","December" ], // Names of months for drop-down and formatting
93
- monthNamesShort: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ], // For formatting
94
- dayNames: [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ], // For formatting
95
- dayNamesShort: [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ], // For formatting
96
- dayNamesMin: [ "Su","Mo","Tu","We","Th","Fr","Sa" ], // Column headings for days starting at Sunday
97
- weekHeader: "Wk", // Column header for week of the year
98
- dateFormat: "mm/dd/yy", // See format options on parseDate
99
- firstDay: 0, // The first day of the week, Sun = 0, Mon = 1, ...
100
- isRTL: false, // True if right-to-left language, false if left-to-right
101
- showMonthAfterYear: false, // True if the year select precedes month, false for month then year
102
- yearSuffix: "" // Additional text to append to the year in the month headers
103
- };
104
- this._defaults = { // Global defaults for all the date picker instances
105
- showOn: "focus", // "focus" for popup on focus,
106
- // "button" for trigger button, or "both" for either
107
- showAnim: "fadeIn", // Name of jQuery animation for popup
108
- showOptions: {}, // Options for enhanced animations
109
- defaultDate: null, // Used when field is blank: actual date,
110
- // +/-number for offset from today, null for today
111
- appendText: "", // Display text following the input box, e.g. showing the format
112
- buttonText: "...", // Text for trigger button
113
- buttonImage: "", // URL for trigger button image
114
- buttonImageOnly: false, // True if the image appears alone, false if it appears on a button
115
- hideIfNoPrevNext: false, // True to hide next/previous month links
116
- // if not applicable, false to just disable them
117
- navigationAsDateFormat: false, // True if date formatting applied to prev/today/next links
118
- gotoCurrent: false, // True if today link goes back to current selection instead
119
- changeMonth: false, // True if month can be selected directly, false if only prev/next
120
- changeYear: false, // True if year can be selected directly, false if only prev/next
121
- yearRange: "c-10:c+10", // Range of years to display in drop-down,
122
- // either relative to today's year (-nn:+nn), relative to currently displayed year
123
- // (c-nn:c+nn), absolute (nnnn:nnnn), or a combination of the above (nnnn:-n)
124
- showOtherMonths: false, // True to show dates in other months, false to leave blank
125
- selectOtherMonths: false, // True to allow selection of dates in other months, false for unselectable
126
- showWeek: false, // True to show week of the year, false to not show it
127
- calculateWeek: this.iso8601Week, // How to calculate the week of the year,
128
- // takes a Date and returns the number of the week for it
129
- shortYearCutoff: "+10", // Short year values < this are in the current century,
130
- // > this are in the previous century,
131
- // string value starting with "+" for current year + value
132
- minDate: null, // The earliest selectable date, or null for no limit
133
- maxDate: null, // The latest selectable date, or null for no limit
134
- duration: "fast", // Duration of display/closure
135
- beforeShowDay: null, // Function that takes a date and returns an array with
136
- // [0] = true if selectable, false if not, [1] = custom CSS class name(s) or "",
137
- // [2] = cell title (optional), e.g. $.datepicker.noWeekends
138
- beforeShow: null, // Function that takes an input field and
139
- // returns a set of custom settings for the date picker
140
- onSelect: null, // Define a callback function when a date is selected
141
- onChangeMonthYear: null, // Define a callback function when the month or year is changed
142
- onClose: null, // Define a callback function when the datepicker is closed
143
- numberOfMonths: 1, // Number of months to show at a time
144
- showCurrentAtPos: 0, // The position in multipe months at which to show the current month (starting at 0)
145
- stepMonths: 1, // Number of months to step back/forward
146
- stepBigMonths: 12, // Number of months to step back/forward for the big links
147
- altField: "", // Selector for an alternate field to store selected dates into
148
- altFormat: "", // The date format to use for the alternate field
149
- constrainInput: true, // The input is constrained by the current date format
150
- showButtonPanel: false, // True to show button panel, false to not show it
151
- autoSize: false, // True to size the input for the date format, false to leave as is
152
- disabled: false // The initial disabled state
153
- };
154
- $.extend( this._defaults, this.regional[ "" ] );
155
- this.regional.en = $.extend( true, {}, this.regional[ "" ] );
156
- this.regional[ "en-US" ] = $.extend( true, {}, this.regional.en );
157
- this.dpDiv = datepicker_bindHover( $( "<div id='" + this._mainDivId + "' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>" ) );
158
- }
159
-
160
- $.extend( Datepicker.prototype, {
161
- /* Class name added to elements to indicate already configured with a date picker. */
162
- markerClassName: "hasDatepicker",
163
-
164
- //Keep track of the maximum number of rows displayed (see #7043)
165
- maxRows: 4,
166
-
167
- // TODO rename to "widget" when switching to widget factory
168
- _widgetDatepicker: function() {
169
- return this.dpDiv;
170
- },
171
-
172
- /* Override the default settings for all instances of the date picker.
173
- * @param settings object - the new settings to use as defaults (anonymous object)
174
- * @return the manager object
175
- */
176
- setDefaults: function( settings ) {
177
- datepicker_extendRemove( this._defaults, settings || {} );
178
- return this;
179
- },
180
-
181
- /* Attach the date picker to a jQuery selection.
182
- * @param target element - the target input field or division or span
183
- * @param settings object - the new settings to use for this date picker instance (anonymous)
184
- */
185
- _attachDatepicker: function( target, settings ) {
186
- var nodeName, inline, inst;
187
- nodeName = target.nodeName.toLowerCase();
188
- inline = ( nodeName === "div" || nodeName === "span" );
189
- if ( !target.id ) {
190
- this.uuid += 1;
191
- target.id = "dp" + this.uuid;
192
- }
193
- inst = this._newInst( $( target ), inline );
194
- inst.settings = $.extend( {}, settings || {} );
195
- if ( nodeName === "input" ) {
196
- this._connectDatepicker( target, inst );
197
- } else if ( inline ) {
198
- this._inlineDatepicker( target, inst );
199
- }
200
- },
201
-
202
- /* Create a new instance object. */
203
- _newInst: function( target, inline ) {
204
- var id = target[ 0 ].id.replace( /([^A-Za-z0-9_\-])/g, "\\\\$1" ); // escape jQuery meta chars
205
- return { id: id, input: target, // associated target
206
- selectedDay: 0, selectedMonth: 0, selectedYear: 0, // current selection
207
- drawMonth: 0, drawYear: 0, // month being drawn
208
- inline: inline, // is datepicker inline or not
209
- dpDiv: ( !inline ? this.dpDiv : // presentation div
210
- datepicker_bindHover( $( "<div class='" + this._inlineClass + " ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>" ) ) ) };
211
- },
212
-
213
- /* Attach the date picker to an input field. */
214
- _connectDatepicker: function( target, inst ) {
215
- var input = $( target );
216
- inst.append = $( [] );
217
- inst.trigger = $( [] );
218
- if ( input.hasClass( this.markerClassName ) ) {
219
- return;
220
- }
221
- this._attachments( input, inst );
222
- input.addClass( this.markerClassName ).on( "keydown", this._doKeyDown ).
223
- on( "keypress", this._doKeyPress ).on( "keyup", this._doKeyUp );
224
- this._autoSize( inst );
225
- $.data( target, "datepicker", inst );
226
-
227
- //If disabled option is true, disable the datepicker once it has been attached to the input (see ticket #5665)
228
- if ( inst.settings.disabled ) {
229
- this._disableDatepicker( target );
230
- }
231
- },
232
-
233
- /* Make attachments based on settings. */
234
- _attachments: function( input, inst ) {
235
- var showOn, buttonText, buttonImage,
236
- appendText = this._get( inst, "appendText" ),
237
- isRTL = this._get( inst, "isRTL" );
238
-
239
- if ( inst.append ) {
240
- inst.append.remove();
241
- }
242
- if ( appendText ) {
243
- inst.append = $( "<span class='" + this._appendClass + "'>" + appendText + "</span>" );
244
- input[ isRTL ? "before" : "after" ]( inst.append );
245
- }
246
-
247
- input.off( "focus", this._showDatepicker );
248
-
249
- if ( inst.trigger ) {
250
- inst.trigger.remove();
251
- }
252
-
253
- showOn = this._get( inst, "showOn" );
254
- if ( showOn === "focus" || showOn === "both" ) { // pop-up date picker when in the marked field
255
- input.on( "focus", this._showDatepicker );
256
- }
257
- if ( showOn === "button" || showOn === "both" ) { // pop-up date picker when button clicked
258
- buttonText = this._get( inst, "buttonText" );
259
- buttonImage = this._get( inst, "buttonImage" );
260
- inst.trigger = $( this._get( inst, "buttonImageOnly" ) ?
261
- $( "<img/>" ).addClass( this._triggerClass ).
262
- attr( { src: buttonImage, alt: buttonText, title: buttonText } ) :
263
- $( "<button type='button'></button>" ).addClass( this._triggerClass ).
264
- html( !buttonImage ? buttonText : $( "<img/>" ).attr(
265
- { src:buttonImage, alt:buttonText, title:buttonText } ) ) );
266
- input[ isRTL ? "before" : "after" ]( inst.trigger );
267
- inst.trigger.on( "click", function() {
268
- if ( $.datepicker._datepickerShowing && $.datepicker._lastInput === input[ 0 ] ) {
269
- $.datepicker._hideDatepicker();
270
- } else if ( $.datepicker._datepickerShowing && $.datepicker._lastInput !== input[ 0 ] ) {
271
- $.datepicker._hideDatepicker();
272
- $.datepicker._showDatepicker( input[ 0 ] );
273
- } else {
274
- $.datepicker._showDatepicker( input[ 0 ] );
275
- }
276
- return false;
277
- } );
278
- }
279
- },
280
-
281
- /* Apply the maximum length for the date format. */
282
- _autoSize: function( inst ) {
283
- if ( this._get( inst, "autoSize" ) && !inst.inline ) {
284
- var findMax, max, maxI, i,
285
- date = new Date( 2009, 12 - 1, 20 ), // Ensure double digits
286
- dateFormat = this._get( inst, "dateFormat" );
287
-
288
- if ( dateFormat.match( /[DM]/ ) ) {
289
- findMax = function( names ) {
290
- max = 0;
291
- maxI = 0;
292
- for ( i = 0; i < names.length; i++ ) {
293
- if ( names[ i ].length > max ) {
294
- max = names[ i ].length;
295
- maxI = i;
296
- }
297
- }
298
- return maxI;
299
- };
300
- date.setMonth( findMax( this._get( inst, ( dateFormat.match( /MM/ ) ?
301
- "monthNames" : "monthNamesShort" ) ) ) );
302
- date.setDate( findMax( this._get( inst, ( dateFormat.match( /DD/ ) ?
303
- "dayNames" : "dayNamesShort" ) ) ) + 20 - date.getDay() );
304
- }
305
- inst.input.attr( "size", this._formatDate( inst, date ).length );
306
- }
307
- },
308
-
309
- /* Attach an inline date picker to a div. */
310
- _inlineDatepicker: function( target, inst ) {
311
- var divSpan = $( target );
312
- if ( divSpan.hasClass( this.markerClassName ) ) {
313
- return;
314
- }
315
- divSpan.addClass( this.markerClassName ).append( inst.dpDiv );
316
- $.data( target, "datepicker", inst );
317
- this._setDate( inst, this._getDefaultDate( inst ), true );
318
- this._updateDatepicker( inst );
319
- this._updateAlternate( inst );
320
-
321
- //If disabled option is true, disable the datepicker before showing it (see ticket #5665)
322
- if ( inst.settings.disabled ) {
323
- this._disableDatepicker( target );
324
- }
325
-
326
- // Set display:block in place of inst.dpDiv.show() which won't work on disconnected elements
327
- // http://bugs.jqueryui.com/ticket/7552 - A Datepicker created on a detached div has zero height
328
- inst.dpDiv.css( "display", "block" );
329
- },
330
-
331
- /* Pop-up the date picker in a "dialog" box.
332
- * @param input element - ignored
333
- * @param date string or Date - the initial date to display
334
- * @param onSelect function - the function to call when a date is selected
335
- * @param settings object - update the dialog date picker instance's settings (anonymous object)
336
- * @param pos int[2] - coordinates for the dialog's position within the screen or
337
- * event - with x/y coordinates or
338
- * leave empty for default (screen centre)
339
- * @return the manager object
340
- */
341
- _dialogDatepicker: function( input, date, onSelect, settings, pos ) {
342
- var id, browserWidth, browserHeight, scrollX, scrollY,
343
- inst = this._dialogInst; // internal instance
344
-
345
- if ( !inst ) {
346
- this.uuid += 1;
347
- id = "dp" + this.uuid;
348
- this._dialogInput = $( "<input type='text' id='" + id +
349
- "' style='position: absolute; top: -100px; width: 0px;'/>" );
350
- this._dialogInput.on( "keydown", this._doKeyDown );
351
- $( "body" ).append( this._dialogInput );
352
- inst = this._dialogInst = this._newInst( this._dialogInput, false );
353
- inst.settings = {};
354
- $.data( this._dialogInput[ 0 ], "datepicker", inst );
355
- }
356
- datepicker_extendRemove( inst.settings, settings || {} );
357
- date = ( date && date.constructor === Date ? this._formatDate( inst, date ) : date );
358
- this._dialogInput.val( date );
359
-
360
- this._pos = ( pos ? ( pos.length ? pos : [ pos.pageX, pos.pageY ] ) : null );
361
- if ( !this._pos ) {
362
- browserWidth = document.documentElement.clientWidth;
363
- browserHeight = document.documentElement.clientHeight;
364
- scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
365
- scrollY = document.documentElement.scrollTop || document.body.scrollTop;
366
- this._pos = // should use actual width/height below
367
- [ ( browserWidth / 2 ) - 100 + scrollX, ( browserHeight / 2 ) - 150 + scrollY ];
368
- }
369
-
370
- // Move input on screen for focus, but hidden behind dialog
371
- this._dialogInput.css( "left", ( this._pos[ 0 ] + 20 ) + "px" ).css( "top", this._pos[ 1 ] + "px" );
372
- inst.settings.onSelect = onSelect;
373
- this._inDialog = true;
374
- this.dpDiv.addClass( this._dialogClass );
375
- this._showDatepicker( this._dialogInput[ 0 ] );
376
- if ( $.blockUI ) {
377
- $.blockUI( this.dpDiv );
378
- }
379
- $.data( this._dialogInput[ 0 ], "datepicker", inst );
380
- return this;
381
- },
382
-
383
- /* Detach a datepicker from its control.
384
- * @param target element - the target input field or division or span
385
- */
386
- _destroyDatepicker: function( target ) {
387
- var nodeName,
388
- $target = $( target ),
389
- inst = $.data( target, "datepicker" );
390
-
391
- if ( !$target.hasClass( this.markerClassName ) ) {
392
- return;
393
- }
394
-
395
- nodeName = target.nodeName.toLowerCase();
396
- $.removeData( target, "datepicker" );
397
- if ( nodeName === "input" ) {
398
- inst.append.remove();
399
- inst.trigger.remove();
400
- $target.removeClass( this.markerClassName ).
401
- off( "focus", this._showDatepicker ).
402
- off( "keydown", this._doKeyDown ).
403
- off( "keypress", this._doKeyPress ).
404
- off( "keyup", this._doKeyUp );
405
- } else if ( nodeName === "div" || nodeName === "span" ) {
406
- $target.removeClass( this.markerClassName ).empty();
407
- }
408
-
409
- if ( datepicker_instActive === inst ) {
410
- datepicker_instActive = null;
411
- }
412
- },
413
-
414
- /* Enable the date picker to a jQuery selection.
415
- * @param target element - the target input field or division or span
416
- */
417
- _enableDatepicker: function( target ) {
418
- var nodeName, inline,
419
- $target = $( target ),
420
- inst = $.data( target, "datepicker" );
421
-
422
- if ( !$target.hasClass( this.markerClassName ) ) {
423
- return;
424
- }
425
-
426
- nodeName = target.nodeName.toLowerCase();
427
- if ( nodeName === "input" ) {
428
- target.disabled = false;
429
- inst.trigger.filter( "button" ).
430
- each( function() { this.disabled = false; } ).end().
431
- filter( "img" ).css( { opacity: "1.0", cursor: "" } );
432
- } else if ( nodeName === "div" || nodeName === "span" ) {
433
- inline = $target.children( "." + this._inlineClass );
434
- inline.children().removeClass( "ui-state-disabled" );
435
- inline.find( "select.ui-datepicker-month, select.ui-datepicker-year" ).
436
- prop( "disabled", false );
437
- }
438
- this._disabledInputs = $.map( this._disabledInputs,
439
- function( value ) { return ( value === target ? null : value ); } ); // delete entry
440
- },
441
-
442
- /* Disable the date picker to a jQuery selection.
443
- * @param target element - the target input field or division or span
444
- */
445
- _disableDatepicker: function( target ) {
446
- var nodeName, inline,
447
- $target = $( target ),
448
- inst = $.data( target, "datepicker" );
449
-
450
- if ( !$target.hasClass( this.markerClassName ) ) {
451
- return;
452
- }
453
-
454
- nodeName = target.nodeName.toLowerCase();
455
- if ( nodeName === "input" ) {
456
- target.disabled = true;
457
- inst.trigger.filter( "button" ).
458
- each( function() { this.disabled = true; } ).end().
459
- filter( "img" ).css( { opacity: "0.5", cursor: "default" } );
460
- } else if ( nodeName === "div" || nodeName === "span" ) {
461
- inline = $target.children( "." + this._inlineClass );
462
- inline.children().addClass( "ui-state-disabled" );
463
- inline.find( "select.ui-datepicker-month, select.ui-datepicker-year" ).
464
- prop( "disabled", true );
465
- }
466
- this._disabledInputs = $.map( this._disabledInputs,
467
- function( value ) { return ( value === target ? null : value ); } ); // delete entry
468
- this._disabledInputs[ this._disabledInputs.length ] = target;
469
- },
470
-
471
- /* Is the first field in a jQuery collection disabled as a datepicker?
472
- * @param target element - the target input field or division or span
473
- * @return boolean - true if disabled, false if enabled
474
- */
475
- _isDisabledDatepicker: function( target ) {
476
- if ( !target ) {
477
- return false;
478
- }
479
- for ( var i = 0; i < this._disabledInputs.length; i++ ) {
480
- if ( this._disabledInputs[ i ] === target ) {
481
- return true;
482
- }
483
- }
484
- return false;
485
- },
486
-
487
- /* Retrieve the instance data for the target control.
488
- * @param target element - the target input field or division or span
489
- * @return object - the associated instance data
490
- * @throws error if a jQuery problem getting data
491
- */
492
- _getInst: function( target ) {
493
- try {
494
- return $.data( target, "datepicker" );
495
- }
496
- catch ( err ) {
497
- throw "Missing instance data for this datepicker";
498
- }
499
- },
500
-
501
- /* Update or retrieve the settings for a date picker attached to an input field or division.
502
- * @param target element - the target input field or division or span
503
- * @param name object - the new settings to update or
504
- * string - the name of the setting to change or retrieve,
505
- * when retrieving also "all" for all instance settings or
506
- * "defaults" for all global defaults
507
- * @param value any - the new value for the setting
508
- * (omit if above is an object or to retrieve a value)
509
- */
510
- _optionDatepicker: function( target, name, value ) {
511
- var settings, date, minDate, maxDate,
512
- inst = this._getInst( target );
513
-
514
- if ( arguments.length === 2 && typeof name === "string" ) {
515
- return ( name === "defaults" ? $.extend( {}, $.datepicker._defaults ) :
516
- ( inst ? ( name === "all" ? $.extend( {}, inst.settings ) :
517
- this._get( inst, name ) ) : null ) );
518
- }
519
-
520
- settings = name || {};
521
- if ( typeof name === "string" ) {
522
- settings = {};
523
- settings[ name ] = value;
524
- }
525
-
526
- if ( inst ) {
527
- if ( this._curInst === inst ) {
528
- this._hideDatepicker();
529
- }
530
-
531
- date = this._getDateDatepicker( target, true );
532
- minDate = this._getMinMaxDate( inst, "min" );
533
- maxDate = this._getMinMaxDate( inst, "max" );
534
- datepicker_extendRemove( inst.settings, settings );
535
-
536
- // reformat the old minDate/maxDate values if dateFormat changes and a new minDate/maxDate isn't provided
537
- if ( minDate !== null && settings.dateFormat !== undefined && settings.minDate === undefined ) {
538
- inst.settings.minDate = this._formatDate( inst, minDate );
539
- }
540
- if ( maxDate !== null && settings.dateFormat !== undefined && settings.maxDate === undefined ) {
541
- inst.settings.maxDate = this._formatDate( inst, maxDate );
542
- }
543
- if ( "disabled" in settings ) {
544
- if ( settings.disabled ) {
545
- this._disableDatepicker( target );
546
- } else {
547
- this._enableDatepicker( target );
548
- }
549
- }
550
- this._attachments( $( target ), inst );
551
- this._autoSize( inst );
552
- this._setDate( inst, date );
553
- this._updateAlternate( inst );
554
- this._updateDatepicker( inst );
555
- }
556
- },
557
-
558
- // Change method deprecated
559
- _changeDatepicker: function( target, name, value ) {
560
- this._optionDatepicker( target, name, value );
561
- },
562
-
563
- /* Redraw the date picker attached to an input field or division.
564
- * @param target element - the target input field or division or span
565
- */
566
- _refreshDatepicker: function( target ) {
567
- var inst = this._getInst( target );
568
- if ( inst ) {
569
- this._updateDatepicker( inst );
570
- }
571
- },
572
-
573
- /* Set the dates for a jQuery selection.
574
- * @param target element - the target input field or division or span
575
- * @param date Date - the new date
576
- */
577
- _setDateDatepicker: function( target, date ) {
578
- var inst = this._getInst( target );
579
- if ( inst ) {
580
- this._setDate( inst, date );
581
- this._updateDatepicker( inst );
582
- this._updateAlternate( inst );
583
- }
584
- },
585
-
586
- /* Get the date(s) for the first entry in a jQuery selection.
587
- * @param target element - the target input field or division or span
588
- * @param noDefault boolean - true if no default date is to be used
589
- * @return Date - the current date
590
- */
591
- _getDateDatepicker: function( target, noDefault ) {
592
- var inst = this._getInst( target );
593
- if ( inst && !inst.inline ) {
594
- this._setDateFromField( inst, noDefault );
595
- }
596
- return ( inst ? this._getDate( inst ) : null );
597
- },
598
-
599
- /* Handle keystrokes. */
600
- _doKeyDown: function( event ) {
601
- var onSelect, dateStr, sel,
602
- inst = $.datepicker._getInst( event.target ),
603
- handled = true,
604
- isRTL = inst.dpDiv.is( ".ui-datepicker-rtl" );
605
-
606
- inst._keyEvent = true;
607
- if ( $.datepicker._datepickerShowing ) {
608
- switch ( event.keyCode ) {
609
- case 9: $.datepicker._hideDatepicker();
610
- handled = false;
611
- break; // hide on tab out
612
- case 13: sel = $( "td." + $.datepicker._dayOverClass + ":not(." +
613
- $.datepicker._currentClass + ")", inst.dpDiv );
614
- if ( sel[ 0 ] ) {
615
- $.datepicker._selectDay( event.target, inst.selectedMonth, inst.selectedYear, sel[ 0 ] );
616
- }
617
-
618
- onSelect = $.datepicker._get( inst, "onSelect" );
619
- if ( onSelect ) {
620
- dateStr = $.datepicker._formatDate( inst );
621
-
622
- // Trigger custom callback
623
- onSelect.apply( ( inst.input ? inst.input[ 0 ] : null ), [ dateStr, inst ] );
624
- } else {
625
- $.datepicker._hideDatepicker();
626
- }
627
-
628
- return false; // don't submit the form
629
- case 27: $.datepicker._hideDatepicker();
630
- break; // hide on escape
631
- case 33: $.datepicker._adjustDate( event.target, ( event.ctrlKey ?
632
- -$.datepicker._get( inst, "stepBigMonths" ) :
633
- -$.datepicker._get( inst, "stepMonths" ) ), "M" );
634
- break; // previous month/year on page up/+ ctrl
635
- case 34: $.datepicker._adjustDate( event.target, ( event.ctrlKey ?
636
- +$.datepicker._get( inst, "stepBigMonths" ) :
637
- +$.datepicker._get( inst, "stepMonths" ) ), "M" );
638
- break; // next month/year on page down/+ ctrl
639
- case 35: if ( event.ctrlKey || event.metaKey ) {
640
- $.datepicker._clearDate( event.target );
641
- }
642
- handled = event.ctrlKey || event.metaKey;
643
- break; // clear on ctrl or command +end
644
- case 36: if ( event.ctrlKey || event.metaKey ) {
645
- $.datepicker._gotoToday( event.target );
646
- }
647
- handled = event.ctrlKey || event.metaKey;
648
- break; // current on ctrl or command +home
649
- case 37: if ( event.ctrlKey || event.metaKey ) {
650
- $.datepicker._adjustDate( event.target, ( isRTL ? +1 : -1 ), "D" );
651
- }
652
- handled = event.ctrlKey || event.metaKey;
653
-
654
- // -1 day on ctrl or command +left
655
- if ( event.originalEvent.altKey ) {
656
- $.datepicker._adjustDate( event.target, ( event.ctrlKey ?
657
- -$.datepicker._get( inst, "stepBigMonths" ) :
658
- -$.datepicker._get( inst, "stepMonths" ) ), "M" );
659
- }
660
-
661
- // next month/year on alt +left on Mac
662
- break;
663
- case 38: if ( event.ctrlKey || event.metaKey ) {
664
- $.datepicker._adjustDate( event.target, -7, "D" );
665
- }
666
- handled = event.ctrlKey || event.metaKey;
667
- break; // -1 week on ctrl or command +up
668
- case 39: if ( event.ctrlKey || event.metaKey ) {
669
- $.datepicker._adjustDate( event.target, ( isRTL ? -1 : +1 ), "D" );
670
- }
671
- handled = event.ctrlKey || event.metaKey;
672
-
673
- // +1 day on ctrl or command +right
674
- if ( event.originalEvent.altKey ) {
675
- $.datepicker._adjustDate( event.target, ( event.ctrlKey ?
676
- +$.datepicker._get( inst, "stepBigMonths" ) :
677
- +$.datepicker._get( inst, "stepMonths" ) ), "M" );
678
- }
679
-
680
- // next month/year on alt +right
681
- break;
682
- case 40: if ( event.ctrlKey || event.metaKey ) {
683
- $.datepicker._adjustDate( event.target, +7, "D" );
684
- }
685
- handled = event.ctrlKey || event.metaKey;
686
- break; // +1 week on ctrl or command +down
687
- default: handled = false;
688
- }
689
- } else if ( event.keyCode === 36 && event.ctrlKey ) { // display the date picker on ctrl+home
690
- $.datepicker._showDatepicker( this );
691
- } else {
692
- handled = false;
693
- }
694
-
695
- if ( handled ) {
696
- event.preventDefault();
697
- event.stopPropagation();
698
- }
699
- },
700
-
701
- /* Filter entered characters - based on date format. */
702
- _doKeyPress: function( event ) {
703
- var chars, chr,
704
- inst = $.datepicker._getInst( event.target );
705
-
706
- if ( $.datepicker._get( inst, "constrainInput" ) ) {
707
- chars = $.datepicker._possibleChars( $.datepicker._get( inst, "dateFormat" ) );
708
- chr = String.fromCharCode( event.charCode == null ? event.keyCode : event.charCode );
709
- return event.ctrlKey || event.metaKey || ( chr < " " || !chars || chars.indexOf( chr ) > -1 );
710
- }
711
- },
712
-
713
- /* Synchronise manual entry and field/alternate field. */
714
- _doKeyUp: function( event ) {
715
- var date,
716
- inst = $.datepicker._getInst( event.target );
717
-
718
- if ( inst.input.val() !== inst.lastVal ) {
719
- try {
720
- date = $.datepicker.parseDate( $.datepicker._get( inst, "dateFormat" ),
721
- ( inst.input ? inst.input.val() : null ),
722
- $.datepicker._getFormatConfig( inst ) );
723
-
724
- if ( date ) { // only if valid
725
- $.datepicker._setDateFromField( inst );
726
- $.datepicker._updateAlternate( inst );
727
- $.datepicker._updateDatepicker( inst );
728
- }
729
- }
730
- catch ( err ) {
731
- }
732
- }
733
- return true;
734
- },
735
-
736
- /* Pop-up the date picker for a given input field.
737
- * If false returned from beforeShow event handler do not show.
738
- * @param input element - the input field attached to the date picker or
739
- * event - if triggered by focus
740
- */
741
- _showDatepicker: function( input ) {
742
- input = input.target || input;
743
- if ( input.nodeName.toLowerCase() !== "input" ) { // find from button/image trigger
744
- input = $( "input", input.parentNode )[ 0 ];
745
- }
746
-
747
- if ( $.datepicker._isDisabledDatepicker( input ) || $.datepicker._lastInput === input ) { // already here
748
- return;
749
- }
750
-
751
- var inst, beforeShow, beforeShowSettings, isFixed,
752
- offset, showAnim, duration;
753
-
754
- inst = $.datepicker._getInst( input );
755
- if ( $.datepicker._curInst && $.datepicker._curInst !== inst ) {
756
- $.datepicker._curInst.dpDiv.stop( true, true );
757
- if ( inst && $.datepicker._datepickerShowing ) {
758
- $.datepicker._hideDatepicker( $.datepicker._curInst.input[ 0 ] );
759
- }
760
- }
761
-
762
- beforeShow = $.datepicker._get( inst, "beforeShow" );
763
- beforeShowSettings = beforeShow ? beforeShow.apply( input, [ input, inst ] ) : {};
764
- if ( beforeShowSettings === false ) {
765
- return;
766
- }
767
- datepicker_extendRemove( inst.settings, beforeShowSettings );
768
-
769
- inst.lastVal = null;
770
- $.datepicker._lastInput = input;
771
- $.datepicker._setDateFromField( inst );
772
-
773
- if ( $.datepicker._inDialog ) { // hide cursor
774
- input.value = "";
775
- }
776
- if ( !$.datepicker._pos ) { // position below input
777
- $.datepicker._pos = $.datepicker._findPos( input );
778
- $.datepicker._pos[ 1 ] += input.offsetHeight; // add the height
779
- }
780
-
781
- isFixed = false;
782
- $( input ).parents().each( function() {
783
- isFixed |= $( this ).css( "position" ) === "fixed";
784
- return !isFixed;
785
- } );
786
-
787
- offset = { left: $.datepicker._pos[ 0 ], top: $.datepicker._pos[ 1 ] };
788
- $.datepicker._pos = null;
789
-
790
- //to avoid flashes on Firefox
791
- inst.dpDiv.empty();
792
-
793
- // determine sizing offscreen
794
- inst.dpDiv.css( { position: "absolute", display: "block", top: "-1000px" } );
795
- $.datepicker._updateDatepicker( inst );
796
-
797
- // fix width for dynamic number of date pickers
798
- // and adjust position before showing
799
- offset = $.datepicker._checkOffset( inst, offset, isFixed );
800
- inst.dpDiv.css( { position: ( $.datepicker._inDialog && $.blockUI ?
801
- "static" : ( isFixed ? "fixed" : "absolute" ) ), display: "none",
802
- left: offset.left + "px", top: offset.top + "px" } );
803
-
804
- if ( !inst.inline ) {
805
- showAnim = $.datepicker._get( inst, "showAnim" );
806
- duration = $.datepicker._get( inst, "duration" );
807
- inst.dpDiv.css( "z-index", datepicker_getZindex( $( input ) ) + 1 );
808
- $.datepicker._datepickerShowing = true;
809
-
810
- if ( $.effects && $.effects.effect[ showAnim ] ) {
811
- inst.dpDiv.show( showAnim, $.datepicker._get( inst, "showOptions" ), duration );
812
- } else {
813
- inst.dpDiv[ showAnim || "show" ]( showAnim ? duration : null );
814
- }
815
-
816
- if ( $.datepicker._shouldFocusInput( inst ) ) {
817
- inst.input.trigger( "focus" );
818
- }
819
-
820
- $.datepicker._curInst = inst;
821
- }
822
- },
823
-
824
- /* Generate the date picker content. */
825
- _updateDatepicker: function( inst ) {
826
- this.maxRows = 4; //Reset the max number of rows being displayed (see #7043)
827
- datepicker_instActive = inst; // for delegate hover events
828
- inst.dpDiv.empty().append( this._generateHTML( inst ) );
829
- this._attachHandlers( inst );
830
-
831
- var origyearshtml,
832
- numMonths = this._getNumberOfMonths( inst ),
833
- cols = numMonths[ 1 ],
834
- width = 17,
835
- activeCell = inst.dpDiv.find( "." + this._dayOverClass + " a" );
836
-
837
- if ( activeCell.length > 0 ) {
838
- datepicker_handleMouseover.apply( activeCell.get( 0 ) );
839
- }
840
-
841
- inst.dpDiv.removeClass( "ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4" ).width( "" );
842
- if ( cols > 1 ) {
843
- inst.dpDiv.addClass( "ui-datepicker-multi-" + cols ).css( "width", ( width * cols ) + "em" );
844
- }
845
- inst.dpDiv[ ( numMonths[ 0 ] !== 1 || numMonths[ 1 ] !== 1 ? "add" : "remove" ) +
846
- "Class" ]( "ui-datepicker-multi" );
847
- inst.dpDiv[ ( this._get( inst, "isRTL" ) ? "add" : "remove" ) +
848
- "Class" ]( "ui-datepicker-rtl" );
849
-
850
- if ( inst === $.datepicker._curInst && $.datepicker._datepickerShowing && $.datepicker._shouldFocusInput( inst ) ) {
851
- inst.input.trigger( "focus" );
852
- }
853
-
854
- // Deffered render of the years select (to avoid flashes on Firefox)
855
- if ( inst.yearshtml ) {
856
- origyearshtml = inst.yearshtml;
857
- setTimeout( function() {
858
-
859
- //assure that inst.yearshtml didn't change.
860
- if ( origyearshtml === inst.yearshtml && inst.yearshtml ) {
861
- inst.dpDiv.find( "select.ui-datepicker-year:first" ).replaceWith( inst.yearshtml );
862
- }
863
- origyearshtml = inst.yearshtml = null;
864
- }, 0 );
865
- }
866
- },
867
-
868
- // #6694 - don't focus the input if it's already focused
869
- // this breaks the change event in IE
870
- // Support: IE and jQuery <1.9
871
- _shouldFocusInput: function( inst ) {
872
- return inst.input && inst.input.is( ":visible" ) && !inst.input.is( ":disabled" ) && !inst.input.is( ":focus" );
873
- },
874
-
875
- /* Check positioning to remain on screen. */
876
- _checkOffset: function( inst, offset, isFixed ) {
877
- var dpWidth = inst.dpDiv.outerWidth(),
878
- dpHeight = inst.dpDiv.outerHeight(),
879
- inputWidth = inst.input ? inst.input.outerWidth() : 0,
880
- inputHeight = inst.input ? inst.input.outerHeight() : 0,
881
- viewWidth = document.documentElement.clientWidth + ( isFixed ? 0 : $( document ).scrollLeft() ),
882
- viewHeight = document.documentElement.clientHeight + ( isFixed ? 0 : $( document ).scrollTop() );
883
-
884
- offset.left -= ( this._get( inst, "isRTL" ) ? ( dpWidth - inputWidth ) : 0 );
885
- offset.left -= ( isFixed && offset.left === inst.input.offset().left ) ? $( document ).scrollLeft() : 0;
886
- offset.top -= ( isFixed && offset.top === ( inst.input.offset().top + inputHeight ) ) ? $( document ).scrollTop() : 0;
887
-
888
- // Now check if datepicker is showing outside window viewport - move to a better place if so.
889
- offset.left -= Math.min( offset.left, ( offset.left + dpWidth > viewWidth && viewWidth > dpWidth ) ?
890
- Math.abs( offset.left + dpWidth - viewWidth ) : 0 );
891
- offset.top -= Math.min( offset.top, ( offset.top + dpHeight > viewHeight && viewHeight > dpHeight ) ?
892
- Math.abs( dpHeight + inputHeight ) : 0 );
893
-
894
- return offset;
895
- },
896
-
897
- /* Find an object's position on the screen. */
898
- _findPos: function( obj ) {
899
- var position,
900
- inst = this._getInst( obj ),
901
- isRTL = this._get( inst, "isRTL" );
902
-
903
- while ( obj && ( obj.type === "hidden" || obj.nodeType !== 1 || $.expr.filters.hidden( obj ) ) ) {
904
- obj = obj[ isRTL ? "previousSibling" : "nextSibling" ];
905
- }
906
-
907
- position = $( obj ).offset();
908
- return [ position.left, position.top ];
909
- },
910
-
911
- /* Hide the date picker from view.
912
- * @param input element - the input field attached to the date picker
913
- */
914
- _hideDatepicker: function( input ) {
915
- var showAnim, duration, postProcess, onClose,
916
- inst = this._curInst;
917
-
918
- if ( !inst || ( input && inst !== $.data( input, "datepicker" ) ) ) {
919
- return;
920
- }
921
-
922
- if ( this._datepickerShowing ) {
923
- showAnim = this._get( inst, "showAnim" );
924
- duration = this._get( inst, "duration" );
925
- postProcess = function() {
926
- $.datepicker._tidyDialog( inst );
927
- };
928
-
929
- // DEPRECATED: after BC for 1.8.x $.effects[ showAnim ] is not needed
930
- if ( $.effects && ( $.effects.effect[ showAnim ] || $.effects[ showAnim ] ) ) {
931
- inst.dpDiv.hide( showAnim, $.datepicker._get( inst, "showOptions" ), duration, postProcess );
932
- } else {
933
- inst.dpDiv[ ( showAnim === "slideDown" ? "slideUp" :
934
- ( showAnim === "fadeIn" ? "fadeOut" : "hide" ) ) ]( ( showAnim ? duration : null ), postProcess );
935
- }
936
-
937
- if ( !showAnim ) {
938
- postProcess();
939
- }
940
- this._datepickerShowing = false;
941
-
942
- onClose = this._get( inst, "onClose" );
943
- if ( onClose ) {
944
- onClose.apply( ( inst.input ? inst.input[ 0 ] : null ), [ ( inst.input ? inst.input.val() : "" ), inst ] );
945
- }
946
-
947
- this._lastInput = null;
948
- if ( this._inDialog ) {
949
- this._dialogInput.css( { position: "absolute", left: "0", top: "-100px" } );
950
- if ( $.blockUI ) {
951
- $.unblockUI();
952
- $( "body" ).append( this.dpDiv );
953
- }
954
- }
955
- this._inDialog = false;
956
- }
957
- },
958
-
959
- /* Tidy up after a dialog display. */
960
- _tidyDialog: function( inst ) {
961
- inst.dpDiv.removeClass( this._dialogClass ).off( ".ui-datepicker-calendar" );
962
- },
963
-
964
- /* Close date picker if clicked elsewhere. */
965
- _checkExternalClick: function( event ) {
966
- if ( !$.datepicker._curInst ) {
967
- return;
968
- }
969
-
970
- var $target = $( event.target ),
971
- inst = $.datepicker._getInst( $target[ 0 ] );
972
-
973
- if ( ( ( $target[ 0 ].id !== $.datepicker._mainDivId &&
974
- $target.parents( "#" + $.datepicker._mainDivId ).length === 0 &&
975
- !$target.hasClass( $.datepicker.markerClassName ) &&
976
- !$target.closest( "." + $.datepicker._triggerClass ).length &&
977
- $.datepicker._datepickerShowing && !( $.datepicker._inDialog && $.blockUI ) ) ) ||
978
- ( $target.hasClass( $.datepicker.markerClassName ) && $.datepicker._curInst !== inst ) ) {
979
- $.datepicker._hideDatepicker();
980
- }
981
- },
982
-
983
- /* Adjust one of the date sub-fields. */
984
- _adjustDate: function( id, offset, period ) {
985
- var target = $( id ),
986
- inst = this._getInst( target[ 0 ] );
987
-
988
- if ( this._isDisabledDatepicker( target[ 0 ] ) ) {
989
- return;
990
- }
991
- this._adjustInstDate( inst, offset +
992
- ( period === "M" ? this._get( inst, "showCurrentAtPos" ) : 0 ), // undo positioning
993
- period );
994
- this._updateDatepicker( inst );
995
- },
996
-
997
- /* Action for current link. */
998
- _gotoToday: function( id ) {
999
- var date,
1000
- target = $( id ),
1001
- inst = this._getInst( target[ 0 ] );
1002
-
1003
- if ( this._get( inst, "gotoCurrent" ) && inst.currentDay ) {
1004
- inst.selectedDay = inst.currentDay;
1005
- inst.drawMonth = inst.selectedMonth = inst.currentMonth;
1006
- inst.drawYear = inst.selectedYear = inst.currentYear;
1007
- } else {
1008
- date = new Date();
1009
- inst.selectedDay = date.getDate();
1010
- inst.drawMonth = inst.selectedMonth = date.getMonth();
1011
- inst.drawYear = inst.selectedYear = date.getFullYear();
1012
- }
1013
- this._notifyChange( inst );
1014
- this._adjustDate( target );
1015
- },
1016
-
1017
- /* Action for selecting a new month/year. */
1018
- _selectMonthYear: function( id, select, period ) {
1019
- var target = $( id ),
1020
- inst = this._getInst( target[ 0 ] );
1021
-
1022
- inst[ "selected" + ( period === "M" ? "Month" : "Year" ) ] =
1023
- inst[ "draw" + ( period === "M" ? "Month" : "Year" ) ] =
1024
- parseInt( select.options[ select.selectedIndex ].value, 10 );
1025
-
1026
- this._notifyChange( inst );
1027
- this._adjustDate( target );
1028
- },
1029
-
1030
- /* Action for selecting a day. */
1031
- _selectDay: function( id, month, year, td ) {
1032
- var inst,
1033
- target = $( id );
1034
-
1035
- if ( $( td ).hasClass( this._unselectableClass ) || this._isDisabledDatepicker( target[ 0 ] ) ) {
1036
- return;
1037
- }
1038
-
1039
- inst = this._getInst( target[ 0 ] );
1040
- inst.selectedDay = inst.currentDay = $( "a", td ).html();
1041
- inst.selectedMonth = inst.currentMonth = month;
1042
- inst.selectedYear = inst.currentYear = year;
1043
- this._selectDate( id, this._formatDate( inst,
1044
- inst.currentDay, inst.currentMonth, inst.currentYear ) );
1045
- },
1046
-
1047
- /* Erase the input field and hide the date picker. */
1048
- _clearDate: function( id ) {
1049
- var target = $( id );
1050
- this._selectDate( target, "" );
1051
- },
1052
-
1053
- /* Update the input field with the selected date. */
1054
- _selectDate: function( id, dateStr ) {
1055
- var onSelect,
1056
- target = $( id ),
1057
- inst = this._getInst( target[ 0 ] );
1058
-
1059
- dateStr = ( dateStr != null ? dateStr : this._formatDate( inst ) );
1060
- if ( inst.input ) {
1061
- inst.input.val( dateStr );
1062
- }
1063
- this._updateAlternate( inst );
1064
-
1065
- onSelect = this._get( inst, "onSelect" );
1066
- if ( onSelect ) {
1067
- onSelect.apply( ( inst.input ? inst.input[ 0 ] : null ), [ dateStr, inst ] ); // trigger custom callback
1068
- } else if ( inst.input ) {
1069
- inst.input.trigger( "change" ); // fire the change event
1070
- }
1071
-
1072
- if ( inst.inline ) {
1073
- this._updateDatepicker( inst );
1074
- } else {
1075
- this._hideDatepicker();
1076
- this._lastInput = inst.input[ 0 ];
1077
- if ( typeof( inst.input[ 0 ] ) !== "object" ) {
1078
- inst.input.trigger( "focus" ); // restore focus
1079
- }
1080
- this._lastInput = null;
1081
- }
1082
- },
1083
-
1084
- /* Update any alternate field to synchronise with the main field. */
1085
- _updateAlternate: function( inst ) {
1086
- var altFormat, date, dateStr,
1087
- altField = this._get( inst, "altField" );
1088
-
1089
- if ( altField ) { // update alternate field too
1090
- altFormat = this._get( inst, "altFormat" ) || this._get( inst, "dateFormat" );
1091
- date = this._getDate( inst );
1092
- dateStr = this.formatDate( altFormat, date, this._getFormatConfig( inst ) );
1093
- $( altField ).val( dateStr );
1094
- }
1095
- },
1096
-
1097
- /* Set as beforeShowDay function to prevent selection of weekends.
1098
- * @param date Date - the date to customise
1099
- * @return [boolean, string] - is this date selectable?, what is its CSS class?
1100
- */
1101
- noWeekends: function( date ) {
1102
- var day = date.getDay();
1103
- return [ ( day > 0 && day < 6 ), "" ];
1104
- },
1105
-
1106
- /* Set as calculateWeek to determine the week of the year based on the ISO 8601 definition.
1107
- * @param date Date - the date to get the week for
1108
- * @return number - the number of the week within the year that contains this date
1109
- */
1110
- iso8601Week: function( date ) {
1111
- var time,
1112
- checkDate = new Date( date.getTime() );
1113
-
1114
- // Find Thursday of this week starting on Monday
1115
- checkDate.setDate( checkDate.getDate() + 4 - ( checkDate.getDay() || 7 ) );
1116
-
1117
- time = checkDate.getTime();
1118
- checkDate.setMonth( 0 ); // Compare with Jan 1
1119
- checkDate.setDate( 1 );
1120
- return Math.floor( Math.round( ( time - checkDate ) / 86400000 ) / 7 ) + 1;
1121
- },
1122
-
1123
- /* Parse a string value into a date object.
1124
- * See formatDate below for the possible formats.
1125
- *
1126
- * @param format string - the expected format of the date
1127
- * @param value string - the date in the above format
1128
- * @param settings Object - attributes include:
1129
- * shortYearCutoff number - the cutoff year for determining the century (optional)
1130
- * dayNamesShort string[7] - abbreviated names of the days from Sunday (optional)
1131
- * dayNames string[7] - names of the days from Sunday (optional)
1132
- * monthNamesShort string[12] - abbreviated names of the months (optional)
1133
- * monthNames string[12] - names of the months (optional)
1134
- * @return Date - the extracted date value or null if value is blank
1135
- */
1136
- parseDate: function( format, value, settings ) {
1137
- if ( format == null || value == null ) {
1138
- throw "Invalid arguments";
1139
- }
1140
-
1141
- value = ( typeof value === "object" ? value.toString() : value + "" );
1142
- if ( value === "" ) {
1143
- return null;
1144
- }
1145
-
1146
- var iFormat, dim, extra,
1147
- iValue = 0,
1148
- shortYearCutoffTemp = ( settings ? settings.shortYearCutoff : null ) || this._defaults.shortYearCutoff,
1149
- shortYearCutoff = ( typeof shortYearCutoffTemp !== "string" ? shortYearCutoffTemp :
1150
- new Date().getFullYear() % 100 + parseInt( shortYearCutoffTemp, 10 ) ),
1151
- dayNamesShort = ( settings ? settings.dayNamesShort : null ) || this._defaults.dayNamesShort,
1152
- dayNames = ( settings ? settings.dayNames : null ) || this._defaults.dayNames,
1153
- monthNamesShort = ( settings ? settings.monthNamesShort : null ) || this._defaults.monthNamesShort,
1154
- monthNames = ( settings ? settings.monthNames : null ) || this._defaults.monthNames,
1155
- year = -1,
1156
- month = -1,
1157
- day = -1,
1158
- doy = -1,
1159
- literal = false,
1160
- date,
1161
-
1162
- // Check whether a format character is doubled
1163
- lookAhead = function( match ) {
1164
- var matches = ( iFormat + 1 < format.length && format.charAt( iFormat + 1 ) === match );
1165
- if ( matches ) {
1166
- iFormat++;
1167
- }
1168
- return matches;
1169
- },
1170
-
1171
- // Extract a number from the string value
1172
- getNumber = function( match ) {
1173
- var isDoubled = lookAhead( match ),
1174
- size = ( match === "@" ? 14 : ( match === "!" ? 20 :
1175
- ( match === "y" && isDoubled ? 4 : ( match === "o" ? 3 : 2 ) ) ) ),
1176
- minSize = ( match === "y" ? size : 1 ),
1177
- digits = new RegExp( "^\\d{" + minSize + "," + size + "}" ),
1178
- num = value.substring( iValue ).match( digits );
1179
- if ( !num ) {
1180
- throw "Missing number at position " + iValue;
1181
- }
1182
- iValue += num[ 0 ].length;
1183
- return parseInt( num[ 0 ], 10 );
1184
- },
1185
-
1186
- // Extract a name from the string value and convert to an index
1187
- getName = function( match, shortNames, longNames ) {
1188
- var index = -1,
1189
- names = $.map( lookAhead( match ) ? longNames : shortNames, function( v, k ) {
1190
- return [ [ k, v ] ];
1191
- } ).sort( function( a, b ) {
1192
- return -( a[ 1 ].length - b[ 1 ].length );
1193
- } );
1194
-
1195
- $.each( names, function( i, pair ) {
1196
- var name = pair[ 1 ];
1197
- if ( value.substr( iValue, name.length ).toLowerCase() === name.toLowerCase() ) {
1198
- index = pair[ 0 ];
1199
- iValue += name.length;
1200
- return false;
1201
- }
1202
- } );
1203
- if ( index !== -1 ) {
1204
- return index + 1;
1205
- } else {
1206
- throw "Unknown name at position " + iValue;
1207
- }
1208
- },
1209
-
1210
- // Confirm that a literal character matches the string value
1211
- checkLiteral = function() {
1212
- if ( value.charAt( iValue ) !== format.charAt( iFormat ) ) {
1213
- throw "Unexpected literal at position " + iValue;
1214
- }
1215
- iValue++;
1216
- };
1217
-
1218
- for ( iFormat = 0; iFormat < format.length; iFormat++ ) {
1219
- if ( literal ) {
1220
- if ( format.charAt( iFormat ) === "'" && !lookAhead( "'" ) ) {
1221
- literal = false;
1222
- } else {
1223
- checkLiteral();
1224
- }
1225
- } else {
1226
- switch ( format.charAt( iFormat ) ) {
1227
- case "d":
1228
- day = getNumber( "d" );
1229
- break;
1230
- case "D":
1231
- getName( "D", dayNamesShort, dayNames );
1232
- break;
1233
- case "o":
1234
- doy = getNumber( "o" );
1235
- break;
1236
- case "m":
1237
- month = getNumber( "m" );
1238
- break;
1239
- case "M":
1240
- month = getName( "M", monthNamesShort, monthNames );
1241
- break;
1242
- case "y":
1243
- year = getNumber( "y" );
1244
- break;
1245
- case "@":
1246
- date = new Date( getNumber( "@" ) );
1247
- year = date.getFullYear();
1248
- month = date.getMonth() + 1;
1249
- day = date.getDate();
1250
- break;
1251
- case "!":
1252
- date = new Date( ( getNumber( "!" ) - this._ticksTo1970 ) / 10000 );
1253
- year = date.getFullYear();
1254
- month = date.getMonth() + 1;
1255
- day = date.getDate();
1256
- break;
1257
- case "'":
1258
- if ( lookAhead( "'" ) ) {
1259
- checkLiteral();
1260
- } else {
1261
- literal = true;
1262
- }
1263
- break;
1264
- default:
1265
- checkLiteral();
1266
- }
1267
- }
1268
- }
1269
-
1270
- if ( iValue < value.length ) {
1271
- extra = value.substr( iValue );
1272
- if ( !/^\s+/.test( extra ) ) {
1273
- throw "Extra/unparsed characters found in date: " + extra;
1274
- }
1275
- }
1276
-
1277
- if ( year === -1 ) {
1278
- year = new Date().getFullYear();
1279
- } else if ( year < 100 ) {
1280
- year += new Date().getFullYear() - new Date().getFullYear() % 100 +
1281
- ( year <= shortYearCutoff ? 0 : -100 );
1282
- }
1283
-
1284
- if ( doy > -1 ) {
1285
- month = 1;
1286
- day = doy;
1287
- do {
1288
- dim = this._getDaysInMonth( year, month - 1 );
1289
- if ( day <= dim ) {
1290
- break;
1291
- }
1292
- month++;
1293
- day -= dim;
1294
- } while ( true );
1295
- }
1296
-
1297
- date = this._daylightSavingAdjust( new Date( year, month - 1, day ) );
1298
- if ( date.getFullYear() !== year || date.getMonth() + 1 !== month || date.getDate() !== day ) {
1299
- throw "Invalid date"; // E.g. 31/02/00
1300
- }
1301
- return date;
1302
- },
1303
-
1304
- /* Standard date formats. */
1305
- ATOM: "yy-mm-dd", // RFC 3339 (ISO 8601)
1306
- COOKIE: "D, dd M yy",
1307
- ISO_8601: "yy-mm-dd",
1308
- RFC_822: "D, d M y",
1309
- RFC_850: "DD, dd-M-y",
1310
- RFC_1036: "D, d M y",
1311
- RFC_1123: "D, d M yy",
1312
- RFC_2822: "D, d M yy",
1313
- RSS: "D, d M y", // RFC 822
1314
- TICKS: "!",
1315
- TIMESTAMP: "@",
1316
- W3C: "yy-mm-dd", // ISO 8601
1317
-
1318
- _ticksTo1970: ( ( ( 1970 - 1 ) * 365 + Math.floor( 1970 / 4 ) - Math.floor( 1970 / 100 ) +
1319
- Math.floor( 1970 / 400 ) ) * 24 * 60 * 60 * 10000000 ),
1320
-
1321
- /* Format a date object into a string value.
1322
- * The format can be combinations of the following:
1323
- * d - day of month (no leading zero)
1324
- * dd - day of month (two digit)
1325
- * o - day of year (no leading zeros)
1326
- * oo - day of year (three digit)
1327
- * D - day name short
1328
- * DD - day name long
1329
- * m - month of year (no leading zero)
1330
- * mm - month of year (two digit)
1331
- * M - month name short
1332
- * MM - month name long
1333
- * y - year (two digit)
1334
- * yy - year (four digit)
1335
- * @ - Unix timestamp (ms since 01/01/1970)
1336
- * ! - Windows ticks (100ns since 01/01/0001)
1337
- * "..." - literal text
1338
- * '' - single quote
1339
- *
1340
- * @param format string - the desired format of the date
1341
- * @param date Date - the date value to format
1342
- * @param settings Object - attributes include:
1343
- * dayNamesShort string[7] - abbreviated names of the days from Sunday (optional)
1344
- * dayNames string[7] - names of the days from Sunday (optional)
1345
- * monthNamesShort string[12] - abbreviated names of the months (optional)
1346
- * monthNames string[12] - names of the months (optional)
1347
- * @return string - the date in the above format
1348
- */
1349
- formatDate: function( format, date, settings ) {
1350
- if ( !date ) {
1351
- return "";
1352
- }
1353
-
1354
- var iFormat,
1355
- dayNamesShort = ( settings ? settings.dayNamesShort : null ) || this._defaults.dayNamesShort,
1356
- dayNames = ( settings ? settings.dayNames : null ) || this._defaults.dayNames,
1357
- monthNamesShort = ( settings ? settings.monthNamesShort : null ) || this._defaults.monthNamesShort,
1358
- monthNames = ( settings ? settings.monthNames : null ) || this._defaults.monthNames,
1359
-
1360
- // Check whether a format character is doubled
1361
- lookAhead = function( match ) {
1362
- var matches = ( iFormat + 1 < format.length && format.charAt( iFormat + 1 ) === match );
1363
- if ( matches ) {
1364
- iFormat++;
1365
- }
1366
- return matches;
1367
- },
1368
-
1369
- // Format a number, with leading zero if necessary
1370
- formatNumber = function( match, value, len ) {
1371
- var num = "" + value;
1372
- if ( lookAhead( match ) ) {
1373
- while ( num.length < len ) {
1374
- num = "0" + num;
1375
- }
1376
- }
1377
- return num;
1378
- },
1379
-
1380
- // Format a name, short or long as requested
1381
- formatName = function( match, value, shortNames, longNames ) {
1382
- return ( lookAhead( match ) ? longNames[ value ] : shortNames[ value ] );
1383
- },
1384
- output = "",
1385
- literal = false;
1386
-
1387
- if ( date ) {
1388
- for ( iFormat = 0; iFormat < format.length; iFormat++ ) {
1389
- if ( literal ) {
1390
- if ( format.charAt( iFormat ) === "'" && !lookAhead( "'" ) ) {
1391
- literal = false;
1392
- } else {
1393
- output += format.charAt( iFormat );
1394
- }
1395
- } else {
1396
- switch ( format.charAt( iFormat ) ) {
1397
- case "d":
1398
- output += formatNumber( "d", date.getDate(), 2 );
1399
- break;
1400
- case "D":
1401
- output += formatName( "D", date.getDay(), dayNamesShort, dayNames );
1402
- break;
1403
- case "o":
1404
- output += formatNumber( "o",
1405
- Math.round( ( new Date( date.getFullYear(), date.getMonth(), date.getDate() ).getTime() - new Date( date.getFullYear(), 0, 0 ).getTime() ) / 86400000 ), 3 );
1406
- break;
1407
- case "m":
1408
- output += formatNumber( "m", date.getMonth() + 1, 2 );
1409
- break;
1410
- case "M":
1411
- output += formatName( "M", date.getMonth(), monthNamesShort, monthNames );
1412
- break;
1413
- case "y":
1414
- output += ( lookAhead( "y" ) ? date.getFullYear() :
1415
- ( date.getFullYear() % 100 < 10 ? "0" : "" ) + date.getFullYear() % 100 );
1416
- break;
1417
- case "@":
1418
- output += date.getTime();
1419
- break;
1420
- case "!":
1421
- output += date.getTime() * 10000 + this._ticksTo1970;
1422
- break;
1423
- case "'":
1424
- if ( lookAhead( "'" ) ) {
1425
- output += "'";
1426
- } else {
1427
- literal = true;
1428
- }
1429
- break;
1430
- default:
1431
- output += format.charAt( iFormat );
1432
- }
1433
- }
1434
- }
1435
- }
1436
- return output;
1437
- },
1438
-
1439
- /* Extract all possible characters from the date format. */
1440
- _possibleChars: function( format ) {
1441
- var iFormat,
1442
- chars = "",
1443
- literal = false,
1444
-
1445
- // Check whether a format character is doubled
1446
- lookAhead = function( match ) {
1447
- var matches = ( iFormat + 1 < format.length && format.charAt( iFormat + 1 ) === match );
1448
- if ( matches ) {
1449
- iFormat++;
1450
- }
1451
- return matches;
1452
- };
1453
-
1454
- for ( iFormat = 0; iFormat < format.length; iFormat++ ) {
1455
- if ( literal ) {
1456
- if ( format.charAt( iFormat ) === "'" && !lookAhead( "'" ) ) {
1457
- literal = false;
1458
- } else {
1459
- chars += format.charAt( iFormat );
1460
- }
1461
- } else {
1462
- switch ( format.charAt( iFormat ) ) {
1463
- case "d": case "m": case "y": case "@":
1464
- chars += "0123456789";
1465
- break;
1466
- case "D": case "M":
1467
- return null; // Accept anything
1468
- case "'":
1469
- if ( lookAhead( "'" ) ) {
1470
- chars += "'";
1471
- } else {
1472
- literal = true;
1473
- }
1474
- break;
1475
- default:
1476
- chars += format.charAt( iFormat );
1477
- }
1478
- }
1479
- }
1480
- return chars;
1481
- },
1482
-
1483
- /* Get a setting value, defaulting if necessary. */
1484
- _get: function( inst, name ) {
1485
- return inst.settings[ name ] !== undefined ?
1486
- inst.settings[ name ] : this._defaults[ name ];
1487
- },
1488
-
1489
- /* Parse existing date and initialise date picker. */
1490
- _setDateFromField: function( inst, noDefault ) {
1491
- if ( inst.input.val() === inst.lastVal ) {
1492
- return;
1493
- }
1494
-
1495
- var dateFormat = this._get( inst, "dateFormat" ),
1496
- dates = inst.lastVal = inst.input ? inst.input.val() : null,
1497
- defaultDate = this._getDefaultDate( inst ),
1498
- date = defaultDate,
1499
- settings = this._getFormatConfig( inst );
1500
-
1501
- try {
1502
- date = this.parseDate( dateFormat, dates, settings ) || defaultDate;
1503
- } catch ( event ) {
1504
- dates = ( noDefault ? "" : dates );
1505
- }
1506
- inst.selectedDay = date.getDate();
1507
- inst.drawMonth = inst.selectedMonth = date.getMonth();
1508
- inst.drawYear = inst.selectedYear = date.getFullYear();
1509
- inst.currentDay = ( dates ? date.getDate() : 0 );
1510
- inst.currentMonth = ( dates ? date.getMonth() : 0 );
1511
- inst.currentYear = ( dates ? date.getFullYear() : 0 );
1512
- this._adjustInstDate( inst );
1513
- },
1514
-
1515
- /* Retrieve the default date shown on opening. */
1516
- _getDefaultDate: function( inst ) {
1517
- return this._restrictMinMax( inst,
1518
- this._determineDate( inst, this._get( inst, "defaultDate" ), new Date() ) );
1519
- },
1520
-
1521
- /* A date may be specified as an exact value or a relative one. */
1522
- _determineDate: function( inst, date, defaultDate ) {
1523
- var offsetNumeric = function( offset ) {
1524
- var date = new Date();
1525
- date.setDate( date.getDate() + offset );
1526
- return date;
1527
- },
1528
- offsetString = function( offset ) {
1529
- try {
1530
- return $.datepicker.parseDate( $.datepicker._get( inst, "dateFormat" ),
1531
- offset, $.datepicker._getFormatConfig( inst ) );
1532
- }
1533
- catch ( e ) {
1534
-
1535
- // Ignore
1536
- }
1537
-
1538
- var date = ( offset.toLowerCase().match( /^c/ ) ?
1539
- $.datepicker._getDate( inst ) : null ) || new Date(),
1540
- year = date.getFullYear(),
1541
- month = date.getMonth(),
1542
- day = date.getDate(),
1543
- pattern = /([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,
1544
- matches = pattern.exec( offset );
1545
-
1546
- while ( matches ) {
1547
- switch ( matches[ 2 ] || "d" ) {
1548
- case "d" : case "D" :
1549
- day += parseInt( matches[ 1 ], 10 ); break;
1550
- case "w" : case "W" :
1551
- day += parseInt( matches[ 1 ], 10 ) * 7; break;
1552
- case "m" : case "M" :
1553
- month += parseInt( matches[ 1 ], 10 );
1554
- day = Math.min( day, $.datepicker._getDaysInMonth( year, month ) );
1555
- break;
1556
- case "y": case "Y" :
1557
- year += parseInt( matches[ 1 ], 10 );
1558
- day = Math.min( day, $.datepicker._getDaysInMonth( year, month ) );
1559
- break;
1560
- }
1561
- matches = pattern.exec( offset );
1562
- }
1563
- return new Date( year, month, day );
1564
- },
1565
- newDate = ( date == null || date === "" ? defaultDate : ( typeof date === "string" ? offsetString( date ) :
1566
- ( typeof date === "number" ? ( isNaN( date ) ? defaultDate : offsetNumeric( date ) ) : new Date( date.getTime() ) ) ) );
1567
-
1568
- newDate = ( newDate && newDate.toString() === "Invalid Date" ? defaultDate : newDate );
1569
- if ( newDate ) {
1570
- newDate.setHours( 0 );
1571
- newDate.setMinutes( 0 );
1572
- newDate.setSeconds( 0 );
1573
- newDate.setMilliseconds( 0 );
1574
- }
1575
- return this._daylightSavingAdjust( newDate );
1576
- },
1577
-
1578
- /* Handle switch to/from daylight saving.
1579
- * Hours may be non-zero on daylight saving cut-over:
1580
- * > 12 when midnight changeover, but then cannot generate
1581
- * midnight datetime, so jump to 1AM, otherwise reset.
1582
- * @param date (Date) the date to check
1583
- * @return (Date) the corrected date
1584
- */
1585
- _daylightSavingAdjust: function( date ) {
1586
- if ( !date ) {
1587
- return null;
1588
- }
1589
- date.setHours( date.getHours() > 12 ? date.getHours() + 2 : 0 );
1590
- return date;
1591
- },
1592
-
1593
- /* Set the date(s) directly. */
1594
- _setDate: function( inst, date, noChange ) {
1595
- var clear = !date,
1596
- origMonth = inst.selectedMonth,
1597
- origYear = inst.selectedYear,
1598
- newDate = this._restrictMinMax( inst, this._determineDate( inst, date, new Date() ) );
1599
-
1600
- inst.selectedDay = inst.currentDay = newDate.getDate();
1601
- inst.drawMonth = inst.selectedMonth = inst.currentMonth = newDate.getMonth();
1602
- inst.drawYear = inst.selectedYear = inst.currentYear = newDate.getFullYear();
1603
- if ( ( origMonth !== inst.selectedMonth || origYear !== inst.selectedYear ) && !noChange ) {
1604
- this._notifyChange( inst );
1605
- }
1606
- this._adjustInstDate( inst );
1607
- if ( inst.input ) {
1608
- inst.input.val( clear ? "" : this._formatDate( inst ) );
1609
- }
1610
- },
1611
-
1612
- /* Retrieve the date(s) directly. */
1613
- _getDate: function( inst ) {
1614
- var startDate = ( !inst.currentYear || ( inst.input && inst.input.val() === "" ) ? null :
1615
- this._daylightSavingAdjust( new Date(
1616
- inst.currentYear, inst.currentMonth, inst.currentDay ) ) );
1617
- return startDate;
1618
- },
1619
-
1620
- /* Attach the onxxx handlers. These are declared statically so
1621
- * they work with static code transformers like Caja.
1622
- */
1623
- _attachHandlers: function( inst ) {
1624
- var stepMonths = this._get( inst, "stepMonths" ),
1625
- id = "#" + inst.id.replace( /\\\\/g, "\\" );
1626
- inst.dpDiv.find( "[data-handler]" ).map( function() {
1627
- var handler = {
1628
- prev: function() {
1629
- $.datepicker._adjustDate( id, -stepMonths, "M" );
1630
- },
1631
- next: function() {
1632
- $.datepicker._adjustDate( id, +stepMonths, "M" );
1633
- },
1634
- hide: function() {
1635
- $.datepicker._hideDatepicker();
1636
- },
1637
- today: function() {
1638
- $.datepicker._gotoToday( id );
1639
- },
1640
- selectDay: function() {
1641
- $.datepicker._selectDay( id, +this.getAttribute( "data-month" ), +this.getAttribute( "data-year" ), this );
1642
- return false;
1643
- },
1644
- selectMonth: function() {
1645
- $.datepicker._selectMonthYear( id, this, "M" );
1646
- return false;
1647
- },
1648
- selectYear: function() {
1649
- $.datepicker._selectMonthYear( id, this, "Y" );
1650
- return false;
1651
- }
1652
- };
1653
- $( this ).on( this.getAttribute( "data-event" ), handler[ this.getAttribute( "data-handler" ) ] );
1654
- } );
1655
- },
1656
-
1657
- /* Generate the HTML for the current state of the date picker. */
1658
- _generateHTML: function( inst ) {
1659
- var maxDraw, prevText, prev, nextText, next, currentText, gotoDate,
1660
- controls, buttonPanel, firstDay, showWeek, dayNames, dayNamesMin,
1661
- monthNames, monthNamesShort, beforeShowDay, showOtherMonths,
1662
- selectOtherMonths, defaultDate, html, dow, row, group, col, selectedDate,
1663
- cornerClass, calender, thead, day, daysInMonth, leadDays, curRows, numRows,
1664
- printDate, dRow, tbody, daySettings, otherMonth, unselectable,
1665
- tempDate = new Date(),
1666
- today = this._daylightSavingAdjust(
1667
- new Date( tempDate.getFullYear(), tempDate.getMonth(), tempDate.getDate() ) ), // clear time
1668
- isRTL = this._get( inst, "isRTL" ),
1669
- showButtonPanel = this._get( inst, "showButtonPanel" ),
1670
- hideIfNoPrevNext = this._get( inst, "hideIfNoPrevNext" ),
1671
- navigationAsDateFormat = this._get( inst, "navigationAsDateFormat" ),
1672
- numMonths = this._getNumberOfMonths( inst ),
1673
- showCurrentAtPos = this._get( inst, "showCurrentAtPos" ),
1674
- stepMonths = this._get( inst, "stepMonths" ),
1675
- isMultiMonth = ( numMonths[ 0 ] !== 1 || numMonths[ 1 ] !== 1 ),
1676
- currentDate = this._daylightSavingAdjust( ( !inst.currentDay ? new Date( 9999, 9, 9 ) :
1677
- new Date( inst.currentYear, inst.currentMonth, inst.currentDay ) ) ),
1678
- minDate = this._getMinMaxDate( inst, "min" ),
1679
- maxDate = this._getMinMaxDate( inst, "max" ),
1680
- drawMonth = inst.drawMonth - showCurrentAtPos,
1681
- drawYear = inst.drawYear;
1682
-
1683
- if ( drawMonth < 0 ) {
1684
- drawMonth += 12;
1685
- drawYear--;
1686
- }
1687
- if ( maxDate ) {
1688
- maxDraw = this._daylightSavingAdjust( new Date( maxDate.getFullYear(),
1689
- maxDate.getMonth() - ( numMonths[ 0 ] * numMonths[ 1 ] ) + 1, maxDate.getDate() ) );
1690
- maxDraw = ( minDate && maxDraw < minDate ? minDate : maxDraw );
1691
- while ( this._daylightSavingAdjust( new Date( drawYear, drawMonth, 1 ) ) > maxDraw ) {
1692
- drawMonth--;
1693
- if ( drawMonth < 0 ) {
1694
- drawMonth = 11;
1695
- drawYear--;
1696
- }
1697
- }
1698
- }
1699
- inst.drawMonth = drawMonth;
1700
- inst.drawYear = drawYear;
1701
-
1702
- prevText = this._get( inst, "prevText" );
1703
- prevText = ( !navigationAsDateFormat ? prevText : this.formatDate( prevText,
1704
- this._daylightSavingAdjust( new Date( drawYear, drawMonth - stepMonths, 1 ) ),
1705
- this._getFormatConfig( inst ) ) );
1706
-
1707
- prev = ( this._canAdjustMonth( inst, -1, drawYear, drawMonth ) ?
1708
- "<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click'" +
1709
- " title='" + prevText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "e" : "w" ) + "'>" + prevText + "</span></a>" :
1710
- ( hideIfNoPrevNext ? "" : "<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='" + prevText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "e" : "w" ) + "'>" + prevText + "</span></a>" ) );
1711
-
1712
- nextText = this._get( inst, "nextText" );
1713
- nextText = ( !navigationAsDateFormat ? nextText : this.formatDate( nextText,
1714
- this._daylightSavingAdjust( new Date( drawYear, drawMonth + stepMonths, 1 ) ),
1715
- this._getFormatConfig( inst ) ) );
1716
-
1717
- next = ( this._canAdjustMonth( inst, +1, drawYear, drawMonth ) ?
1718
- "<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click'" +
1719
- " title='" + nextText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "w" : "e" ) + "'>" + nextText + "</span></a>" :
1720
- ( hideIfNoPrevNext ? "" : "<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='" + nextText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "w" : "e" ) + "'>" + nextText + "</span></a>" ) );
1721
-
1722
- currentText = this._get( inst, "currentText" );
1723
- gotoDate = ( this._get( inst, "gotoCurrent" ) && inst.currentDay ? currentDate : today );
1724
- currentText = ( !navigationAsDateFormat ? currentText :
1725
- this.formatDate( currentText, gotoDate, this._getFormatConfig( inst ) ) );
1726
-
1727
- controls = ( !inst.inline ? "<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>" +
1728
- this._get( inst, "closeText" ) + "</button>" : "" );
1729
-
1730
- buttonPanel = ( showButtonPanel ) ? "<div class='ui-datepicker-buttonpane ui-widget-content'>" + ( isRTL ? controls : "" ) +
1731
- ( this._isInRange( inst, gotoDate ) ? "<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'" +
1732
- ">" + currentText + "</button>" : "" ) + ( isRTL ? "" : controls ) + "</div>" : "";
1733
-
1734
- firstDay = parseInt( this._get( inst, "firstDay" ), 10 );
1735
- firstDay = ( isNaN( firstDay ) ? 0 : firstDay );
1736
-
1737
- showWeek = this._get( inst, "showWeek" );
1738
- dayNames = this._get( inst, "dayNames" );
1739
- dayNamesMin = this._get( inst, "dayNamesMin" );
1740
- monthNames = this._get( inst, "monthNames" );
1741
- monthNamesShort = this._get( inst, "monthNamesShort" );
1742
- beforeShowDay = this._get( inst, "beforeShowDay" );
1743
- showOtherMonths = this._get( inst, "showOtherMonths" );
1744
- selectOtherMonths = this._get( inst, "selectOtherMonths" );
1745
- defaultDate = this._getDefaultDate( inst );
1746
- html = "";
1747
-
1748
- for ( row = 0; row < numMonths[ 0 ]; row++ ) {
1749
- group = "";
1750
- this.maxRows = 4;
1751
- for ( col = 0; col < numMonths[ 1 ]; col++ ) {
1752
- selectedDate = this._daylightSavingAdjust( new Date( drawYear, drawMonth, inst.selectedDay ) );
1753
- cornerClass = " ui-corner-all";
1754
- calender = "";
1755
- if ( isMultiMonth ) {
1756
- calender += "<div class='ui-datepicker-group";
1757
- if ( numMonths[ 1 ] > 1 ) {
1758
- switch ( col ) {
1759
- case 0: calender += " ui-datepicker-group-first";
1760
- cornerClass = " ui-corner-" + ( isRTL ? "right" : "left" ); break;
1761
- case numMonths[ 1 ] - 1: calender += " ui-datepicker-group-last";
1762
- cornerClass = " ui-corner-" + ( isRTL ? "left" : "right" ); break;
1763
- default: calender += " ui-datepicker-group-middle"; cornerClass = ""; break;
1764
- }
1765
- }
1766
- calender += "'>";
1767
- }
1768
- calender += "<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix" + cornerClass + "'>" +
1769
- ( /all|left/.test( cornerClass ) && row === 0 ? ( isRTL ? next : prev ) : "" ) +
1770
- ( /all|right/.test( cornerClass ) && row === 0 ? ( isRTL ? prev : next ) : "" ) +
1771
- this._generateMonthYearHeader( inst, drawMonth, drawYear, minDate, maxDate,
1772
- row > 0 || col > 0, monthNames, monthNamesShort ) + // draw month headers
1773
- "</div><table class='ui-datepicker-calendar'><thead>" +
1774
- "<tr>";
1775
- thead = ( showWeek ? "<th class='ui-datepicker-week-col'>" + this._get( inst, "weekHeader" ) + "</th>" : "" );
1776
- for ( dow = 0; dow < 7; dow++ ) { // days of the week
1777
- day = ( dow + firstDay ) % 7;
1778
- thead += "<th scope='col'" + ( ( dow + firstDay + 6 ) % 7 >= 5 ? " class='ui-datepicker-week-end'" : "" ) + ">" +
1779
- "<span title='" + dayNames[ day ] + "'>" + dayNamesMin[ day ] + "</span></th>";
1780
- }
1781
- calender += thead + "</tr></thead><tbody>";
1782
- daysInMonth = this._getDaysInMonth( drawYear, drawMonth );
1783
- if ( drawYear === inst.selectedYear && drawMonth === inst.selectedMonth ) {
1784
- inst.selectedDay = Math.min( inst.selectedDay, daysInMonth );
1785
- }
1786
- leadDays = ( this._getFirstDayOfMonth( drawYear, drawMonth ) - firstDay + 7 ) % 7;
1787
- curRows = Math.ceil( ( leadDays + daysInMonth ) / 7 ); // calculate the number of rows to generate
1788
- numRows = ( isMultiMonth ? this.maxRows > curRows ? this.maxRows : curRows : curRows ); //If multiple months, use the higher number of rows (see #7043)
1789
- this.maxRows = numRows;
1790
- printDate = this._daylightSavingAdjust( new Date( drawYear, drawMonth, 1 - leadDays ) );
1791
- for ( dRow = 0; dRow < numRows; dRow++ ) { // create date picker rows
1792
- calender += "<tr>";
1793
- tbody = ( !showWeek ? "" : "<td class='ui-datepicker-week-col'>" +
1794
- this._get( inst, "calculateWeek" )( printDate ) + "</td>" );
1795
- for ( dow = 0; dow < 7; dow++ ) { // create date picker days
1796
- daySettings = ( beforeShowDay ?
1797
- beforeShowDay.apply( ( inst.input ? inst.input[ 0 ] : null ), [ printDate ] ) : [ true, "" ] );
1798
- otherMonth = ( printDate.getMonth() !== drawMonth );
1799
- unselectable = ( otherMonth && !selectOtherMonths ) || !daySettings[ 0 ] ||
1800
- ( minDate && printDate < minDate ) || ( maxDate && printDate > maxDate );
1801
- tbody += "<td class='" +
1802
- ( ( dow + firstDay + 6 ) % 7 >= 5 ? " ui-datepicker-week-end" : "" ) + // highlight weekends
1803
- ( otherMonth ? " ui-datepicker-other-month" : "" ) + // highlight days from other months
1804
- ( ( printDate.getTime() === selectedDate.getTime() && drawMonth === inst.selectedMonth && inst._keyEvent ) || // user pressed key
1805
- ( defaultDate.getTime() === printDate.getTime() && defaultDate.getTime() === selectedDate.getTime() ) ?
1806
-
1807
- // or defaultDate is current printedDate and defaultDate is selectedDate
1808
- " " + this._dayOverClass : "" ) + // highlight selected day
1809
- ( unselectable ? " " + this._unselectableClass + " ui-state-disabled" : "" ) + // highlight unselectable days
1810
- ( otherMonth && !showOtherMonths ? "" : " " + daySettings[ 1 ] + // highlight custom dates
1811
- ( printDate.getTime() === currentDate.getTime() ? " " + this._currentClass : "" ) + // highlight selected day
1812
- ( printDate.getTime() === today.getTime() ? " ui-datepicker-today" : "" ) ) + "'" + // highlight today (if different)
1813
- ( ( !otherMonth || showOtherMonths ) && daySettings[ 2 ] ? " title='" + daySettings[ 2 ].replace( /'/g, "&#39;" ) + "'" : "" ) + // cell title
1814
- ( unselectable ? "" : " data-handler='selectDay' data-event='click' data-month='" + printDate.getMonth() + "' data-year='" + printDate.getFullYear() + "'" ) + ">" + // actions
1815
- ( otherMonth && !showOtherMonths ? "&#xa0;" : // display for other months
1816
- ( unselectable ? "<span class='ui-state-default'>" + printDate.getDate() + "</span>" : "<a class='ui-state-default" +
1817
- ( printDate.getTime() === today.getTime() ? " ui-state-highlight" : "" ) +
1818
- ( printDate.getTime() === currentDate.getTime() ? " ui-state-active" : "" ) + // highlight selected day
1819
- ( otherMonth ? " ui-priority-secondary" : "" ) + // distinguish dates from other months
1820
- "' href='#'>" + printDate.getDate() + "</a>" ) ) + "</td>"; // display selectable date
1821
- printDate.setDate( printDate.getDate() + 1 );
1822
- printDate = this._daylightSavingAdjust( printDate );
1823
- }
1824
- calender += tbody + "</tr>";
1825
- }
1826
- drawMonth++;
1827
- if ( drawMonth > 11 ) {
1828
- drawMonth = 0;
1829
- drawYear++;
1830
- }
1831
- calender += "</tbody></table>" + ( isMultiMonth ? "</div>" +
1832
- ( ( numMonths[ 0 ] > 0 && col === numMonths[ 1 ] - 1 ) ? "<div class='ui-datepicker-row-break'></div>" : "" ) : "" );
1833
- group += calender;
1834
- }
1835
- html += group;
1836
- }
1837
- html += buttonPanel;
1838
- inst._keyEvent = false;
1839
- return html;
1840
- },
1841
-
1842
- /* Generate the month and year header. */
1843
- _generateMonthYearHeader: function( inst, drawMonth, drawYear, minDate, maxDate,
1844
- secondary, monthNames, monthNamesShort ) {
1845
-
1846
- var inMinYear, inMaxYear, month, years, thisYear, determineYear, year, endYear,
1847
- changeMonth = this._get( inst, "changeMonth" ),
1848
- changeYear = this._get( inst, "changeYear" ),
1849
- showMonthAfterYear = this._get( inst, "showMonthAfterYear" ),
1850
- html = "<div class='ui-datepicker-title'>",
1851
- monthHtml = "";
1852
-
1853
- // Month selection
1854
- if ( secondary || !changeMonth ) {
1855
- monthHtml += "<span class='ui-datepicker-month'>" + monthNames[ drawMonth ] + "</span>";
1856
- } else {
1857
- inMinYear = ( minDate && minDate.getFullYear() === drawYear );
1858
- inMaxYear = ( maxDate && maxDate.getFullYear() === drawYear );
1859
- monthHtml += "<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>";
1860
- for ( month = 0; month < 12; month++ ) {
1861
- if ( ( !inMinYear || month >= minDate.getMonth() ) && ( !inMaxYear || month <= maxDate.getMonth() ) ) {
1862
- monthHtml += "<option value='" + month + "'" +
1863
- ( month === drawMonth ? " selected='selected'" : "" ) +
1864
- ">" + monthNamesShort[ month ] + "</option>";
1865
- }
1866
- }
1867
- monthHtml += "</select>";
1868
- }
1869
-
1870
- if ( !showMonthAfterYear ) {
1871
- html += monthHtml + ( secondary || !( changeMonth && changeYear ) ? "&#xa0;" : "" );
1872
- }
1873
-
1874
- // Year selection
1875
- if ( !inst.yearshtml ) {
1876
- inst.yearshtml = "";
1877
- if ( secondary || !changeYear ) {
1878
- html += "<span class='ui-datepicker-year'>" + drawYear + "</span>";
1879
- } else {
1880
-
1881
- // determine range of years to display
1882
- years = this._get( inst, "yearRange" ).split( ":" );
1883
- thisYear = new Date().getFullYear();
1884
- determineYear = function( value ) {
1885
- var year = ( value.match( /c[+\-].*/ ) ? drawYear + parseInt( value.substring( 1 ), 10 ) :
1886
- ( value.match( /[+\-].*/ ) ? thisYear + parseInt( value, 10 ) :
1887
- parseInt( value, 10 ) ) );
1888
- return ( isNaN( year ) ? thisYear : year );
1889
- };
1890
- year = determineYear( years[ 0 ] );
1891
- endYear = Math.max( year, determineYear( years[ 1 ] || "" ) );
1892
- year = ( minDate ? Math.max( year, minDate.getFullYear() ) : year );
1893
- endYear = ( maxDate ? Math.min( endYear, maxDate.getFullYear() ) : endYear );
1894
- inst.yearshtml += "<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";
1895
- for ( ; year <= endYear; year++ ) {
1896
- inst.yearshtml += "<option value='" + year + "'" +
1897
- ( year === drawYear ? " selected='selected'" : "" ) +
1898
- ">" + year + "</option>";
1899
- }
1900
- inst.yearshtml += "</select>";
1901
-
1902
- html += inst.yearshtml;
1903
- inst.yearshtml = null;
1904
- }
1905
- }
1906
-
1907
- html += this._get( inst, "yearSuffix" );
1908
- if ( showMonthAfterYear ) {
1909
- html += ( secondary || !( changeMonth && changeYear ) ? "&#xa0;" : "" ) + monthHtml;
1910
- }
1911
- html += "</div>"; // Close datepicker_header
1912
- return html;
1913
- },
1914
-
1915
- /* Adjust one of the date sub-fields. */
1916
- _adjustInstDate: function( inst, offset, period ) {
1917
- var year = inst.selectedYear + ( period === "Y" ? offset : 0 ),
1918
- month = inst.selectedMonth + ( period === "M" ? offset : 0 ),
1919
- day = Math.min( inst.selectedDay, this._getDaysInMonth( year, month ) ) + ( period === "D" ? offset : 0 ),
1920
- date = this._restrictMinMax( inst, this._daylightSavingAdjust( new Date( year, month, day ) ) );
1921
-
1922
- inst.selectedDay = date.getDate();
1923
- inst.drawMonth = inst.selectedMonth = date.getMonth();
1924
- inst.drawYear = inst.selectedYear = date.getFullYear();
1925
- if ( period === "M" || period === "Y" ) {
1926
- this._notifyChange( inst );
1927
- }
1928
- },
1929
-
1930
- /* Ensure a date is within any min/max bounds. */
1931
- _restrictMinMax: function( inst, date ) {
1932
- var minDate = this._getMinMaxDate( inst, "min" ),
1933
- maxDate = this._getMinMaxDate( inst, "max" ),
1934
- newDate = ( minDate && date < minDate ? minDate : date );
1935
- return ( maxDate && newDate > maxDate ? maxDate : newDate );
1936
- },
1937
-
1938
- /* Notify change of month/year. */
1939
- _notifyChange: function( inst ) {
1940
- var onChange = this._get( inst, "onChangeMonthYear" );
1941
- if ( onChange ) {
1942
- onChange.apply( ( inst.input ? inst.input[ 0 ] : null ),
1943
- [ inst.selectedYear, inst.selectedMonth + 1, inst ] );
1944
- }
1945
- },
1946
-
1947
- /* Determine the number of months to show. */
1948
- _getNumberOfMonths: function( inst ) {
1949
- var numMonths = this._get( inst, "numberOfMonths" );
1950
- return ( numMonths == null ? [ 1, 1 ] : ( typeof numMonths === "number" ? [ 1, numMonths ] : numMonths ) );
1951
- },
1952
-
1953
- /* Determine the current maximum date - ensure no time components are set. */
1954
- _getMinMaxDate: function( inst, minMax ) {
1955
- return this._determineDate( inst, this._get( inst, minMax + "Date" ), null );
1956
- },
1957
-
1958
- /* Find the number of days in a given month. */
1959
- _getDaysInMonth: function( year, month ) {
1960
- return 32 - this._daylightSavingAdjust( new Date( year, month, 32 ) ).getDate();
1961
- },
1962
-
1963
- /* Find the day of the week of the first of a month. */
1964
- _getFirstDayOfMonth: function( year, month ) {
1965
- return new Date( year, month, 1 ).getDay();
1966
- },
1967
-
1968
- /* Determines if we should allow a "next/prev" month display change. */
1969
- _canAdjustMonth: function( inst, offset, curYear, curMonth ) {
1970
- var numMonths = this._getNumberOfMonths( inst ),
1971
- date = this._daylightSavingAdjust( new Date( curYear,
1972
- curMonth + ( offset < 0 ? offset : numMonths[ 0 ] * numMonths[ 1 ] ), 1 ) );
1973
-
1974
- if ( offset < 0 ) {
1975
- date.setDate( this._getDaysInMonth( date.getFullYear(), date.getMonth() ) );
1976
- }
1977
- return this._isInRange( inst, date );
1978
- },
1979
-
1980
- /* Is the given date in the accepted range? */
1981
- _isInRange: function( inst, date ) {
1982
- var yearSplit, currentYear,
1983
- minDate = this._getMinMaxDate( inst, "min" ),
1984
- maxDate = this._getMinMaxDate( inst, "max" ),
1985
- minYear = null,
1986
- maxYear = null,
1987
- years = this._get( inst, "yearRange" );
1988
- if ( years ) {
1989
- yearSplit = years.split( ":" );
1990
- currentYear = new Date().getFullYear();
1991
- minYear = parseInt( yearSplit[ 0 ], 10 );
1992
- maxYear = parseInt( yearSplit[ 1 ], 10 );
1993
- if ( yearSplit[ 0 ].match( /[+\-].*/ ) ) {
1994
- minYear += currentYear;
1995
- }
1996
- if ( yearSplit[ 1 ].match( /[+\-].*/ ) ) {
1997
- maxYear += currentYear;
1998
- }
1999
- }
2000
-
2001
- return ( ( !minDate || date.getTime() >= minDate.getTime() ) &&
2002
- ( !maxDate || date.getTime() <= maxDate.getTime() ) &&
2003
- ( !minYear || date.getFullYear() >= minYear ) &&
2004
- ( !maxYear || date.getFullYear() <= maxYear ) );
2005
- },
2006
-
2007
- /* Provide the configuration settings for formatting/parsing. */
2008
- _getFormatConfig: function( inst ) {
2009
- var shortYearCutoff = this._get( inst, "shortYearCutoff" );
2010
- shortYearCutoff = ( typeof shortYearCutoff !== "string" ? shortYearCutoff :
2011
- new Date().getFullYear() % 100 + parseInt( shortYearCutoff, 10 ) );
2012
- return { shortYearCutoff: shortYearCutoff,
2013
- dayNamesShort: this._get( inst, "dayNamesShort" ), dayNames: this._get( inst, "dayNames" ),
2014
- monthNamesShort: this._get( inst, "monthNamesShort" ), monthNames: this._get( inst, "monthNames" ) };
2015
- },
2016
-
2017
- /* Format the given date for display. */
2018
- _formatDate: function( inst, day, month, year ) {
2019
- if ( !day ) {
2020
- inst.currentDay = inst.selectedDay;
2021
- inst.currentMonth = inst.selectedMonth;
2022
- inst.currentYear = inst.selectedYear;
2023
- }
2024
- var date = ( day ? ( typeof day === "object" ? day :
2025
- this._daylightSavingAdjust( new Date( year, month, day ) ) ) :
2026
- this._daylightSavingAdjust( new Date( inst.currentYear, inst.currentMonth, inst.currentDay ) ) );
2027
- return this.formatDate( this._get( inst, "dateFormat" ), date, this._getFormatConfig( inst ) );
2028
- }
2029
- } );
2030
-
2031
- /*
2032
- * Bind hover events for datepicker elements.
2033
- * Done via delegate so the binding only occurs once in the lifetime of the parent div.
2034
- * Global datepicker_instActive, set by _updateDatepicker allows the handlers to find their way back to the active picker.
2035
- */
2036
- function datepicker_bindHover( dpDiv ) {
2037
- var selector = "button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";
2038
- return dpDiv.on( "mouseout", selector, function() {
2039
- $( this ).removeClass( "ui-state-hover" );
2040
- if ( this.className.indexOf( "ui-datepicker-prev" ) !== -1 ) {
2041
- $( this ).removeClass( "ui-datepicker-prev-hover" );
2042
- }
2043
- if ( this.className.indexOf( "ui-datepicker-next" ) !== -1 ) {
2044
- $( this ).removeClass( "ui-datepicker-next-hover" );
2045
- }
2046
- } )
2047
- .on( "mouseover", selector, datepicker_handleMouseover );
2048
- }
2049
-
2050
- function datepicker_handleMouseover() {
2051
- if ( !$.datepicker._isDisabledDatepicker( datepicker_instActive.inline ? datepicker_instActive.dpDiv.parent()[ 0 ] : datepicker_instActive.input[ 0 ] ) ) {
2052
- $( this ).parents( ".ui-datepicker-calendar" ).find( "a" ).removeClass( "ui-state-hover" );
2053
- $( this ).addClass( "ui-state-hover" );
2054
- if ( this.className.indexOf( "ui-datepicker-prev" ) !== -1 ) {
2055
- $( this ).addClass( "ui-datepicker-prev-hover" );
2056
- }
2057
- if ( this.className.indexOf( "ui-datepicker-next" ) !== -1 ) {
2058
- $( this ).addClass( "ui-datepicker-next-hover" );
2059
- }
2060
- }
2061
- }
2062
-
2063
- /* jQuery extend now ignores nulls! */
2064
- function datepicker_extendRemove( target, props ) {
2065
- $.extend( target, props );
2066
- for ( var name in props ) {
2067
- if ( props[ name ] == null ) {
2068
- target[ name ] = props[ name ];
2069
- }
2070
- }
2071
- return target;
2072
- }
2073
-
2074
- /* Invoke the datepicker functionality.
2075
- @param options string - a command, optionally followed by additional parameters or
2076
- Object - settings for attaching new datepicker functionality
2077
- @return jQuery object */
2078
- $.fn.datepicker = function( options ) {
2079
-
2080
- /* Verify an empty collection wasn't passed - Fixes #6976 */
2081
- if ( !this.length ) {
2082
- return this;
2083
- }
2084
-
2085
- /* Initialise the date picker. */
2086
- if ( !$.datepicker.initialized ) {
2087
- $( document ).on( "mousedown", $.datepicker._checkExternalClick );
2088
- $.datepicker.initialized = true;
2089
- }
2090
-
2091
- /* Append datepicker main container to body if not exist. */
2092
- if ( $( "#" + $.datepicker._mainDivId ).length === 0 ) {
2093
- $( "body" ).append( $.datepicker.dpDiv );
2094
- }
2095
-
2096
- var otherArgs = Array.prototype.slice.call( arguments, 1 );
2097
- if ( typeof options === "string" && ( options === "isDisabled" || options === "getDate" || options === "widget" ) ) {
2098
- return $.datepicker[ "_" + options + "Datepicker" ].
2099
- apply( $.datepicker, [ this[ 0 ] ].concat( otherArgs ) );
2100
- }
2101
- if ( options === "option" && arguments.length === 2 && typeof arguments[ 1 ] === "string" ) {
2102
- return $.datepicker[ "_" + options + "Datepicker" ].
2103
- apply( $.datepicker, [ this[ 0 ] ].concat( otherArgs ) );
2104
- }
2105
- return this.each( function() {
2106
- typeof options === "string" ?
2107
- $.datepicker[ "_" + options + "Datepicker" ].
2108
- apply( $.datepicker, [ this ].concat( otherArgs ) ) :
2109
- $.datepicker._attachDatepicker( this, options );
2110
- } );
2111
- };
2112
-
2113
- $.datepicker = new Datepicker(); // singleton instance
2114
- $.datepicker.initialized = false;
2115
- $.datepicker.uuid = new Date().getTime();
2116
- $.datepicker.version = "1.12.0";
2117
-
2118
- return $.datepicker;
2119
-
2120
- } ) );