Permalink
Browse files

Merge branch 'master' of https://github.com/jquery/jquery-ui into

split
  • Loading branch information...
2 parents 5c464cc + 51ee3be commit 675b10597a31ae37111b881da84a0ae0daa6d05c Jesper Lindstroem Nielsen committed Jul 23, 2011
Showing with 10,302 additions and 6,027 deletions.
  1. +1 −0 .gitignore
  2. +1 −0 AUTHORS.txt
  3. +29 −0 README.md
  4. +90 −83 build/build.xml
  5. 0 build/release/prepare-release
  6. +2 −2 demos/autocomplete/categories.html
  7. +46 −32 demos/autocomplete/combobox.html
  8. +4 −4 demos/autocomplete/custom-data.html
  9. +1 −1 demos/autocomplete/default.html
  10. +1 −1 demos/autocomplete/folding.html
  11. +3 −2 demos/autocomplete/maxheight.html
  12. +4 −2 demos/autocomplete/multiple-remote.html
  13. +1 −1 demos/autocomplete/multiple.html
  14. +6 −4 demos/autocomplete/remote-jsonp.html
  15. +4 −2 demos/autocomplete/remote-with-cache.html
  16. +6 −4 demos/autocomplete/remote.html
  17. +2 −0 demos/autocomplete/search.php
  18. +1 −1 demos/button/default.html
  19. +5 −6 demos/demos.css
  20. +5 −0 demos/index.html
  21. +24 −40 demos/menu/contextmenu.html
  22. +21 −21 demos/menu/default.html
  23. +1 −1 demos/menu/index.html
  24. +153 −0 demos/menubar/default.html
  25. +16 −0 demos/menubar/index.html
  26. +81 −0 demos/popup/default.html
  27. +18 −0 demos/popup/index.html
  28. +108 −0 demos/popup/popup-menu-table.html
  29. +98 −0 demos/popup/popup-menu.html
  30. +15 −3 demos/position/default.html
  31. +1 −1 demos/resizable/constrain-area.html
  32. +1 −1 demos/spinner/currency.html
  33. +1 −1 demos/spinner/decimal.html
  34. +4 −4 demos/tabs/ajax.html
  35. +0 −1 demos/tabs/bottom.html
  36. +25 −28 demos/tabs/manipulation.html
  37. +7 −1 demos/tabs/sortable.html
  38. +1 −1 demos/tabs/vertical.html
  39. +36 −30 demos/tooltip/custom-animation.html
  40. +85 −0 demos/tooltip/custom-content.html
  41. +23 −24 demos/tooltip/default.html
  42. +0 −73 demos/tooltip/delegation-mixbag.html
  43. +63 −47 demos/tooltip/forms.html
  44. BIN demos/tooltip/images/st-stephens.jpg
  45. BIN demos/tooltip/images/tower-bridge.jpg
  46. +4 −2 demos/tooltip/index.html
  47. +34 −35 demos/tooltip/tracking.html
  48. +155 −0 demos/tooltip/video-player.html
  49. +183 −0 demos/widget/default.html
  50. +18 −0 demos/widget/index.html
  51. +16 −6 external/qunit.css
  52. +89 −85 external/qunit.js
  53. +3 −3 tests/jquery.simulate.js
  54. +0 −172 tests/static/menu/all-menus-icons.html
  55. +0 −39 tests/static/menu/default.html
  56. +8 −9 tests/unit/accordion/accordion.html
  57. +29 −27 tests/unit/accordion/accordion_core.js
  58. +6 −1 tests/unit/accordion/accordion_defaults.js
  59. +8 −1 tests/unit/accordion/accordion_defaults_deprecated.js
  60. +8 −9 tests/unit/accordion/{accordio.html → accordion_deprecated.html}
  61. +145 −127 tests/unit/accordion/accordion_deprecated.js
  62. +70 −69 tests/unit/accordion/accordion_events.js
  63. +18 −15 tests/unit/accordion/accordion_methods.js
  64. +128 −111 tests/unit/accordion/accordion_options.js
  65. +0 −5 tests/unit/accordion/accordion_tickets.js
  66. +29 −32 tests/unit/autocomplete/autocomplete.html
  67. +58 −48 tests/unit/autocomplete/autocomplete_core.js
  68. +24 −18 tests/unit/autocomplete/autocomplete_defaults.js
  69. +175 −166 tests/unit/autocomplete/autocomplete_events.js
  70. +23 −32 tests/unit/autocomplete/autocomplete_methods.js
  71. +131 −186 tests/unit/autocomplete/autocomplete_options.js
  72. +0 −14 tests/unit/autocomplete/autocomplete_tickets.js
  73. +14 −0 tests/unit/button/button_core.js
  74. +12 −13 tests/unit/button/button_defaults.js
  75. +8 −0 tests/unit/button/button_tickets.js
  76. +2 −0 tests/unit/datepicker/datepicker.html
  77. +8 −0 tests/unit/datepicker/datepicker_core.js
  78. +10 −0 tests/unit/datepicker/datepicker_events.js
  79. +4 −1 tests/unit/datepicker/datepicker_methods.js
  80. +14 −0 tests/unit/datepicker/datepicker_options.js
  81. +24 −0 tests/unit/datepicker/datepicker_tickets.js
  82. +33 −34 tests/unit/dialog/dialog_defaults.js
  83. +2 −2 tests/unit/dialog/dialog_options.js
  84. +0 −1 tests/unit/draggable/draggable.html
  85. +0 −8 tests/unit/draggable/draggable_tickets.js
  86. +0 −1 tests/unit/droppable/droppable.html
  87. +0 −8 tests/unit/droppable/droppable_tickets.js
  88. +103 −0 tests/unit/effects/effects.html
  89. +153 −0 tests/unit/effects/effects_core.js
  90. +61 −0 tests/unit/effects/effects_scale.js
  91. +5 −0 tests/unit/index.html
  92. +7 −4 tests/unit/menu/menu_core.js
  93. +10 −11 tests/unit/menu/menu_defaults.js
  94. +21 −0 tests/unit/menu/menu_events.js
  95. +34 −27 tests/unit/position/position.html
  96. +106 −7 tests/unit/position/position_core.js
  97. +536 −0 tests/unit/position/position_core_within.js
  98. 0 tests/unit/position/{positio.html → position_deprecated.html}
  99. +0 −1 tests/unit/progressbar/progressbar.html
  100. +9 −10 tests/unit/progressbar/progressbar_defaults.js
  101. +17 −0 tests/unit/progressbar/progressbar_options.js
  102. +0 −8 tests/unit/progressbar/progressbar_tickets.js
  103. +0 −1 tests/unit/resizable/resizable.html
  104. +0 −8 tests/unit/resizable/resizable_tickets.js
  105. +0 −1 tests/unit/selectable/selectable.html
  106. +0 −8 tests/unit/selectable/selectable_tickets.js
  107. +0 −1 tests/unit/slider/slider.html
  108. +18 −19 tests/unit/slider/slider_defaults.js
  109. +3 −3 tests/unit/slider/slider_methods.js
  110. +0 −8 tests/unit/slider/slider_tickets.js
  111. +14 −15 tests/unit/spinner/spinner_defaults.js
  112. +7 −7 tests/unit/spinner/spinner_options.js
  113. BIN tests/unit/tabs/spinner.gif
  114. +156 −102 tests/unit/tabs/tabs.html
  115. +90 −54 tests/unit/tabs/tabs_core.js
  116. +15 −26 tests/unit/tabs/tabs_defaults.js
  117. +29 −0 tests/unit/tabs/tabs_defaults_deprecated.js
  118. +174 −0 tests/unit/tabs/tabs_deprecated.html
  119. +576 −0 tests/unit/tabs/tabs_deprecated.js
  120. +250 −79 tests/unit/tabs/tabs_events.js
  121. +217 −193 tests/unit/tabs/tabs_methods.js
  122. +171 −94 tests/unit/tabs/tabs_options.js
  123. +0 −115 tests/unit/tabs/tabs_tickets.js
  124. +5 −3 tests/unit/testsuite.js
  125. +29 −31 tests/unit/tooltip/tooltip.html
  126. +21 −6 tests/unit/tooltip/tooltip_core.js
  127. +18 −14 tests/unit/tooltip/tooltip_defaults.js
  128. +75 −48 tests/unit/tooltip/tooltip_events.js
  129. +54 −17 tests/unit/tooltip/tooltip_methods.js
  130. +56 −45 tests/unit/tooltip/tooltip_options.js
  131. +2 −1 tests/unit/widget/widget.html
  132. +257 −0 tests/unit/widget/widget_animation.js
  133. +134 −0 tests/unit/widget/widget_core.js
  134. +104 −0 tests/unit/widget/widget_extend.js
  135. +0 −91 tests/unit/widget/widget_tickets.js
  136. +23 −0 tests/visual/datepicker/datepicker_ticket_7552.html
  137. +0 −32 tests/visual/dialog/dialog.html
  138. +0 −29 tests/visual/dialog/dialog_on_page_with_scrollbars.html
  139. +0 −36 tests/visual/dialog/dialog_option_buttons_OK_Cancel.html
  140. +0 −31 tests/visual/dialog/dialog_option_closeOnEscape_false.html
  141. +0 −31 tests/visual/dialog/dialog_option_closeOnEscape_true.html
  142. +0 −31 tests/visual/dialog/dialog_option_modal_false.html
  143. +0 −31 tests/visual/dialog/dialog_option_modal_true.html
  144. +0 −33 tests/visual/dialog/dialog_option_position_right_top.html
  145. +0 −44 tests/visual/dialog/dialog_ticket_4350.html
  146. +0 −44 tests/visual/dialog/dialog_ticket_4826.html
  147. +1 −0 tests/visual/{ → effects}/effects.all.css
  148. +48 −24 tests/visual/{ → effects}/effects.all.html
  149. +27 −13 tests/visual/{ → effects}/effects.all.js
  150. +159 −0 tests/visual/effects/effects.scale.html
  151. +0 −62 tests/visual/index.html
  152. +0 −191 tests/visual/menu/contextmenu.html
  153. +41 −3 tests/visual/menu/menu.html
  154. +0 −208 tests/visual/menu/menubar.html
  155. +0 −189 tests/visual/menu/menubar.js
  156. +1 −1 tests/visual/position/position.html
  157. +200 −0 tests/visual/position/position_within.html
  158. +0 −54 tests/visual/sortable/sortable_ticket_4551.html
  159. +72 −0 tests/visual/tooltip/animations.html
  160. +15 −10 tests/visual/tooltip/tooltip.html
  161. BIN themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png
  162. BIN themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png
  163. BIN themes/base/images/ui-bg_glass_65_ffffff_1x400.png
  164. BIN themes/base/images/ui-bg_glass_75_dadada_1x400.png
  165. BIN themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png
  166. BIN themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png
  167. BIN themes/base/images/ui-icons_222222_256x240.png
  168. BIN themes/base/images/ui-icons_2e83ff_256x240.png
  169. BIN themes/base/images/ui-icons_454545_256x240.png
  170. BIN themes/base/images/ui-icons_888888_256x240.png
  171. BIN themes/base/images/ui-icons_cd0a0a_256x240.png
  172. +1 −0 themes/base/jquery.ui.base.css
  173. +1 −1 themes/base/jquery.ui.datepicker.css
  174. +15 −32 themes/base/jquery.ui.menu.css
  175. +15 −0 themes/base/jquery.ui.menubar.css
  176. +1 −1 themes/base/jquery.ui.resizable.css
  177. +4 −5 themes/base/jquery.ui.tabs.css
  178. +7 −12 themes/base/jquery.ui.theme.css
  179. +1 −1 ui/i18n/jquery.ui.datepicker-af.js
  180. +1 −1 ui/i18n/jquery.ui.datepicker-ar.js
  181. +1 −1 ui/i18n/jquery.ui.datepicker-az.js
  182. +1 −1 ui/i18n/jquery.ui.datepicker-bg.js
  183. +1 −1 ui/i18n/jquery.ui.datepicker-bs.js
  184. +1 −1 ui/i18n/jquery.ui.datepicker-cs.js
  185. +1 −1 ui/i18n/jquery.ui.datepicker-da.js
  186. +1 −1 ui/i18n/jquery.ui.datepicker-de.js
  187. +1 −1 ui/i18n/jquery.ui.datepicker-el.js
  188. +1 −1 ui/i18n/jquery.ui.datepicker-en-GB.js
  189. +1 −1 ui/i18n/jquery.ui.datepicker-eo.js
  190. +1 −1 ui/i18n/jquery.ui.datepicker-et.js
  191. +1 −1 ui/i18n/jquery.ui.datepicker-eu.js
  192. +1 −1 ui/i18n/jquery.ui.datepicker-fa.js
  193. +1 −1 ui/i18n/jquery.ui.datepicker-fo.js
  194. +1 −1 ui/i18n/jquery.ui.datepicker-fr-CH.js
  195. +1 −1 ui/i18n/jquery.ui.datepicker-fr.js
  196. +1 −1 ui/i18n/jquery.ui.datepicker-he.js
  197. +1 −1 ui/i18n/jquery.ui.datepicker-hr.js
  198. +1 −1 ui/i18n/jquery.ui.datepicker-ja.js
  199. +1 −1 ui/i18n/jquery.ui.datepicker-ml.js
  200. +3 −3 ui/i18n/jquery.ui.datepicker-nl.js
  201. +1 −1 ui/i18n/jquery.ui.datepicker-ro.js
  202. +1 −1 ui/i18n/jquery.ui.datepicker-sk.js
  203. +1 −1 ui/i18n/jquery.ui.datepicker-sq.js
  204. +1 −1 ui/i18n/jquery.ui.datepicker-sr-SR.js
  205. +1 −1 ui/i18n/jquery.ui.datepicker-sr.js
  206. +1 −1 ui/i18n/jquery.ui.datepicker-sv.js
  207. +1 −1 ui/i18n/jquery.ui.datepicker-ta.js
  208. +1 −1 ui/i18n/jquery.ui.datepicker-th.js
  209. +1 −1 ui/i18n/jquery.ui.datepicker-vi.js
  210. +1 −1 ui/i18n/jquery.ui.datepicker-zh-TW.js
  211. +59 −32 ui/jquery.effects.blind.js
  212. +91 −81 ui/jquery.effects.bounce.js
  213. +41 −44 ui/jquery.effects.clip.js
  214. +181 −133 ui/jquery.effects.core.js
  215. +43 −44 ui/jquery.effects.drop.js
  216. +66 −73 ui/jquery.effects.explode.js
  217. +16 −14 ui/jquery.effects.fade.js
  218. +50 −49 ui/jquery.effects.fold.js
  219. +29 −31 ui/jquery.effects.highlight.js
  220. +41 −31 ui/jquery.effects.pulsate.js
  221. +255 −203 ui/jquery.effects.scale.js
  222. +49 −39 ui/jquery.effects.shake.js
  223. +43 −45 ui/jquery.effects.slide.js
  224. +29 −29 ui/jquery.effects.transfer.js
  225. +37 −22 ui/jquery.ui.accordion.js
  226. +64 −13 ui/jquery.ui.autocomplete.js
  227. +48 −16 ui/jquery.ui.button.js
  228. +28 −24 ui/jquery.ui.core.js
  229. +138 −74 ui/jquery.ui.datepicker.js
  230. +34 −30 ui/jquery.ui.dialog.js
  231. +63 −42 ui/jquery.ui.draggable.js
  232. +12 −4 ui/jquery.ui.droppable.js
  233. +208 −130 ui/jquery.ui.menu.js
  234. +299 −0 ui/jquery.ui.menubar.js
  235. +10 −5 ui/jquery.ui.mouse.js
  236. +209 −0 ui/jquery.ui.popup.js
  237. +118 −32 ui/jquery.ui.position.js
  238. +2 −4 ui/jquery.ui.progressbar.js
  239. +34 −7 ui/jquery.ui.resizable.js
  240. +1 −4 ui/jquery.ui.selectable.js
  241. +19 −39 ui/jquery.ui.slider.js
  242. +7 −6 ui/jquery.ui.sortable.js
  243. +208 −186 ui/jquery.ui.spinner.js
  244. +808 −484 ui/jquery.ui.tabs.js
  245. +183 −100 ui/jquery.ui.tooltip.js
  246. +90 −15 ui/jquery.ui.widget.js
View
@@ -5,3 +5,4 @@ docs
*.diff
*.patch
.DS_Store
+.settings
View
@@ -17,6 +17,7 @@ Bohdan Ganicky
Scott González
Marc Grabanski (m@marcgrabanski.com)
Klaus Hartl (stilbuero.de)
+Hans Hillen (TPG, funded through AEGIS: http://www.aegis-project.eu/)
Scott Jehl
Cody Lindley
Eduardo Lundgren (eduardolundgren@gmail.com)
View
@@ -7,3 +7,32 @@ If you want to use jQuery UI, go to [jqueryui.com](http://jqueryui.com) to get s
If you are interested in helping developing jQuery UI, you are in the right place.
To discuss development with team members and the community, visit the [Developing jQuery UI Forum](http://forum.jquery.com/developing-jquery-ui).
+
+For contributors
+---
+If you want to help and provide a patch for a bugfix or new feature, please take
+a few minutes and look at [our Getting Involved guide](http://wiki.jqueryui.com/w/page/35263114/Getting-Involved),
+in particular check out the [Coding standards](http://wiki.jqueryui.com/w/page/12137737/Coding-standards)
+and [Commit Message Style Guide](http://wiki.jqueryui.com/w/page/25941597/Commit-Message-Style-Guide).
+
+In general, fork the project, create a branch for a specific change and send a
+pull request for that branch. Don't mix unrelated changes. You can use the commit
+message as the description for the pull request.
+
+
+For committers
+---
+When looking at pull requests, first check for [proper commit messages](http://wiki.jqueryui.com/w/page/12137724/Bug-Fixing-Guide).
+
+Unless everything is fine and you can merge directly via GitHub's interface, fetch the remote first:
+
+ git remote add [username] [his-fork.git] -f
+
+If you want just one commit and edit the commit message:
+
+ git cherry-pick -e [sha-of-commit]
+
+If it should go to the stable brach, cherry-pick it to stable:
+
+ git checkout 1-8-stable
+ git cherry-pick -x [sha-of-commit]
View
@@ -160,42 +160,46 @@
<mkdir dir="${min.dir}" />
<mkdir dir="${min.dir}/i18n/" />
<mkdir dir="${dist.dir}/themes/base/minified" />
-
- <apply executable="java" parallel="false">
- <fileset dir="${dist.dir}/ui" includes="*.js" />
- <arg line="-jar" />
- <arg path="${closure-jar}" />
- <arg value="--warning_level" />
- <arg value="QUIET" />
- <arg value="--js_output_file" />
- <targetfile />
- <arg value="--js" />
- <mapper type="glob" from="*.js" to="${min.dir}/*.min.js" />
- </apply>
-
- <apply executable="java" parallel="false">
- <fileset dir="${dist.dir}/ui/i18n" includes="*.js" />
- <arg line="-jar" />
- <arg path="${closure-jar}" />
- <arg value="--warning_level" />
- <arg value="QUIET" />
- <arg value="--js_output_file" />
- <targetfile />
- <arg value="--js" />
- <mapper type="glob" from="*.js" to="${min.dir}/i18n/*.min.js" />
- </apply>
-
- <apply executable="java" parallel="false">
- <fileset dir="${dist.dir}/themes/base" includes="*.css" />
- <arg line="-jar" />
- <arg path="${yuicompressor-jar}" />
- <arg line="--charset utf-8" />
- <arg line="-v" />
- <srcfile />
- <arg line="-o" />
- <mapper type="glob" from="*.css" to="${dist.dir}/themes/base/minified/*.min.css" />
- <targetfile/>
- </apply>
+
+ <parallel threadsperprocessor="1">
+
+ <apply executable="java" parallel="false">
+ <fileset dir="${dist.dir}/ui" includes="*.js" />
+ <arg line="-jar" />
+ <arg path="${closure-jar}" />
+ <arg value="--warning_level" />
+ <arg value="QUIET" />
+ <arg value="--js_output_file" />
+ <targetfile />
+ <arg value="--js" />
+ <mapper type="glob" from="*.js" to="${min.dir}/*.min.js" />
+ </apply>
+
+ <apply executable="java" parallel="false">
+ <fileset dir="${dist.dir}/ui/i18n" includes="*.js" />
+ <arg line="-jar" />
+ <arg path="${closure-jar}" />
+ <arg value="--warning_level" />
+ <arg value="QUIET" />
+ <arg value="--js_output_file" />
+ <targetfile />
+ <arg value="--js" />
+ <mapper type="glob" from="*.js" to="${min.dir}/i18n/*.min.js" />
+ </apply>
+
+ <apply executable="java" parallel="false">
+ <fileset dir="${dist.dir}/themes/base" includes="*.css" />
+ <arg line="-jar" />
+ <arg path="${yuicompressor-jar}" />
+ <arg line="--charset utf-8" />
+ <arg line="-v" />
+ <srcfile />
+ <arg line="-o" />
+ <mapper type="glob" from="*.css" to="${dist.dir}/themes/base/minified/*.min.css" />
+ <targetfile/>
+ </apply>
+
+ </parallel>
<replaceregexp match=".css" replace=".min.css" flags="g">
<fileset dir="${dist.dir}/themes/base/minified/">
@@ -258,53 +262,56 @@
<mkdir dir="${docs.dir}" />
<property name="url" value="http://docs.jquery.com/action/render/UI/API/${release.version}/" />
- <get src="${url}Draggable" dest="${docs.dir}draggable.html" />
- <get src="${url}Droppable" dest="${docs.dir}droppable.html" />
- <get src="${url}Resizable" dest="${docs.dir}resizable.html" />
- <get src="${url}Selectable" dest="${docs.dir}selectable.html" />
- <get src="${url}Sortable" dest="${docs.dir}sortable.html" />
-
- <get src="${url}Accordion" dest="${docs.dir}accordion.html" />
- <get src="${url}Autocomplete" dest="${docs.dir}autocomplete.html" />
- <get src="${url}Button" dest="${docs.dir}button.html" />
- <get src="${url}Datepicker" dest="${docs.dir}datepicker.html" />
- <get src="${url}Dialog" dest="${docs.dir}dialog.html" />
- <get src="${url}Menu" dest="${docs.dir}menu.html" />
- <get src="${url}Progressbar" dest="${docs.dir}progressbar.html" />
- <get src="${url}Slider" dest="${docs.dir}slider.html" />
- <get src="${url}Spinner" dest="${docs.dir}spinner.html" />
- <get src="${url}Tooltip" dest="${docs.dir}tooltip.html" />
- <get src="${url}Tabs" dest="${docs.dir}tabs.html" />
-
- <get src="${url}Position" dest="${docs.dir}position.html" />
-
- <get src="http://docs.jquery.com/action/render/UI/Effects/animate" dest="${docs.dir}animate.html" />
- <get src="http://docs.jquery.com/action/render/UI/Effects/addClass" dest="${docs.dir}addClass.html" />
- <get src="http://docs.jquery.com/action/render/UI/Effects/effect" dest="${docs.dir}effect.html" />
- <get src="http://docs.jquery.com/action/render/UI/Effects/hide" dest="${docs.dir}hide.html" />
- <get src="http://docs.jquery.com/action/render/UI/Effects/removeClass" dest="${docs.dir}removeClass.html" />
- <get src="http://docs.jquery.com/action/render/UI/Effects/show" dest="${docs.dir}show.html" />
- <get src="http://docs.jquery.com/action/render/UI/Effects/switchClass" dest="${docs.dir}switchClass.html" />
- <get src="http://docs.jquery.com/action/render/UI/Effects/toggle" dest="${docs.dir}toggle.html" />
- <get src="http://docs.jquery.com/action/render/UI/Effects/toggleClass" dest="${docs.dir}toggleClass.html" />
-
-
- <get src="http://docs.jquery.com/action/render/UI/Effects/Blind" dest="${docs.dir}effect-blind.html" />
- <get src="http://docs.jquery.com/action/render/UI/Effects/Clip" dest="${docs.dir}effect-clip.html" />
- <get src="http://docs.jquery.com/action/render/UI/Effects/Drop" dest="${docs.dir}effect-drop.html" />
- <get src="http://docs.jquery.com/action/render/UI/Effects/Explode" dest="${docs.dir}effect-explode.html" />
- <get src="http://docs.jquery.com/action/render/UI/Effects/Fade" dest="${docs.dir}effect-fade.html" />
- <get src="http://docs.jquery.com/action/render/UI/Effects/Fold" dest="${docs.dir}effect-fold.html" />
- <get src="http://docs.jquery.com/action/render/UI/Effects/Puff" dest="${docs.dir}effect-puff.html" />
- <get src="http://docs.jquery.com/action/render/UI/Effects/Slide" dest="${docs.dir}effect-slide.html" />
- <get src="http://docs.jquery.com/action/render/UI/Effects/Scale" dest="${docs.dir}effect-scale.html" />
-
- <get src="http://docs.jquery.com/action/render/UI/Effects/Bounce" dest="${docs.dir}effect-bounce.html" />
- <get src="http://docs.jquery.com/action/render/UI/Effects/Highlight" dest="${docs.dir}effect-highlight.html" />
- <get src="http://docs.jquery.com/action/render/UI/Effects/Pulsate" dest="${docs.dir}effect-pulsate.html" />
- <get src="http://docs.jquery.com/action/render/UI/Effects/Shake" dest="${docs.dir}effect-shake.html" />
- <get src="http://docs.jquery.com/action/render/UI/Effects/Size" dest="${docs.dir}effect-size.html" />
- <get src="http://docs.jquery.com/action/render/UI/Effects/Transfer" dest="${docs.dir}effect-transfer.html" />
+ <parallel threadcount="8">
+
+ <get src="${url}Draggable" dest="${docs.dir}draggable.html" />
+ <get src="${url}Droppable" dest="${docs.dir}droppable.html" />
+ <get src="${url}Resizable" dest="${docs.dir}resizable.html" />
+ <get src="${url}Selectable" dest="${docs.dir}selectable.html" />
+ <get src="${url}Sortable" dest="${docs.dir}sortable.html" />
+
+ <get src="${url}Accordion" dest="${docs.dir}accordion.html" />
+ <get src="${url}Autocomplete" dest="${docs.dir}autocomplete.html" />
+ <get src="${url}Button" dest="${docs.dir}button.html" />
+ <get src="${url}Datepicker" dest="${docs.dir}datepicker.html" />
+ <get src="${url}Dialog" dest="${docs.dir}dialog.html" />
+ <get src="${url}Menu" dest="${docs.dir}menu.html" />
+ <get src="${url}Progressbar" dest="${docs.dir}progressbar.html" />
+ <get src="${url}Slider" dest="${docs.dir}slider.html" />
+ <get src="${url}Spinner" dest="${docs.dir}spinner.html" />
+ <get src="${url}Tooltip" dest="${docs.dir}tooltip.html" />
+ <get src="${url}Tabs" dest="${docs.dir}tabs.html" />
+
+ <get src="${url}Position" dest="${docs.dir}position.html" />
+
+ <get src="http://docs.jquery.com/action/render/UI/Effects/animate" dest="${docs.dir}animate.html" />
+ <get src="http://docs.jquery.com/action/render/UI/Effects/addClass" dest="${docs.dir}addClass.html" />
+ <get src="http://docs.jquery.com/action/render/UI/Effects/effect" dest="${docs.dir}effect.html" />
+ <get src="http://docs.jquery.com/action/render/UI/Effects/hide" dest="${docs.dir}hide.html" />
+ <get src="http://docs.jquery.com/action/render/UI/Effects/removeClass" dest="${docs.dir}removeClass.html" />
+ <get src="http://docs.jquery.com/action/render/UI/Effects/show" dest="${docs.dir}show.html" />
+ <get src="http://docs.jquery.com/action/render/UI/Effects/switchClass" dest="${docs.dir}switchClass.html" />
+ <get src="http://docs.jquery.com/action/render/UI/Effects/toggle" dest="${docs.dir}toggle.html" />
+ <get src="http://docs.jquery.com/action/render/UI/Effects/toggleClass" dest="${docs.dir}toggleClass.html" />
+
+
+ <get src="http://docs.jquery.com/action/render/UI/Effects/Blind" dest="${docs.dir}effect-blind.html" />
+ <get src="http://docs.jquery.com/action/render/UI/Effects/Clip" dest="${docs.dir}effect-clip.html" />
+ <get src="http://docs.jquery.com/action/render/UI/Effects/Drop" dest="${docs.dir}effect-drop.html" />
+ <get src="http://docs.jquery.com/action/render/UI/Effects/Explode" dest="${docs.dir}effect-explode.html" />
+ <get src="http://docs.jquery.com/action/render/UI/Effects/Fade" dest="${docs.dir}effect-fade.html" />
+ <get src="http://docs.jquery.com/action/render/UI/Effects/Fold" dest="${docs.dir}effect-fold.html" />
+ <get src="http://docs.jquery.com/action/render/UI/Effects/Puff" dest="${docs.dir}effect-puff.html" />
+ <get src="http://docs.jquery.com/action/render/UI/Effects/Slide" dest="${docs.dir}effect-slide.html" />
+ <get src="http://docs.jquery.com/action/render/UI/Effects/Scale" dest="${docs.dir}effect-scale.html" />
+
+ <get src="http://docs.jquery.com/action/render/UI/Effects/Bounce" dest="${docs.dir}effect-bounce.html" />
+ <get src="http://docs.jquery.com/action/render/UI/Effects/Highlight" dest="${docs.dir}effect-highlight.html" />
+ <get src="http://docs.jquery.com/action/render/UI/Effects/Pulsate" dest="${docs.dir}effect-pulsate.html" />
+ <get src="http://docs.jquery.com/action/render/UI/Effects/Shake" dest="${docs.dir}effect-shake.html" />
+ <get src="http://docs.jquery.com/action/render/UI/Effects/Size" dest="${docs.dir}effect-size.html" />
+ <get src="http://docs.jquery.com/action/render/UI/Effects/Transfer" dest="${docs.dir}effect-transfer.html" />
+ </parallel>
</target>
<target name="themes-download">
View
No changes.
@@ -47,7 +47,7 @@
{ label: "andreas andersson", category: "People" },
{ label: "andreas johnson", category: "People" }
];
-
+
$( "#search" ).catcomplete({
delay: 0,
source: data
@@ -59,7 +59,7 @@
<div class="demo">
<label for="search">Search: </label>
- <input id="search" />
+ <input id="search">
</div><!-- End demo -->
@@ -14,9 +14,16 @@
<script src="../../ui/jquery.ui.tooltip.js"></script>
<link rel="stylesheet" href="../demos.css">
<style>
- .ui-button { margin-left: -1px; }
- .ui-button-icon-only .ui-button-text { padding: 0.35em; }
- .ui-autocomplete-input { margin: 0; padding: 0.48em 0 0.47em 0.45em; }
+ .ui-button {
+ margin-left: -1px;
+ }
+ .ui-button-icon-only .ui-button-text {
+ padding: 0.35em;
+ }
+ .ui-autocomplete-input {
+ margin: 0;
+ padding: 0.4em 0 0.4em 0.45em;
+ }
</style>
<script>
(function( $ ) {
@@ -26,6 +33,32 @@
select = this.element.hide(),
selected = select.children( ":selected" ),
value = selected.val() ? selected.text() : "";
+
+ function removeIfInvalid(element) {
+ var value = $( element ).val(),
+ matcher = new RegExp( "^" + $.ui.autocomplete.escapeRegex( value ) + "$", "i" ),
+ valid = false;
+ select.children( "option" ).each(function() {
+ if ( $( this ).text().match( matcher ) ) {
+ this.selected = valid = true;
+ return false;
+ }
+ });
+ if ( !valid ) {
+ // remove invalid value, as it didn't match anything
+ $( element )
+ .val( "" )
+ .attr( "title", value + " didn't match any item" )
+ .tooltip( "open" );
+ select.val( "" );
+ setTimeout(function() {
+ input.tooltip( "close" ).attr( "title", "" );
+ }, 2500 );
+ input.data( "autocomplete" ).term = "";
+ return false;
+ }
+ }
+
var input = this.input = $( "<input>" )
.insertAfter( select )
.val( value )
@@ -57,36 +90,14 @@
});
},
change: function( event, ui ) {
- if ( !ui.item ) {
- var value = $( this ).val(),
- matcher = new RegExp( "^" + $.ui.autocomplete.escapeRegex( value ) + "$", "i" ),
- valid = false;
- select.children( "option" ).each(function() {
- if ( $( this ).text().match( matcher ) ) {
- this.selected = valid = true;
- return false;
- }
- });
- if ( !valid ) {
- // remove invalid value, as it didn't match anything
- $( this )
- .val( "" )
- .attr( "title", value + " didn't match any item" )
- .tooltip( "open" );
- select.val( "" );
- setTimeout(function() {
- input.tooltip( "close" ).attr( "title", "" );
- }, 2500 );
- input.data( "autocomplete" ).term = "";
- return false;
- }
- }
+ if ( !ui.item )
+ return removeIfInvalid( this );
}
})
.addClass( "ui-widget ui-widget-content ui-corner-left" );
input.data( "autocomplete" )._renderItem = function( ul, item ) {
- return $( "<li></li>" )
+ return $( "<li>" )
.data( "item.autocomplete", item )
.append( "<a>" + item.label + "</a>" )
.appendTo( ul );
@@ -109,9 +120,13 @@
// close if already visible
if ( input.autocomplete( "widget" ).is( ":visible" ) ) {
input.autocomplete( "close" );
+ removeIfInvalid( input );
return;
}
+ // work around a bug (likely same cause as #5265)
+ $( this ).blur();
+
// pass empty string as value to search for, displaying all results
input.autocomplete( "search", "" );
input.focus();
@@ -121,10 +136,9 @@
.tooltip({
position: {
of: this.button
- }
- })
- .tooltip( "widget" )
- .addClass( "ui-state-highlight" );
+ },
+ tooltipClass: "ui-state-highlight"
+ });
},
destroy: function() {
@@ -67,7 +67,7 @@
}
})
.data( "autocomplete" )._renderItem = function( ul, item ) {
- return $( "<li></li>" )
+ return $( "<li>" )
.data( "item.autocomplete", item )
.append( "<a>" + item.label + "<br>" + item.desc + "</a>" )
.appendTo( ul );
@@ -79,9 +79,9 @@
<div class="demo">
<div id="project-label">Select a project (type "j" for a start):</div>
- <img id="project-icon" src="images/transparent_1x1.png" class="ui-state-default"/>
- <input id="project"/>
- <input type="hidden" id="project-id"/>
+ <img id="project-icon" src="images/transparent_1x1.png" class="ui-state-default">
+ <input id="project">
+ <input type="hidden" id="project-id">
<p id="project-description"></p>
</div><!-- End demo -->
Oops, something went wrong. Retry.

0 comments on commit 675b105

Please sign in to comment.