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,126 +0,0 @@
1
- <!DOCTYPE html
2
- PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
- <html xmlns="http://www.w3.org/1999/xhtml">
5
- <head>
6
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
- <title>jsTree v.1.0 - themes documentation</title>
8
- <script type="text/javascript" src="../_lib/jquery.js"></script>
9
- <script type="text/javascript" src="../_lib/jquery.cookie.js"></script>
10
- <script type="text/javascript" src="../_lib/jquery.hotkeys.js"></script>
11
- <script type="text/javascript" src="../jquery.jstree.js"></script>
12
-
13
- <link type="text/css" rel="stylesheet" href="syntax/!style.css"/>
14
- <link type="text/css" rel="stylesheet" href="!style.css"/>
15
- <script type="text/javascript" src="syntax/!script.js"></script>
16
- </head>
17
- <body>
18
- <div id="container">
19
-
20
- <h1>jsTree v.1.0 - themes plugin</h1>
21
- <h2>Description</h2>
22
- <div id="description">
23
- <p>The <code>themes</code> plugin controls the looks of jstree - without this plugin you will get a functional tree, but it will look just like an ordinary UL list.</p>
24
- </div>
25
-
26
- <h2 id="configuration">Configuration</h2>
27
- <div class="panel configuration">
28
- <h3>theme</h3>
29
- <p class="meta">A string. Default is <code>"default"</code>.</p>
30
- <p>The name of the theme to use to style the tree.</p>
31
-
32
- <h3>url</h3>
33
- <p class="meta">A string (or <code>false</code> if not used). Default is <code>false</code>.</p>
34
- <p>The location of the theme's CSS file, if set to <code>false</code> jstree will look for the file in <code><em>&lt; theme folder &gt;</em>/themes/<em>&lt; theme name &gt;</em>/style.css</code>. You can set the theme folder using <code>$.jstree._themes = "PATH/TO/FOLDER/";</code>, otherwise it is autodetected as <code><em>&lt;jquery.tree.js location&gt;</em>/themes/</code>.</p>
35
-
36
- <h3>dots</h3>
37
- <p class="meta">A Boolean. Default is <code>true</code>.</p>
38
- <p>Whether to show the connecting dots or not.</p>
39
-
40
- <h3>icons</h3>
41
- <p class="meta">A Boolean. Default is <code>true</code>.</p>
42
- <p>Whether to show the node icons or not.</p>
43
-
44
- </div>
45
-
46
- <h2 id="demos">Demos</h2>
47
- <div class="panel">
48
-
49
- <h3>Using the themes plugin</h3>
50
- <input type="button" class="button" value="toggle_dots" id="toggle_dots" style="float:left;" />
51
- <input type="button" class="button" value="toggle_icons" id="toggle_icons" style="float:left;" />
52
- <input type="button" class="button" value="set_theme1" id="set_theme1" style="float:left;" />
53
- <input type="button" class="button" value="set_theme2" id="set_theme2" style="" />
54
- <div id="demo1" class="demo">
55
- <ul>
56
- <li id="phtml_1">
57
- <a href="#">Root node 1</a>
58
- <ul>
59
- <li id="phtml_2">
60
- <a href="#">Child node 1</a>
61
- </li>
62
- <li id="phtml_3">
63
- <a href="#">Child node 2</a>
64
- </li>
65
- </ul>
66
- </li>
67
- <li id="phtml_4">
68
- <a href="#">Root node 2</a>
69
- </li>
70
- </ul>
71
- </div>
72
- <script type="text/javascript" class="source">
73
- $(function () {
74
- $("#toggle_dots, #toggle_icons").click(function () {
75
- $("#demo1").jstree(this.value);
76
- });
77
- $("#set_theme1").click(function () {
78
- $("#demo1").jstree("set_theme","apple");
79
- });
80
- $("#set_theme2").click(function () {
81
- $("#demo1").jstree("set_theme","default");
82
- });
83
- $("#demo1").jstree({
84
- "themes" : {
85
- "theme" : "default",
86
- "dots" : false,
87
- "icons" : false
88
- },
89
- "plugins" : [ "themes", "html_data" ]
90
- });
91
- });
92
- </script>
93
-
94
- </div>
95
-
96
- <h2 id="api">API</h2>
97
- <div class="panel api">
98
-
99
- <h3 id="set_theme">.set_theme ( name , url )</h3>
100
- <p>Set the tree's theme. Triggers an event.</p>
101
- <ul class="arguments">
102
- <li>
103
- <code class="tp">string</code> <strong>name</strong>
104
- <p>The name of the theme to use to style the tree.</p>
105
- </li>
106
- <li>
107
- <code class="tp">string</code> <strong>url</strong>
108
- <p>The location of the theme's CSS file, if omitted jstree will look for the file in:<br /><code><em>&lt; theme folder &gt;</em>/themes/<em>&lt; name &gt;</em>/style.css</code>.<br />You can set the theme folder using:<br /><code>$.jstree._themes = "PATH/TO/FOLDER/";</code>, otherwise it is autodetected as <code><em>&lt;jquery.tree.js location&gt;</em>/themes/</code>.</p>
109
- </li>
110
- </ul>
111
- <h3 id="get_theme">.get_theme ( )</h3>
112
- <p>Returns the name of the currently active theme.</p>
113
-
114
- <div style="height:1px; visibility:hidden;"><span id="hide_dots">&nbsp;</span><span id="toggle_dots">&nbsp;</span></div>
115
- <h3 id="show_dots">.show_dots ( ), .hide_dots ( ), .toggle_dots ( )</h3>
116
- <p>Show, hide or toggle the visibility of the dots connecting the tree's nodes.</p>
117
-
118
- <div style="height:1px; visibility:hidden;"><span id="hide_icons">&nbsp;</span><span id="toggle_icons">&nbsp;</span></div>
119
- <h3 id="show_icons">.show_icons ( ), .hide_icons ( ), .toggle_icons ( )</h3>
120
- <p>Show, hide or toggle the visibility of the icons next to the title of each the tree node.</p>
121
-
122
- </div>
123
-
124
- </div>
125
- </body>
126
- </html>
@@ -1,173 +0,0 @@
1
- <!DOCTYPE html
2
- PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
- <html xmlns="http://www.w3.org/1999/xhtml">
5
- <head>
6
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
- <title>jsTree v.1.0 - types documentation</title>
8
- <script type="text/javascript" src="../_lib/jquery.js"></script>
9
- <script type="text/javascript" src="../_lib/jquery.cookie.js"></script>
10
- <script type="text/javascript" src="../_lib/jquery.hotkeys.js"></script>
11
- <script type="text/javascript" src="../jquery.jstree.js"></script>
12
-
13
- <link type="text/css" rel="stylesheet" href="syntax/!style.css"/>
14
- <link type="text/css" rel="stylesheet" href="!style.css"/>
15
- <script type="text/javascript" src="syntax/!script.js"></script>
16
- </head>
17
- <body>
18
- <div id="container">
19
-
20
- <h1>jsTree v.1.0 - types plugin</h1>
21
- <h2>Description</h2>
22
- <div id="description">
23
- <p>The <code>types</code> enables node types - each node can have a type, and you can define rules on how that type should behave - maximum children count, maximum depth, valid children types, selectable or not, etc.</p>
24
- </div>
25
-
26
- <h2 id="configuration">Configuration</h2>
27
- <div class="panel configuration">
28
-
29
- <h3>max_children</h3>
30
- <p class="meta">A number. Default is <code>-1</code>.</p>
31
- <p>Defines maximum number of root nodes (<code>-1</code> means unlimited, <code>-2</code> means disable max_children checking in the tree).</p>
32
-
33
- <h3>max_depth</h3>
34
- <p class="meta">A number. Default is <code>-1</code>.</p>
35
- <p>Defines maximum depth of the tree (<code>-1</code> means unlimited, <code>-2</code> means disable max_depth checking in the tree).</p>
36
-
37
- <h3>valid_children</h3>
38
- <p class="meta">A string or array. Default is <code>"all"</code>.</p>
39
- <p>Defines valid root node types (could be <code>"all"</code>, <code>"none"</code>, or an array of type strings).</p>
40
-
41
- <h3>type_attr</h3>
42
- <p class="meta">A string. Default is <code>"rel"</code>.</p>
43
- <p>Defines the attribute on each <code>li</code> node, where the type attribute will be stored.</p>
44
-
45
- <h3>types</h3>
46
- <p class="meta">An object.</p>
47
- <p>Defines all the active types in the tree. Each key is the type name, and each value represents the rules for this type. A <code>default</code> type is defined - all nodes with no explicit type set are treated as if they were of the <code>default</code> type.</p>
48
- <div style="border:1px solid gray;">
49
- <pre class="brush:js">
50
- types : {
51
- // the default type
52
- "default" : {
53
- "max_children" : -1,
54
- "max_depth" : -1,
55
- "valid_children": "all"
56
-
57
- // Bound functions - you can bind any other function here (using boolean or function)
58
- //"select_node" : true,
59
- //"open_node" : true,
60
- //"close_node" : true,
61
- //"create_node" : true,
62
- //"delete_node" : true
63
- }
64
- }
65
- </pre>
66
- </div>
67
- <p>For <code>max_children</code>, <code>max_depth</code> &amp; <code>valid_children</code> use the same values as for the tree, but the value you set will only apply for that node type.</p>
68
- <p>You can set an <code>icon</code> key - it should be an object consisting of two keys - <code>image</code> (string - location of the image to be used as an icon) &amp; <code>position</code> (string - left and top pixels of the image - 10px 40px, only useful when using sprites - omit otherwise).</p>
69
- <p>You can set more keys in that object - each key should be a function name, and each value - either a boolean (in order to allow or disallow that operation, on that node type) or a function. If you supply a function - your function will be called with two arguments - the name of the called function (the key) and the arguments passed to that function - you can then decide whether to return <code>true</code> or <code>false</code>.</p>
70
- <p class="note">For any type - for now you can control only functions that take the node being manipulated as the first argument.</p>
71
-
72
- </div>
73
-
74
- <h2 id="demos">Demos</h2>
75
- <div class="panel">
76
- <h3>Using the types plugin</h3>
77
-
78
- <div id="demo1" class="demo">
79
- <ul>
80
- <li id="phtml_1" rel="root">
81
- <a href="#">Root node 1</a>
82
- <ul>
83
- <li id="phtml_2">
84
- <a href="#">Child node 1</a>
85
- </li>
86
- <li id="phtml_3">
87
- <a href="#">Child node 2</a>
88
- </li>
89
- </ul>
90
- </li>
91
- <li id="phtml_4" rel="root">
92
- <a href="#">Root node 2</a>
93
- </li>
94
- </ul>
95
- </div>
96
- <script type="text/javascript" class="source">
97
- $(function () {
98
- $("#demo1").jstree({
99
- "types" : {
100
- "valid_children" : [ "root" ],
101
- "types" : {
102
- "root" : {
103
- "icon" : {
104
- "image" : "http://static.jstree.com/v.1.0rc/_docs/_drive.png"
105
- },
106
- "valid_children" : [ "default" ],
107
- "max_depth" : 2,
108
- "hover_node" : false,
109
- "select_node" : function () {return false;}
110
- },
111
- "default" : {
112
- "valid_children" : [ "default" ]
113
- }
114
- }
115
- },
116
- "plugins" : ["themes","html_data","dnd","ui","types"]
117
- });
118
- });
119
- </script>
120
-
121
- </div>
122
-
123
- <h2 id="api">API</h2>
124
- <div class="panel api">
125
-
126
- <h3 id="_get_type">._get_type ( node )</h3>
127
- <p>Get the type of a node.</p>
128
- <ul class="arguments">
129
- <li>
130
- <code class="tp">mixed</code> <strong>node</strong>
131
- <p>This can be a DOM node, jQuery node or selector pointing to the element.</p>
132
- </li>
133
- </ul>
134
-
135
- <h3 id="set_type">.set_type ( type , node )</h3>
136
- <p>Set the type of a node.</p>
137
- <ul class="arguments">
138
- <li>
139
- <code class="tp">string</code> <strong>type</strong>
140
- <p>The new type.</p>
141
- </li>
142
- <li>
143
- <code class="tp">mixed</code> <strong>node</strong>
144
- <p>This can be a DOM node, jQuery node or selector pointing to the element.</p>
145
- </li>
146
- </ul>
147
-
148
- <h3 id="_check">._check ( rule , node , opts )</h3>
149
- <p>Checks a rule on a give node. Used mostly internally.</p>
150
- <ul class="arguments">
151
- <li>
152
- <code class="tp">string</code> <strong>rule</strong>
153
- <p>The rule to check.</p>
154
- </li>
155
- <li>
156
- <code class="tp">mixed</code> <strong>node</strong>
157
- <p>This can be a DOM node, jQuery node or selector pointing to the element.</p>
158
- </li>
159
- <li>
160
- <code class="tp">mixed</code> <strong>opts</strong>
161
- <p>Any additional options regarding the rule. Used internally.</p>
162
- </li>
163
- </ul>
164
-
165
- <div style="height:1px; visibility:hidden;"><span id="check_move">&nbsp;</span></div>
166
- <h3 id="create_node">.create_node ( ), .check_move ( )</h3>
167
- <p>Both functions are overwritten to accomodate the new functionality presented by the plugin.</p>
168
-
169
- </div>
170
-
171
- </div>
172
- </body>
173
- </html>
@@ -1,188 +0,0 @@
1
- <!DOCTYPE html
2
- PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
- <html xmlns="http://www.w3.org/1999/xhtml">
5
- <head>
6
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
- <title>jsTree v.1.0 - UI documentation</title>
8
- <script type="text/javascript" src="../_lib/jquery.js"></script>
9
- <script type="text/javascript" src="../_lib/jquery.cookie.js"></script>
10
- <script type="text/javascript" src="../_lib/jquery.hotkeys.js"></script>
11
- <script type="text/javascript" src="../jquery.jstree.js"></script>
12
-
13
- <link type="text/css" rel="stylesheet" href="syntax/!style.css"/>
14
- <link type="text/css" rel="stylesheet" href="!style.css"/>
15
- <script type="text/javascript" src="syntax/!script.js"></script>
16
- </head>
17
- <body>
18
- <div id="container">
19
-
20
- <h1>jsTree v.1.0 - UI plugin</h1>
21
- <h2>Description</h2>
22
- <div id="description">
23
- <p>The <code>UI</code> plugin handles selecting, deselecting and hovering tree items.</p>
24
- </div>
25
-
26
- <h2 id="configuration">Configuration</h2>
27
- <div class="panel configuration">
28
- <h3>select_limit</h3>
29
- <p class="meta">A number. Default is <code>-1</code>.</p>
30
- <p>Defines how many nodes can be selected at a given time (<code>-1</code> means unlimited).</p>
31
-
32
- <h3>select_multiple_modifier</h3>
33
- <p class="meta">A string. Default is <code>"ctrl"</code>.</p>
34
- <p>The special key used to make a click add to the selection and not replace it (<code>"ctrl"</code>, <code>"shift"</code>, <code>"alt"</code>, <code>"meta"</code>).<br />You can also set this to <code>"on"</code> making every click add to the selection.</p>
35
-
36
- <h3>selected_parent_close</h3>
37
- <p class="meta">A string (or <code>false</code>). Default is <code>"select_parent"</code>.</p>
38
- <p>What action to take when a selected node's parent is closed (making the selected node invisible). Possible values are <code>false</code> - do nothing, <code>"select_parent"</code> - select the closed node's parent and <code>"deselect"</code> - deselect the node.</p>
39
-
40
- <h3>select_prev_on_delete</h3>
41
- <p class="meta">A boolean. Default is <code>true</code>.</p>
42
- <p>If set to <code>true</code> when a selected node is deleted, its previous sibling (or parent) is selected.</p>
43
-
44
- <h3>disable_selecting_children</h3>
45
- <p class="meta">A boolean. Default is <code>false</code>.</p>
46
- <p>If set to <code>true</code> you will not be able to select children of already selected nodes.</p>
47
-
48
- <h3>initially_select</h3>
49
- <p class="meta">An array. Default is <code>[]</code>.</p>
50
- <p>Defines which nodes are to be automatically selected when the tree finishes loading - a list of IDs is expected.</p>
51
-
52
- </div>
53
-
54
- <h2 id="demos">Demos</h2>
55
- <div class="panel">
56
-
57
- <h3>Using the UI plugin</h3>
58
- <div id="demo1" class="demo">
59
- <ul>
60
- <li id="phtml_1">
61
- <a href="#">Root node 1</a>
62
- <ul>
63
- <li id="phtml_2">
64
- <a href="#">Child node 1</a>
65
- </li>
66
- <li id="phtml_3">
67
- <a href="#">Child node 2</a>
68
- </li>
69
- </ul>
70
- </li>
71
- <li id="phtml_4">
72
- <a href="#">Root node 2</a>
73
- </li>
74
- </ul>
75
- </div>
76
- <script type="text/javascript" class="source">
77
- $(function () {
78
- $("#demo1").jstree({
79
- "ui" : {
80
- "select_limit" : 2,
81
- "select_multiple_modifier" : "alt",
82
- "selected_parent_close" : "select_parent",
83
- "initially_select" : [ "phtml_2" ]
84
- },
85
- "core" : { "initially_open" : [ "phtml_1" ] },
86
- "plugins" : [ "themes", "html_data", "ui" ]
87
- });
88
- });
89
- </script>
90
-
91
- </div>
92
-
93
- <h2 id="api">API</h2>
94
- <div class="panel api">
95
-
96
- <h3 id="_get_node">._get_node ( node , allow_multiple )</h3>
97
- <p>Overrides the function form the <a href="core.html#_get_node">core</a> module.<br />if <code>node</code> is <code>undefined</code> or <code>null</code> and <code>allow_multiple</code> is <code>true</code> all the currently selected nodes are returned<br />if <code>node</code> is <code>undefined</code> or <code>null</code> and <code>allow_multiple</code> is NOT <code>true</code> only the last selected node is returned.</p>
98
- <ul class="arguments">
99
- <li>
100
- <code class="tp">mixed</code> <strong>node</strong>
101
- <p>This can be a DOM node, jQuery node or selector pointing to an element within the tree.</p>
102
- </li>
103
- <li>
104
- <code class="tp">boolean</code> <strong>allow_multiple</strong>
105
- <p>Whether to return all selected nodes or only the last selected one if <code>node</code> is <code>null</code>.</p>
106
- </li>
107
- </ul>
108
-
109
- <h3 id="save_selected">.save_selected ( )</h3>
110
- <p>Saves away the current selection state of the tree (saves it in a variable, so do not expect a restore after a refresh - for that functionality refer to the <a href="cookies.html">cookies plugin</a>. Used mostly internally. Triggers an event.</p>
111
-
112
- <h3 id="reselect">.reselect ( )</h3>
113
- <p>Restores the state of the tree using the variable saved in the above function. Used mostly internally. Triggers an event.</p>
114
-
115
- <h3 id="refresh">.refresh ( node )</h3>
116
- <p>Overrides the function form the <a href="core.html#refresh">core</a> module.<br />Enables saving the selection state before the refresh and restoring it afterwards.</p>
117
-
118
- <h3 id="hover_node">.hover_node ( node )</h3>
119
- <p>Sets the specified node as hovered. Triggers an event.</p>
120
- <ul class="arguments">
121
- <li>
122
- <code class="tp">mixed</code> <strong>node</strong>
123
- <p>This can be a DOM node, jQuery node or selector pointing to an element within the tree.</p>
124
- </li>
125
- </ul>
126
-
127
- <h3 id="dehover_node">.dehover_node ( )</h3>
128
- <p>Removes the hover state from the currently hovered node (if there is one). Triggers an event.</p>
129
-
130
-
131
- <h3 id="select_node">.select_node ( node , check , event )</h3>
132
- <ul class="arguments">
133
- <li>
134
- <code class="tp">mixed</code> <strong>node</strong>
135
- <p>This can be a DOM node, jQuery node or selector pointing to an element within the tree.</p>
136
- </li>
137
- <li>
138
- <code class="tp">bool</code> <strong>check</strong>
139
- <p>Whether to check the specified rules and do appropriate actions (check <code>select_limit</code>, deselect other nodes respectively, etc) or to just force selection of the node regardless of <code>select_limit</code>.</p>
140
- </li>
141
- <li>
142
- <code class="tp">event</code> <strong>event</strong>
143
- <p>Used internally - when a click on a node caused this function to be executed.</p>
144
- </li>
145
- </ul>
146
-
147
- <div style="height:1px; visibility:hidden; overflow:hidden;"><span id="toggle_select">&#160;</span></div>
148
- <h3 id="deselect_node">.deselect_node ( node ), .toggle_select ( node )</h3>
149
- <p>There functions control the selected state on a node. <code>deselect_node</code> triggers an event.</p>
150
- <ul class="arguments">
151
- <li>
152
- <code class="tp">mixed</code> <strong>node</strong>
153
- <p>This can be a DOM node, jQuery node or selector pointing to an element within the tree.</p>
154
- </li>
155
- </ul>
156
-
157
- <h3 id="deselect_all">.deselect_all ( context )</h3>
158
- <p>Deselects all selected nodes. If context is set - only the selected nodes within that context are deselected. Triggers an event.</p>
159
- <ul class="arguments">
160
- <li>
161
- <code class="tp">mixed</code> <strong>context</strong>
162
- <p>This can be a DOM node, jQuery node or selector pointing to an element within the tree.</p>
163
- </li>
164
- </ul>
165
-
166
- <h3 id="get_selected">.get_selected ( context )</h3>
167
- <p>Returns all selected nodes. If context is set - only the selected nodes within that context are returned.</p>
168
- <ul class="arguments">
169
- <li>
170
- <code class="tp">mixed</code> <strong>context</strong>
171
- <p>This can be a DOM node, jQuery node or selector pointing to an element within the tree.</p>
172
- </li>
173
- </ul>
174
-
175
- <h3 id="is_selected">.is_selected ( node )</h3>
176
- <p>Returns whether the specified node is selected or not.</p>
177
- <ul class="arguments">
178
- <li>
179
- <code class="tp">mixed</code> <strong>node</strong>
180
- <p>This can be a DOM node, jQuery node or selector pointing to an element within the tree.</p>
181
- </li>
182
- </ul>
183
-
184
- </div>
185
-
186
- </div>
187
- </body>
188
- </html>
@@ -1,70 +0,0 @@
1
- <!DOCTYPE html
2
- PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
- <html xmlns="http://www.w3.org/1999/xhtml">
5
- <head>
6
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
- <title>jsTree v.1.0 - unique documentation</title>
8
- <script type="text/javascript" src="../_lib/jquery.js"></script>
9
- <script type="text/javascript" src="../_lib/jquery.cookie.js"></script>
10
- <script type="text/javascript" src="../_lib/jquery.hotkeys.js"></script>
11
- <script type="text/javascript" src="../jquery.jstree.js"></script>
12
-
13
- <link type="text/css" rel="stylesheet" href="syntax/!style.css"/>
14
- <link type="text/css" rel="stylesheet" href="!style.css"/>
15
- <script type="text/javascript" src="syntax/!script.js"></script>
16
- </head>
17
- <body>
18
- <div id="container">
19
-
20
- <h1>jsTree v.1.0 - unique plugin</h1>
21
- <h2>Description</h2>
22
- <div id="description">
23
- <p>The <code>unique</code> plugin prevents from nodes with same titles coexisting (create/move/rename) in the same parent.</p>
24
- </div>
25
-
26
- <h2 id="demos">Demos</h2>
27
- <div class="panel">
28
- <p>Try moving the child nodes together (drag'n'drop).</p>
29
-
30
- <h3>Using the unique plugin</h3>
31
- <div id="demo1" class="demo">
32
- <ul>
33
- <li id="phtml_1">
34
- <a href="#">Root node 1</a>
35
- <ul>
36
- <li id="phtml_2">
37
- <a href="#">Child node 1</a>
38
- </li>
39
- </ul>
40
- </li>
41
- <li id="phtml_4">
42
- <a href="#">Root node 2</a>
43
- <ul>
44
- <li id="phtml_3">
45
- <a href="#">Child node 1</a>
46
- </li>
47
- </ul>
48
- </li>
49
- </ul>
50
- </div>
51
- <script type="text/javascript" class="source">
52
- $(function () {
53
- $("#demo1").jstree({
54
- "plugins" : [ "themes", "html_data", "dnd", "unique" ]
55
- });
56
- });
57
- </script>
58
-
59
- </div>
60
-
61
- <h2 id="api">API</h2>
62
- <div class="panel api">
63
-
64
- <h3 id="save_cookie">._check_unique ( names, siblings )</h3>
65
- <p>Used internally - checks the names array against the sibling nodes for matches.</p>
66
- </div>
67
-
68
- </div>
69
- </body>
70
- </html>