wheels 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (243) hide show
  1. data/Gemfile +20 -0
  2. data/VERSION +1 -1
  3. data/app/controllers/app_configs_controller.rb +12 -0
  4. data/app/controllers/application_controller.rb +39 -0
  5. data/app/helpers/application_helper.rb +24 -2
  6. data/app/models/sitemap.rb +7 -0
  7. data/app/views/app_configs/css.css.haml +2 -0
  8. data/app/views/layouts/application.html.haml +21 -15
  9. data/app/views/pages/_form_fields.html.haml +2 -0
  10. data/app/views/sitemaps/index.html.haml +68 -76
  11. data/db/migrate/0000_devise_create_users.rb +26 -0
  12. data/db/migrate/0180_acts_as_taggable_on_migration.rb +28 -0
  13. data/lib/generators/app_layout/app_layout_generator.rb +1 -1
  14. data/lib/generators/{wheels/core_extensions.rb → core_extensions.rb} +42 -1
  15. data/lib/generators/recipes/wheels.rb +46 -0
  16. data/lib/generators/recipes/wheels_update.rb +18 -0
  17. data/lib/generators/wheels/wheels_generator.rb +3 -1
  18. data/lib/generators/wheels_checkout_assets/USAGE +8 -0
  19. data/lib/generators/wheels_checkout_assets/wheels_checkout_assets_generator.rb +9 -0
  20. data/lib/generators/wheels_checkout_assets_readonly/USAGE +8 -0
  21. data/lib/generators/wheels_checkout_assets_readonly/wheels_checkout_assets_readonly_generator.rb +10 -0
  22. data/lib/generators/wheels_controller/USAGE +8 -0
  23. data/lib/generators/wheels_controller/wheels_controller_generator.rb +14 -0
  24. data/lib/generators/{wheels_views → wheels_model}/USAGE +1 -1
  25. data/lib/generators/wheels_model/wheels_model_generator.rb +14 -0
  26. data/lib/generators/{update_wheels/update_wheels_generator.rb → wheels_update/wheels_update_generator.rb} +7 -13
  27. data/lib/generators/wheels_view/USAGE +8 -0
  28. data/lib/generators/wheels_view/wheels_view_generator.rb +14 -0
  29. data/lib/wheels/routes.rb +7 -1
  30. data/wheels.gemspec +44 -218
  31. metadata +44 -218
  32. data/lib/generators/app_layout/core_extensions.rb +0 -51
  33. data/lib/generators/update_wheels/core_extensions.rb +0 -51
  34. data/lib/generators/update_wheels/recipes/wheels.rb +0 -11
  35. data/lib/generators/update_wheels/templates/haml/app/views/layouts/application.html.haml +0 -9
  36. data/lib/generators/wheels/install_generator.rb +0 -25
  37. data/lib/generators/wheels/recipes/wheels.rb +0 -66
  38. data/lib/generators/wheels/templates/cancan/ability.rb +0 -13
  39. data/lib/generators/wheels/templates/database/postgresql.yml +0 -19
  40. data/lib/generators/wheels/templates/git/gitignore +0 -8
  41. data/lib/generators/wheels/templates/mongoid/features/step_definitions/mongoid_steps.rb +0 -4
  42. data/lib/generators/wheels/templates/mongoid/features/support/hooks.rb +0 -3
  43. data/lib/generators/wheels/views_generator.rb +0 -15
  44. data/lib/generators/wheels_views/LICENCE +0 -20
  45. data/lib/generators/wheels_views/wheels_views_generator.rb +0 -15
  46. data/lib/wheels/base.rb +0 -7
  47. data/public/404.html +0 -26
  48. data/public/422.html +0 -26
  49. data/public/500.html +0 -26
  50. data/public/favicon.ico +0 -0
  51. data/public/images/dreamy/Thumbs.db +0 -0
  52. data/public/images/dreamy/bg-ad-top.png +0 -0
  53. data/public/images/dreamy/bg-body.png +0 -0
  54. data/public/images/dreamy/bg-feed.gif +0 -0
  55. data/public/images/dreamy/bg-footer.jpg +0 -0
  56. data/public/images/dreamy/bg-header.jpg +0 -0
  57. data/public/images/dreamy/bg-menu-hover.png +0 -0
  58. data/public/images/dreamy/bg-menu.png +0 -0
  59. data/public/images/dreamy/bg-sidebar-bottom.gif +0 -0
  60. data/public/images/dreamy/button-feed.png +0 -0
  61. data/public/images/dreamy/icon-comment.png +0 -0
  62. data/public/images/growl/error.png +0 -0
  63. data/public/images/growl/growl_bottom.png +0 -0
  64. data/public/images/growl/growl_repeat.png +0 -0
  65. data/public/images/growl/growl_top.png +0 -0
  66. data/public/images/growl/info.png +0 -0
  67. data/public/images/menu/item-pointer-mover.gif +0 -0
  68. data/public/images/menu/item-pointer.gif +0 -0
  69. data/public/images/menu/lava.gif +0 -0
  70. data/public/images/menu/lava.png +0 -0
  71. data/public/images/menu/main-bg.png +0 -0
  72. data/public/images/menu/main-delimiter.png +0 -0
  73. data/public/javascripts/galleries/configure_ckeditor.js +0 -8
  74. data/public/javascripts/jqUrl.js +0 -28
  75. data/public/javascripts/jquery-validate/additional-methods.js +0 -259
  76. data/public/javascripts/jquery-validate/changelog.txt +0 -239
  77. data/public/javascripts/jquery-validate/jquery.validate.js +0 -1146
  78. data/public/javascripts/jquery-validate/jquery.validate.min.js +0 -16
  79. data/public/javascripts/jquery-validate/jquery.validate.pack.js +0 -15
  80. data/public/javascripts/jquery-validate/lib/jquery-1.4.2.js +0 -6240
  81. data/public/javascripts/jquery-validate/lib/jquery.form.js +0 -660
  82. data/public/javascripts/jquery-validate/lib/jquery.js +0 -4376
  83. data/public/javascripts/jquery-validate/lib/jquery.metadata.js +0 -122
  84. data/public/javascripts/jquery-validate/localization/messages_ar.js +0 -24
  85. data/public/javascripts/jquery-validate/localization/messages_bg.js +0 -23
  86. data/public/javascripts/jquery-validate/localization/messages_cn.js +0 -23
  87. data/public/javascripts/jquery-validate/localization/messages_cs.js +0 -23
  88. data/public/javascripts/jquery-validate/localization/messages_da.js +0 -20
  89. data/public/javascripts/jquery-validate/localization/messages_de.js +0 -20
  90. data/public/javascripts/jquery-validate/localization/messages_el.js +0 -24
  91. data/public/javascripts/jquery-validate/localization/messages_es.js +0 -23
  92. data/public/javascripts/jquery-validate/localization/messages_fa.js +0 -23
  93. data/public/javascripts/jquery-validate/localization/messages_fi.js +0 -21
  94. data/public/javascripts/jquery-validate/localization/messages_fr.js +0 -23
  95. data/public/javascripts/jquery-validate/localization/messages_he.js +0 -23
  96. data/public/javascripts/jquery-validate/localization/messages_hu.js +0 -20
  97. data/public/javascripts/jquery-validate/localization/messages_it.js +0 -23
  98. data/public/javascripts/jquery-validate/localization/messages_kk.js +0 -23
  99. data/public/javascripts/jquery-validate/localization/messages_lt.js +0 -23
  100. data/public/javascripts/jquery-validate/localization/messages_lv.js +0 -23
  101. data/public/javascripts/jquery-validate/localization/messages_nl.js +0 -23
  102. data/public/javascripts/jquery-validate/localization/messages_no.js +0 -23
  103. data/public/javascripts/jquery-validate/localization/messages_pl.js +0 -23
  104. data/public/javascripts/jquery-validate/localization/messages_ptbr.js +0 -23
  105. data/public/javascripts/jquery-validate/localization/messages_ptpt.js +0 -23
  106. data/public/javascripts/jquery-validate/localization/messages_ro.js +0 -23
  107. data/public/javascripts/jquery-validate/localization/messages_ru.js +0 -23
  108. data/public/javascripts/jquery-validate/localization/messages_se.js +0 -21
  109. data/public/javascripts/jquery-validate/localization/messages_sk.js +0 -20
  110. data/public/javascripts/jquery-validate/localization/messages_tr.js +0 -23
  111. data/public/javascripts/jquery-validate/localization/messages_tw.js +0 -23
  112. data/public/javascripts/jquery-validate/localization/messages_ua.js +0 -23
  113. data/public/javascripts/jquery-validate/localization/methods_de.js +0 -12
  114. data/public/javascripts/jquery-validate/localization/methods_nl.js +0 -9
  115. data/public/javascripts/jquery-validate/localization/methods_pt.js +0 -9
  116. data/public/javascripts/jquery-validate/todo +0 -172
  117. data/public/javascripts/jquery.cookie.js +0 -96
  118. data/public/javascripts/jquery.filedrop.js +0 -253
  119. data/public/javascripts/jquery.growl.js +0 -143
  120. data/public/javascripts/jquery.hotkeys.js +0 -99
  121. data/public/javascripts/jquery.js +0 -6240
  122. data/public/javascripts/jquery.jstree.js +0 -3510
  123. data/public/javascripts/jquery.uploadify.js +0 -26
  124. data/public/javascripts/jquery.validate.js +0 -1147
  125. data/public/javascripts/loadbehind.js +0 -0
  126. data/public/javascripts/menu.js +0 -247
  127. data/public/javascripts/sitemap_jstree.js +0 -329
  128. data/public/javascripts/swfobject.js +0 -4
  129. data/public/jstree/_demo/_dump.sql +0 -20
  130. data/public/jstree/_demo/_inc/__mysql_errors.log +0 -0
  131. data/public/jstree/_demo/_inc/class._database.php +0 -146
  132. data/public/jstree/_demo/_inc/class._database_i.php +0 -152
  133. data/public/jstree/_demo/_inc/class.tree.php +0 -602
  134. data/public/jstree/_demo/_install.txt +0 -6
  135. data/public/jstree/_demo/config.php +0 -14
  136. data/public/jstree/_demo/index.html +0 -262
  137. data/public/jstree/_demo/server.php +0 -69
  138. data/public/jstree/_docs/!style.css +0 -37
  139. data/public/jstree/_docs/_drive.png +0 -0
  140. data/public/jstree/_docs/_html_data.html +0 -2
  141. data/public/jstree/_docs/_json_data.json +0 -4
  142. data/public/jstree/_docs/_search_data.json +0 -6
  143. data/public/jstree/_docs/_search_result.json +0 -1
  144. data/public/jstree/_docs/_xml_flat.xml +0 -12
  145. data/public/jstree/_docs/_xml_nest.xml +0 -18
  146. data/public/jstree/_docs/checkbox.html +0 -148
  147. data/public/jstree/_docs/contextmenu.html +0 -120
  148. data/public/jstree/_docs/cookies.html +0 -96
  149. data/public/jstree/_docs/core.html +0 -622
  150. data/public/jstree/_docs/crrm.html +0 -315
  151. data/public/jstree/_docs/dnd.html +0 -197
  152. data/public/jstree/_docs/hotkeys.html +0 -81
  153. data/public/jstree/_docs/html_data.html +0 -174
  154. data/public/jstree/_docs/index.html +0 -75
  155. data/public/jstree/_docs/json_data.html +0 -240
  156. data/public/jstree/_docs/languages.html +0 -138
  157. data/public/jstree/_docs/search.html +0 -114
  158. data/public/jstree/_docs/sort.html +0 -84
  159. data/public/jstree/_docs/syntax/!script.js +0 -2232
  160. data/public/jstree/_docs/syntax/!style.css +0 -511
  161. data/public/jstree/_docs/syntax/clipboard.swf +0 -0
  162. data/public/jstree/_docs/syntax/help.png +0 -0
  163. data/public/jstree/_docs/syntax/magnifier.png +0 -0
  164. data/public/jstree/_docs/syntax/page_white_code.png +0 -0
  165. data/public/jstree/_docs/syntax/page_white_copy.png +0 -0
  166. data/public/jstree/_docs/syntax/printer.png +0 -0
  167. data/public/jstree/_docs/syntax/wrapping.png +0 -0
  168. data/public/jstree/_docs/themeroller.html +0 -98
  169. data/public/jstree/_docs/themes.html +0 -126
  170. data/public/jstree/_docs/types.html +0 -173
  171. data/public/jstree/_docs/ui.html +0 -188
  172. data/public/jstree/_docs/unique.html +0 -70
  173. data/public/jstree/_docs/xml_data.html +0 -214
  174. data/public/jstree/_lib/jquery.cookie.js +0 -96
  175. data/public/jstree/_lib/jquery.hotkeys.js +0 -99
  176. data/public/jstree/_lib/jquery.js +0 -6240
  177. data/public/jstree/jquery.jstree.js +0 -3510
  178. data/public/jstree/jstree.html +0 -237
  179. data/public/jstree/themes/apple/bg.jpg +0 -0
  180. data/public/jstree/themes/apple/d.png +0 -0
  181. data/public/jstree/themes/apple/dot_for_ie.gif +0 -0
  182. data/public/jstree/themes/apple/style.css +0 -60
  183. data/public/jstree/themes/apple/throbber.gif +0 -0
  184. data/public/jstree/themes/classic/d.png +0 -0
  185. data/public/jstree/themes/classic/dot_for_ie.gif +0 -0
  186. data/public/jstree/themes/classic/style.css +0 -59
  187. data/public/jstree/themes/classic/throbber.gif +0 -0
  188. data/public/jstree/themes/default/d.gif +0 -0
  189. data/public/jstree/themes/default/d.png +0 -0
  190. data/public/jstree/themes/default/style.css +0 -73
  191. data/public/jstree/themes/default/throbber.gif +0 -0
  192. data/public/jstree/themes/default-rtl/d.gif +0 -0
  193. data/public/jstree/themes/default-rtl/d.png +0 -0
  194. data/public/jstree/themes/default-rtl/dots.gif +0 -0
  195. data/public/jstree/themes/default-rtl/style.css +0 -83
  196. data/public/jstree/themes/default-rtl/throbber.gif +0 -0
  197. data/public/stylesheets/dreamy.css +0 -183
  198. data/public/stylesheets/menu.css +0 -101
  199. data/public/stylesheets/sass/dreamy.sass +0 -165
  200. data/public/stylesheets/sass/menu.sass +0 -139
  201. data/public/stylesheets/sass/uploadify.sass +0 -52
  202. data/public/stylesheets/sass/wheels.sass +0 -25
  203. data/public/stylesheets/scaffold.css +0 -56
  204. data/public/stylesheets/ui-lightness/images/ui-anim_basic_16x16.gif +0 -0
  205. data/public/stylesheets/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  206. data/public/stylesheets/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  207. data/public/stylesheets/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
  208. data/public/stylesheets/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  209. data/public/stylesheets/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  210. data/public/stylesheets/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  211. data/public/stylesheets/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  212. data/public/stylesheets/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  213. data/public/stylesheets/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  214. data/public/stylesheets/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
  215. data/public/stylesheets/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
  216. data/public/stylesheets/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
  217. data/public/stylesheets/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
  218. data/public/stylesheets/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
  219. data/public/stylesheets/ui-lightness/jquery-ui-1.8.2.custom.css +0 -359
  220. data/public/stylesheets/ui-lightness/jquery-ui-1.8.4.custom.css +0 -549
  221. data/public/test.html +0 -18
  222. /data/lib/generators/{wheels/recipes → recipes}/cancan.rb +0 -0
  223. /data/lib/generators/{wheels/recipes → recipes}/cucumber.rb +0 -0
  224. /data/lib/generators/{wheels/recipes → recipes}/default.rb +0 -0
  225. /data/lib/generators/{wheels/recipes → recipes}/design.rb +0 -0
  226. /data/lib/generators/{wheels/recipes → recipes}/devise.rb +0 -0
  227. /data/lib/generators/{wheels/recipes → recipes}/factory_girl.rb +0 -0
  228. /data/lib/generators/{wheels/recipes → recipes}/haml.rb +0 -0
  229. /data/lib/generators/{wheels/recipes → recipes}/jquery.rb +0 -0
  230. /data/lib/generators/{wheels/recipes → recipes}/mongoid.rb +0 -0
  231. /data/lib/generators/{wheels/recipes → recipes}/postgresql.rb +0 -0
  232. /data/lib/generators/{wheels/recipes → recipes}/recipes.rb +0 -0
  233. /data/lib/generators/{wheels/recipes → recipes}/remarkable.rb +0 -0
  234. /data/lib/generators/{wheels/recipes → recipes}/rspec.rb +0 -0
  235. /data/lib/generators/{wheels/snippets → snippets}/cucumber/database_config +0 -0
  236. /data/lib/generators/{update_wheels/templates → templates}/cancan/ability.rb +0 -0
  237. /data/lib/generators/{update_wheels/templates → templates}/database/postgresql.yml +0 -0
  238. /data/lib/generators/{update_wheels/templates → templates}/git/gitignore +0 -0
  239. /data/lib/generators/{wheels/templates → templates}/haml/app/views/layouts/application.html.haml +0 -0
  240. /data/lib/generators/{update_wheels/templates → templates}/mongoid/features/step_definitions/mongoid_steps.rb +0 -0
  241. /data/lib/generators/{update_wheels/templates → templates}/mongoid/features/support/hooks.rb +0 -0
  242. /data/lib/generators/{update_wheels → wheels_update}/LICENCE +0 -0
  243. /data/lib/generators/{update_wheels → wheels_update}/USAGE +0 -0
@@ -1,239 +0,0 @@
1
- 1.7
2
- ---
3
- * Added Lithuanian (LT) localization
4
- * Added Greek (EL) localization (http://plugins.jquery.com/node/12319)
5
- * Added Latvian (LV) localization (http://plugins.jquery.com/node/12349)
6
- * Added Hebrew (HE) localization (http://plugins.jquery.com/node/12039)
7
- * Fixed Spanish (ES) localization (http://plugins.jquery.com/node/12696)
8
- * Added jQuery UI themerolled demo
9
- * Removed cmxform.js
10
- * Fixed four missing semicolons (http://plugins.jquery.com/node/12639)
11
- * Renamed phone-method in additional-methods.js to phoneUS
12
- * Added phoneUK and mobileUK methods to additional-methods.js (http://plugins.jquery.com/node/12359)
13
- * Deep extend options to avoid modifying multiple forms when using the rules-method on a single element (http://plugins.jquery.com/node/12411)
14
- * Bugfixes for compability with jQuery 1.4.2, while maintaining backwards-compability
15
-
16
- 1.6
17
- ---
18
- * Added Arabic (AR), Portuguese (PTPT), Persian (FA), Finnish (FI) and Bulgarian (BR) localization
19
- * Updated Swedish (SE) localization (some missing html iso characters)
20
- * Fixed $.validator.addMethod to properly handle empty string vs. undefined for the message argument
21
- * Fixed two accidental global variables
22
- * Enhanced min/max/rangeWords (in additional-methods.js) to strip html before counting; good when counting words in a richtext editor
23
- * Added localized methods for DE, NL and PT, removing the dateDE and numberDE methods (use messages_de.js and methods_de.js with date and number methods instead)
24
- * Fixed remote form submit synchronization, kudos to Matas Petrikas
25
- * Improved interactive select validation, now validating also on click (via option or select, inconsistent across browsers); doesn't work in Safari, which doesn't trigger a click event at all on select elements; fixes http://plugins.jquery.com/node/11520
26
- * Updated to latest form plugin (2.36), fixing http://plugins.jquery.com/node/11487
27
- * Bind to blur event for equalTo target to revalidate when that target changes, fixes http://plugins.jquery.com/node/11450
28
- * Simplified select validation, delegating to jQuery's val() method to get the select value; should fix http://plugins.jquery.com/node/11239
29
- * Fixed default message for digits (http://plugins.jquery.com/node/9853)
30
- * Fixed issue with cached remote message (http://plugins.jquery.com/node/11029 and http://plugins.jquery.com/node/9351)
31
- * Fixed a missing semicolon in additional-methods.js (http://plugins.jquery.com/node/9233)
32
- * Added automatic detection of substitution parameters in messages, removing the need to provide format functions (http://plugins.jquery.com/node/11195)
33
- * Fixed an issue with :filled/:blank somewhat caused by Sizzle (http://plugins.jquery.com/node/11144)
34
- * Added an integer method to additional-methods.js (http://plugins.jquery.com/node/9612)
35
- * Fixed errorsFor method where the for-attribute contains characters that need escaping to be valid inside a selector (http://plugins.jquery.com/node/9611)
36
-
37
- 1.5.5
38
- ---
39
- * Fix for http://plugins.jquery.com/node/8659
40
- * Fixed trailing comma in messages_cs.js
41
-
42
- 1.5.4
43
- ---
44
- * Fixed remote method bug (http://plugins.jquery.com/node/8658)
45
-
46
- 1.5.3
47
- ---
48
- * Fixed a bug related to the wrapper-option, where all ancestor-elements that matched the wrapper-option where selected (http://plugins.jquery.com/node/7624)
49
- * Updated multipart demo to use latest jQuery UI accordion
50
- * Added dateNL and time methods to additionalMethods.js
51
- * Added Traditional Chinese (Taiwan, tw) and Kazakhstan (KK) localization
52
- * Moved jQuery.format (fomerly String.format) to jQuery.validator.format, jQuery.format is deprecated and will be removed in 1.6 (see http://code.google.com/p/jquery-utils/issues/detail?id=15 for details)
53
- * Cleaned up messages_pl.js and messages_ptbr.js (still defined messages for max/min/rangeValue, which were removed in 1.4)
54
- * Fixed flawed boolean logic in valid-plugin-method for multiple elements; now all elements need to be valid for a boolean-true result (http://plugins.jquery.com/node/8481)
55
- * Enhancement $.validator.addMethod: An undefined third message-argument won't overwrite an existing message (http://plugins.jquery.com/node/8443)
56
- * Enhancement to submitHandler option: When used, click events on submit buttons are captured and the submitting button is inserted into the form before calling submitHandler, and removed afterwards; keeps submit buttons intact (http://plugins.jquery.com/node/7183#comment-3585)
57
- * Added option validClass, default "valid", which adds that class to all valid elements, after validation (http://dev.jquery.com/ticket/2205)
58
- * Added creditcardtypes method to additionalMethods.js, including tests (via http://dev.jquery.com/ticket/3635)
59
- * Improved remote method to allow serverside message as a string, or true for valid, or false for invalid using the clientside defined message (http://dev.jquery.com/ticket/3807)
60
- * Improved accept method to also accept a Drupal-style comma-seperated list of values (http://plugins.jquery.com/node/8580)
61
-
62
- 1.5.2
63
- ---
64
- * Fixed messages in additional-methods.js for maxWords, minWords, and rangeWords to include call to $.format
65
- * Fixed value passed to methods to exclude carriage return (\r), same as jQuery's val() does
66
- * Added slovak (sk) localization
67
- * Added demo for intergration with jQuery UI tabs
68
- * Added selects-grouping example to tabs demo (see second tab, birthdate field)
69
-
70
- 1.5.1
71
- ---
72
- * Updated marketo demo to use invalidHandler option instead of binding invalid-form event
73
- * Added TinyMCE integration example
74
- * Added ukrainian (ua) localization
75
- * Fixed length validation to work with trimmed value (regression from 1.5 where general trimming before validation was removed)
76
- * Various small fixes for compability with both 1.2.6 and 1.3
77
-
78
- 1.5
79
- ---
80
- * Improved basic demo, validating confirm-password field after password changed
81
- * Fixed basic validation to pass the untrimmed input value as the first parameter to validation methods, changed required accordingly; breaks existing custom method that rely on the trimming
82
- * Added norwegian (no), italian (it), hungarian (hu) and romanian (ro) localization
83
- * Fixed #3195: Two flaws in swedish localization
84
- * Fixed #3503: Extended rules("add") to accept messages propery: use to specify add custom messages to an element via rules("add", { messages: { required: "Required! " } });
85
- * Fixed #3356: Regression from #2908 when using meta-option
86
- * Fixed #3370: Added ignoreTitle option, set to skip reading messages from the title attribute, helps to avoid issues with Google Toolbar; default is false for compability
87
- * Fixed #3516: Trigger invalid-form event even when remote validation is involved
88
- * Added invalidHandler option as a shortcut to bind("invalid-form", function() {})
89
- * Fixed Safari issue for loading indicator in ajaxSubmit-integration-demo (append to body first, then hide)
90
- * Added test for creditcard validation and improved default message
91
- * Enhanced remote validation, accepting options to passthrough to $.ajax as paramter (either url string or options, including url property plus everything else that $.ajax supports)
92
-
93
- 1.4
94
- ---
95
- * Fixed #2931, validate elements in document order and ignore type=image inputs
96
- * Fixed usage of $ and jQuery variables, now fully comptible with all variations of noConflict usage
97
- * Implemented #2908, enabling custom messages via metadata ala class="{required:true,messages:{required:'required field'}}", added demo/custom-messages-metadata-demo.html
98
- * Removed deprecated methods minValue (min), maxValue (max), rangeValue (rangevalue), minLength (minlength), maxLength (maxlength), rangeLength (rangelength)
99
- * Fixed #2215 regression: Call unhighlight only for current elements, not everything
100
- * Implemented #2989, enabling image button to cancel validation
101
- * Fixed issue where IE incorrectly validates against maxlength=0
102
- * Added czech (cs) localization
103
- * Reset validator.submitted on validator.resetForm(), enabling a full reset when necessary
104
- * Fixed #3035, skipping all falsy attributes when reading rules (0, undefined, empty string), removed part of the maxlength workaround (for 0)
105
- * Added dutch (nl) localization (#3201)
106
-
107
- 1.3
108
- ---
109
- * Fixed invalid-form event, now only triggered when form is invalid
110
- * Added spanish (es), russian (ru), portuguese brazilian (ptbr), turkish (tr), and polish (pl) localization
111
- * Added removeAttrs plugin to facilate adding and removing multiple attributes
112
- * Added groups option to display a single message for multiple elements, via groups: { arbitraryGroupName: "fieldName1 fieldName2[, fieldNameN" }
113
- * Enhanced rules() for adding and removing (static) rules: rules("add", "method1[, methodN]"/{method1:param[, method_n:param]}) and rules("remove"[, "method1[, method_n]")
114
- * Enhanced rules-option, accepts space-seperated string-list of methods, eg. {birthdate: "required date"}
115
- * Fixed checkbox group validation with inline rules: As long as the rules are specified on the first element, the group is now properly validated on click
116
- * Fixed #2473, ignoring all rules with an explicit parameter of boolean-false, eg. required:false is the same as not specifying required at all (it was handled as required:true so far)
117
- * Fixed #2424, with a modified patch from #2473: Methods returning a dependency-mismatch don't stop other rules from being evaluated anymore; still, success isn't applied for optional fields
118
- * Fixed url and email validation to not use trimmed values
119
- * Fixed creditcard validation to accept only digits and dashes ("asdf" is not a valid creditcard number)
120
- * Allow both button and input elements for cancel buttons (via class="cancel")
121
- * Fixed #2215: Fixed message display to call unhighlight as part of showing and hiding messages, no more visual side-effects while checking an element and extracted validator.checkForm to validate a form without UI sideeffects
122
- * Rewrote custom selectors (:blank, :filled, :unchecked) with functions for compability with AIR
123
-
124
- 1.2.1
125
- -----
126
-
127
- * Bundled delegeate plugin with validate plugin - its always required anyway
128
- * Improved remote validation to include parts from the ajaxQueue plugin for proper synchronization (no additional plugin necessary)
129
- * Fixed stopRequest to prevent pendingRequest < 0
130
- * Added jQuery.validator.autoCreateRanges property, defaults to false, enable to convert min/max to range and minlength/maxlength to rangelength; this basically fixes the issue introduced by automatically creating ranges in 1.2
131
- * Fixed optional-methods to not highlight anything at all if the field is blank, that is, don't trigger success
132
- * Allow false/null for highlight/unhighlight options instead of forcing a do-nothing-callback even when nothing needs to be highlighted
133
- * Fixed validate() call with no elements selected, returning undefined instead of throwing an error
134
- * Improved demo, replacing metadata with classes/attributes for specifying rules
135
- * Fixed error when no custom message is used for remote validation
136
- * Modified email and url validation to require domain label and top label
137
- * Fixed url and email validation to require TLD (actually to require domain label); 1.2 version (TLD is optional) is moved to additionals as url2 and email2
138
- * Fixed dynamic-totals demo in IE6/7 and improved templating, using textarea to store multiline template and string interpolation
139
- * Added login form example with "Email password" link that makes the password field optional
140
- * Enhanced dynamic-totals demo with an example of a single message for two fields
141
-
142
- 1.2
143
- ---
144
-
145
- * Added AJAX-captcha validation example (based on http://psyrens.com/captcha/)
146
- * Added remember-the-milk-demo (thanks RTM team for the permission!)
147
- * Added marketo-demo (thanks Glen Lipka!)
148
- * Added support for ajax-validation, see method "remote"; serverside returns JSON, true for valid elements, false or a String for invalid, String is used as message
149
- * Added highlight and unhighlight options, by default toggles errorClass on element, allows custom highlighting
150
- * Added valid() plugin method for easy programmatic checking of forms and fields without the need to use the validator API
151
- * Added rules() plguin method to read and write rules for an element (currently read only)
152
- * Replaced regex for email method, thanks to the contribution by Scott Gonzalez, see http://projects.scottsplayground.com/email_address_validation/
153
- * Restructured event architecture to rely solely on delegation, both improving performance, and ease-of-use for the developer (requires jquery.delegate.js)
154
- * Moved documentation from inline to http://docs.jquery.com/Plugins/Validation - including interactive examples for all methods
155
- * Removed validator.refresh(), validation is now completey dynamic
156
- * Renamed minValue to min, maxValue to max and rangeValue to range, deprecating the previous names (to be removed in 1.3)
157
- * Renamed minLength to minlength, maxLength to maxlength and rangeLength to rangelength, deprecating the previous names (to be removed in 1.3)
158
- * Added feature to merge min + max into and range and minlength + maxlength into rangelength
159
- * Added support for dynamic rule parameters, allowing to specify a function as a parameter eg. for minlength, called when validating the element
160
- * Allow to specify null or an empty string as a message to display nothing (see marketo demo)
161
- * Rules overhaul: Now supports combination of rules-option, metadata, classes (new) and attributes (new), see rules() for details
162
-
163
- 1.1.2
164
- ---
165
-
166
- * Replaced regex for URL method, thanks to the contribution by Scott Gonzalez, see http://projects.scottsplayground.com/iri/
167
- * Improved email method to better handle unicode characters
168
- * Fixed error container to hide when all elements are valid, not only on form submit
169
- * Fixed String.format to jQuery.format (moving into jQuery namespace)
170
- * Fixed accept method to accept both upper and lowercase extensions
171
- * Fixed validate() plugin method to create only one validator instance for a given form and always return that one instance (avoids binding events multiple times)
172
- * Changed debug-mode console log from "error" to "warn" level
173
-
174
- 1.1.1
175
- -----
176
-
177
- * Fixed invalid XHTML, preventing error label creation in IE since jQuery 1.1.4
178
- * Fixed and improved String.format: Global search & replace, better handling of array arguments
179
- * Fixed cancel-button handling to use validator-object for storing state instead of form element
180
- * Fixed name selectors to handle "complex" names, eg. containing brackets ("list[]")
181
- * Added button and disabled elements to exclude from validation
182
- * Moved element event handlers to refresh to be able to add handlers to new elements
183
- * Fixed email validation to allow long top level domains (eg. ".travel")
184
- * Moved showErrors() from valid() to form()
185
- * Added validator.size(): returns the number of current errors
186
- * Call submitHandler with validator as scope for easier access of it's methods, eg. to find error labels using errorsFor(Element)
187
- * Compatible with jQuery 1.1.x and 1.2.x
188
-
189
- 1.1
190
- ---
191
-
192
- * Added validation on blur, keyup and click (for checkboxes and radiobutton). Replaces event-option.
193
- * Fixed resetForm
194
- * Fixed custom-methods-demo
195
-
196
- 1.0
197
- ---
198
-
199
- * Improved number and numberDE methods to check for correct decimal numbers with delimiters
200
- * Only elements that have rules are checked (otherwise success-option is applied to all elements)
201
- * Added creditcard number method (thanks to Brian Klug)
202
- * Added ignore-option, eg. ignore: "[@type=hidden]", using that expression to exclude elements to validate. Default: none, though submit and reset buttons are always ignored
203
- * Heavily enhanced Functions-as-messages by providing a flexible String.format helper
204
- * Accept Functions as messages, providing runtime-custom-messages
205
- * Fixed exclusion of elements without rules from successList
206
- * Fixed custom-method-demo, replaced the alert with message displaying the number of errors
207
- * Fixed form-submit-prevention when using submitHandler
208
- * Completely removed dependency on element IDs, though they are still used (when present) to link error labels to inputs. Achieved by using
209
- an array with {name, message, element} instead of an object with id:message pairs for the internal errorList.
210
- * Added support for specifying simple rules as simple strings, eg. "required" is equivalent to {required: true}
211
- * Added feature: Add errorClass to invalid field�s parent element, making it easy to style the label/field container or the label for the field.
212
- * Added feature: focusCleanup - If enabled, removes the errorClass from the invalid elements and hides all errors messages whenever the element is focused.
213
- * Added success option to show the a field was validated successfully
214
- * Fixed Opera select-issue (avoiding a attribute-collision)
215
- * Fixed problems with focussing hidden elements in IE
216
- * Added feature to skip validation for submit buttons with class "cancel"
217
- * Fixed potential issues with Google Toolbar by prefering plugin option messages over title attribute
218
- * submitHandler is only called when an actual submit event was handled, validator.form() returns false only for invalid forms
219
- * Invalid elements are now focused only on submit or via validator.focusInvalid(), avoiding all trouble with focus-on-blur
220
- * IE6 error container layout issue is solved
221
- * Customize error element via errorElement option
222
- * Added validator.refresh() to find new inputs in the form
223
- * Added accept validation method, checks file extensions
224
- * Improved dependecy feature by adding two custom expressions: ":blank" to select elements with an empty value and �:filled� to select elements with a value, both excluding whitespace
225
- * Added a resetForm() method to the validator: Resets each form element (using the form plugin, if available), removes classes on invalid elements and hides all error messages
226
- * Fixed docs for validator.showErrors()
227
- * Fixed error label creation to always use html() instead of text(), allowing arbitrary HTML passed in as messages
228
- * Fixed error label creation to use specified error class
229
- * Added dependency feature: The requires method accepts both String (jQuery expressions) and Functions as the argument
230
- * Heavily improved customizing of error message display: Use normal messages and show/hide an additional container; Completely replace message display with own mechanism (while being able to delegate to the default handler; Customize placing of generated labels (instead of default below-element)
231
- * Fixed two major bugs in IE (error containers) and Opera (metadata)
232
- * Modified validation methods to accept empty fields as valid (exception: of course �required� and also �equalTo� methods)
233
- * Renamed "min" to "minLength", "max" to "maxLength", "length" to "rangeLength"
234
- * Added "minValue", "maxValue" and "rangeValue"
235
- * Streamlined API for support of different events. The default, submit, can be disabled. If any event is specified, that is applied to each element (instead of the entire form). Combining keyup-validation with submit-validation is now extremely easy to setup
236
- * Added support for one-message-per-rule when defining messages via plugin settings
237
- * Added support to wrap metadata in some parent element. Useful when metadata is used for other plugins, too.
238
- * Refactored tests and demos: Less files, better demos
239
- * Improved documentation: More examples for methods, more reference texts explaining some basics