wheels 0.0.48 → 0.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/app/controllers/access_control_entries_controller.rb +4 -4
- data/app/controllers/external_links_controller.rb +5 -0
- data/app/controllers/feedbacks_controller.rb +10 -0
- data/app/controllers/menus_controller.rb +2 -0
- data/app/controllers/pages_controller.rb +16 -29
- data/app/controllers/sitemaps_controller.rb +135 -0
- data/app/helpers/application_helper.rb +4 -3
- data/app/helpers/external_links_helper.rb +2 -0
- data/app/helpers/feedbacks_helper.rb +2 -0
- data/app/helpers/menus_helper.rb +2 -0
- data/app/helpers/sitemaps_helper.rb +12 -0
- data/app/mailers/feedback_mailer.rb +10 -0
- data/app/models/ability.rb +2 -1
- data/app/models/access_control_entry.rb +17 -15
- data/app/models/external_link.rb +4 -0
- data/app/models/feedback.rb +13 -0
- data/app/models/image.rb +1 -1
- data/app/models/menu.rb +4 -0
- data/app/models/page.rb +2 -5
- data/app/models/sitemap.rb +153 -0
- data/app/models/user.rb +7 -1
- data/app/validators/email_validator.rb +22 -0
- data/app/views/access_control_entries/_form.html.haml +1 -1
- data/app/views/access_control_entries/_index.html.haml +3 -3
- data/app/views/access_control_entries/_show.html.haml +1 -1
- data/app/views/external_links/_fields_for.html.haml +2 -0
- data/app/views/external_links/_form.html.haml +18 -0
- data/app/views/external_links/_show.html.haml +7 -0
- data/app/views/external_links/edit.html.haml +7 -0
- data/app/views/external_links/index.html.haml +23 -0
- data/app/views/external_links/new.html.haml +5 -0
- data/app/views/external_links/show.html.haml +2 -0
- data/app/views/feedback_mailer/submit_feedback.html.haml +22 -0
- data/app/views/feedbacks/_form.html.haml +37 -0
- data/app/views/feedbacks/index.html.haml +27 -0
- data/app/views/feedbacks/new.html.haml +5 -0
- data/app/views/feedbacks/show.html.haml +19 -0
- data/app/views/layouts/application.html.haml +21 -16
- data/app/views/layouts/bare.html.haml +2 -0
- data/app/views/loadbehind/_view.js.haml +1 -2
- data/app/views/menus/_form.html.haml +13 -0
- data/app/views/menus/edit.html.haml +7 -0
- data/app/views/menus/index.html.haml +19 -0
- data/app/views/menus/new.html.haml +5 -0
- data/app/views/menus/show.html.haml +7 -0
- data/app/views/pages/_child_pages_links.html.haml +1 -1
- data/app/views/pages/_control_panel.html.haml +1 -6
- data/app/views/pages/_form.html.haml +2 -2
- data/app/views/pages/_form_fields.html.haml +7 -2
- data/app/views/pages/_show.html.haml +4 -0
- data/app/views/pages/create.js.haml +2 -1
- data/app/views/pages/destroy.js.haml +3 -0
- data/app/views/pages/edit.js.haml +4 -0
- data/app/views/pages/index.html.haml +4 -2
- data/app/views/pages/index.js.haml +3 -0
- data/app/views/pages/new.js.haml +3 -0
- data/app/views/pages/show.html.haml +2 -10
- data/app/views/pages/show.js.haml +3 -0
- data/app/views/pages/update.js.haml +2 -2
- data/app/views/sitemaps/edit.html.haml +12 -0
- data/app/views/sitemaps/edit.js.erb +0 -0
- data/app/views/sitemaps/index.html.haml +93 -0
- data/app/views/sitemaps/index.json.erb +23 -0
- data/app/views/sitemaps/new.html.haml +8 -0
- data/app/views/sitemaps/new.js.erb +0 -0
- data/app/views/users/edit.html.haml +45 -0
- data/db/migrate/{add_fields_to_users.rb → 0010_add_fields_to_users.rb} +0 -0
- data/db/migrate/{create_blogs.rb → 0020_create_blogs.rb} +0 -0
- data/db/migrate/{create_galleries.rb → 0030_create_galleries.rb} +0 -0
- data/db/migrate/{create_images.rb → 0040_create_images.rb} +0 -0
- data/db/migrate/{create_profiles.rb → 0050_create_profiles.rb} +0 -0
- data/db/migrate/{insert_admin_user_and_roles.rb → 0060_insert_admin_user_and_roles.rb} +0 -0
- data/db/migrate/{create_pages.rb → 0070_create_pages.rb} +0 -0
- data/db/migrate/{create_forums.rb → 0080_create_forums.rb} +0 -0
- data/db/migrate/{create_discussions.rb → 0090_create_discussions.rb} +0 -0
- data/db/migrate/{create_forum_messages.rb → 0100_create_forum_messages.rb} +0 -0
- data/db/migrate/{create_access_control_entries.rb → 0110_create_access_control_entries.rb} +3 -3
- data/db/migrate/{create_attachments.rb → 0120_create_attachments.rb} +0 -4
- data/db/migrate/{create_roles.rb → 0130_create_roles.rb} +0 -0
- data/db/migrate/0140_create_feedbacks.rb +20 -0
- data/db/migrate/0150_create_external_links.rb +14 -0
- data/db/migrate/0160_create_sitemaps.rb +17 -0
- data/db/migrate/0170_create_menus.rb +14 -0
- data/lib/development_mail_interceptor.rb +7 -0
- data/lib/generators/wheels/recipes/wheels.rb +18 -12
- data/lib/wheels/base.rb +7 -0
- data/lib/wheels/routes.rb +8 -3
- data/lib/wheels.rb +2 -0
- data/public/javascripts/jquery-validate/additional-methods.js +259 -0
- data/public/javascripts/jquery-validate/changelog.txt +239 -0
- data/public/javascripts/jquery-validate/jquery.validate.js +1146 -0
- data/public/javascripts/jquery-validate/jquery.validate.min.js +16 -0
- data/public/javascripts/jquery-validate/jquery.validate.pack.js +15 -0
- data/public/javascripts/jquery-validate/lib/jquery-1.4.2.js +6240 -0
- data/public/javascripts/jquery-validate/lib/jquery.form.js +660 -0
- data/public/javascripts/jquery-validate/lib/jquery.js +4376 -0
- data/public/javascripts/jquery-validate/lib/jquery.metadata.js +122 -0
- data/public/javascripts/jquery-validate/localization/messages_ar.js +24 -0
- data/public/javascripts/jquery-validate/localization/messages_bg.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_cn.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_cs.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_da.js +20 -0
- data/public/javascripts/jquery-validate/localization/messages_de.js +20 -0
- data/public/javascripts/jquery-validate/localization/messages_el.js +24 -0
- data/public/javascripts/jquery-validate/localization/messages_es.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_fa.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_fi.js +21 -0
- data/public/javascripts/jquery-validate/localization/messages_fr.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_he.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_hu.js +20 -0
- data/public/javascripts/jquery-validate/localization/messages_it.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_kk.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_lt.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_lv.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_nl.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_no.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_pl.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_ptbr.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_ptpt.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_ro.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_ru.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_se.js +21 -0
- data/public/javascripts/jquery-validate/localization/messages_sk.js +20 -0
- data/public/javascripts/jquery-validate/localization/messages_tr.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_tw.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_ua.js +23 -0
- data/public/javascripts/jquery-validate/localization/methods_de.js +12 -0
- data/public/javascripts/jquery-validate/localization/methods_nl.js +9 -0
- data/public/javascripts/jquery-validate/localization/methods_pt.js +9 -0
- data/public/javascripts/jquery-validate/todo +172 -0
- data/public/javascripts/jquery.cookie.js +96 -0
- data/public/javascripts/jquery.filedrop.js +253 -0
- data/public/javascripts/jquery.hotkeys.js +99 -0
- data/public/javascripts/jquery.js +6240 -0
- data/public/javascripts/jquery.jstree.js +3510 -0
- data/public/javascripts/jquery.uploadify.js +26 -0
- data/public/javascripts/jquery.validate.js +1147 -0
- data/public/javascripts/sitemap_jstree.js +329 -0
- data/public/javascripts/swfobject.js +4 -0
- data/public/jstree/_demo/_dump.sql +20 -0
- data/public/jstree/_demo/_inc/__mysql_errors.log +0 -0
- data/public/jstree/_demo/_inc/class._database.php +146 -0
- data/public/jstree/_demo/_inc/class._database_i.php +152 -0
- data/public/jstree/_demo/_inc/class.tree.php +602 -0
- data/public/jstree/_demo/_install.txt +6 -0
- data/public/jstree/_demo/config.php +14 -0
- data/public/jstree/_demo/index.html +262 -0
- data/public/jstree/_demo/server.php +69 -0
- data/public/jstree/_docs/!style.css +37 -0
- data/public/jstree/_docs/_drive.png +0 -0
- data/public/jstree/_docs/_html_data.html +2 -0
- data/public/jstree/_docs/_json_data.json +4 -0
- data/public/jstree/_docs/_search_data.json +6 -0
- data/public/jstree/_docs/_search_result.json +1 -0
- data/public/jstree/_docs/_xml_flat.xml +12 -0
- data/public/jstree/_docs/_xml_nest.xml +18 -0
- data/public/jstree/_docs/checkbox.html +148 -0
- data/public/jstree/_docs/contextmenu.html +120 -0
- data/public/jstree/_docs/cookies.html +96 -0
- data/public/jstree/_docs/core.html +622 -0
- data/public/jstree/_docs/crrm.html +315 -0
- data/public/jstree/_docs/dnd.html +197 -0
- data/public/jstree/_docs/hotkeys.html +81 -0
- data/public/jstree/_docs/html_data.html +174 -0
- data/public/jstree/_docs/index.html +75 -0
- data/public/jstree/_docs/json_data.html +240 -0
- data/public/jstree/_docs/languages.html +138 -0
- data/public/jstree/_docs/search.html +114 -0
- data/public/jstree/_docs/sort.html +84 -0
- data/public/jstree/_docs/syntax/!script.js +2232 -0
- data/public/jstree/_docs/syntax/!style.css +511 -0
- data/public/jstree/_docs/syntax/clipboard.swf +0 -0
- data/public/jstree/_docs/syntax/help.png +0 -0
- data/public/jstree/_docs/syntax/magnifier.png +0 -0
- data/public/jstree/_docs/syntax/page_white_code.png +0 -0
- data/public/jstree/_docs/syntax/page_white_copy.png +0 -0
- data/public/jstree/_docs/syntax/printer.png +0 -0
- data/public/jstree/_docs/syntax/wrapping.png +0 -0
- data/public/jstree/_docs/themeroller.html +98 -0
- data/public/jstree/_docs/themes.html +126 -0
- data/public/jstree/_docs/types.html +173 -0
- data/public/jstree/_docs/ui.html +188 -0
- data/public/jstree/_docs/unique.html +70 -0
- data/public/jstree/_docs/xml_data.html +214 -0
- data/public/jstree/_lib/jquery.cookie.js +96 -0
- data/public/jstree/_lib/jquery.hotkeys.js +99 -0
- data/public/jstree/_lib/jquery.js +6240 -0
- data/public/jstree/jquery.jstree.js +3510 -0
- data/public/jstree/jstree.html +237 -0
- data/public/jstree/themes/apple/bg.jpg +0 -0
- data/public/jstree/themes/apple/d.png +0 -0
- data/public/jstree/themes/apple/dot_for_ie.gif +0 -0
- data/public/jstree/themes/apple/style.css +60 -0
- data/public/jstree/themes/apple/throbber.gif +0 -0
- data/public/jstree/themes/classic/d.png +0 -0
- data/public/jstree/themes/classic/dot_for_ie.gif +0 -0
- data/public/jstree/themes/classic/style.css +59 -0
- data/public/jstree/themes/classic/throbber.gif +0 -0
- data/public/jstree/themes/default/d.gif +0 -0
- data/public/jstree/themes/default/d.png +0 -0
- data/public/jstree/themes/default/style.css +73 -0
- data/public/jstree/themes/default/throbber.gif +0 -0
- data/public/jstree/themes/default-rtl/d.gif +0 -0
- data/public/jstree/themes/default-rtl/d.png +0 -0
- data/public/jstree/themes/default-rtl/dots.gif +0 -0
- data/public/jstree/themes/default-rtl/style.css +83 -0
- data/public/jstree/themes/default-rtl/throbber.gif +0 -0
- data/public/stylesheets/sass/dreamy.sass +21 -56
- data/public/stylesheets/sass/menu.sass +43 -9
- data/public/stylesheets/sass/uploadify.sass +52 -0
- data/public/stylesheets/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
- data/public/stylesheets/ui-lightness/jquery-ui-1.8.4.custom.css +549 -0
- data/wheels.gemspec +187 -15
- metadata +188 -16
|
@@ -0,0 +1,120 @@
|
|
|
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 - contextmenu 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 - contextmenu plugin</h1>
|
|
21
|
+
<h2>Description</h2>
|
|
22
|
+
<div id="description">
|
|
23
|
+
<p>The <code>contextmenu</code> plugin enables a contextual menu to be shown, when the user right-clicks a node (or when triggered programatically by the developer).</p>
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
<h2 id="configuration">Configuration</h2>
|
|
27
|
+
<div class="panel configuration">
|
|
28
|
+
<h3>select_node</h3>
|
|
29
|
+
<p class="meta">Boolean. Default is <code>false</code>.</p>
|
|
30
|
+
<p>Whether to select the right clicked node when showing the context menu. If this is set to <code>true</code> and the node is not selected all currently selected nodes will be deselected.</p>
|
|
31
|
+
|
|
32
|
+
<h3>show_at_node</h3>
|
|
33
|
+
<p class="meta">Boolean. Default is <code>true</code>.</p>
|
|
34
|
+
<p>Whether to show the context menu just below the node, or at the clicked point exactly.</p>
|
|
35
|
+
|
|
36
|
+
<h3>items</h3>
|
|
37
|
+
<p>Expects an object or a function, which should return an object. If a function is used it fired in the tree's context and receives one argument - the node that was right clicked. The object format is:</p>
|
|
38
|
+
<div style="border:1px solid gray">
|
|
39
|
+
<pre class="brush:js">
|
|
40
|
+
{
|
|
41
|
+
// Some key
|
|
42
|
+
"rename" : {
|
|
43
|
+
// The item label
|
|
44
|
+
"label" : "Rename",
|
|
45
|
+
// The function to execute upon a click
|
|
46
|
+
"action" : function (obj) { this.rename(obj); },
|
|
47
|
+
// All below are optional
|
|
48
|
+
"_disabled" : true, // clicking the item won't do a thing
|
|
49
|
+
"_class" : "class", // class is applied to the item LI node
|
|
50
|
+
"separator_before" : false, // Insert a separator before the item
|
|
51
|
+
"separator_after" : true, // Insert a separator after the item
|
|
52
|
+
// false or string - if does not contain `/` - used as classname
|
|
53
|
+
"icon" : false,
|
|
54
|
+
"submenu" : {
|
|
55
|
+
/* Collection of objects (the same structure) */
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
/* MORE ENTRIES ... */
|
|
59
|
+
}
|
|
60
|
+
</pre>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
|
|
64
|
+
<h2 id="demos">Demos</h2>
|
|
65
|
+
<div class="panel">
|
|
66
|
+
|
|
67
|
+
<h3>Using the contextmenu</h3>
|
|
68
|
+
<div id="demo1" class="demo">
|
|
69
|
+
<ul>
|
|
70
|
+
<li id="phtml_1">
|
|
71
|
+
<a href="#">Root node 1</a>
|
|
72
|
+
<ul>
|
|
73
|
+
<li id="phtml_2">
|
|
74
|
+
<a href="#">Child node 1</a>
|
|
75
|
+
</li>
|
|
76
|
+
<li id="phtml_3">
|
|
77
|
+
<a href="#">Child node 2</a>
|
|
78
|
+
</li>
|
|
79
|
+
</ul>
|
|
80
|
+
</li>
|
|
81
|
+
<li id="phtml_4">
|
|
82
|
+
<a href="#">Root node 2</a>
|
|
83
|
+
</li>
|
|
84
|
+
</ul>
|
|
85
|
+
</div>
|
|
86
|
+
<script type="text/javascript" class="source">
|
|
87
|
+
$(function () {
|
|
88
|
+
$("#demo1").jstree({
|
|
89
|
+
"plugins" : [ "themes", "html_data", "ui", "crrm", "contextmenu" ]
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
</script>
|
|
93
|
+
|
|
94
|
+
</div>
|
|
95
|
+
|
|
96
|
+
<h2 id="api">API</h2>
|
|
97
|
+
<div class="panel api">
|
|
98
|
+
|
|
99
|
+
<h3 id="show_contextmenu">.show_contextmenu ( node , x, y )</h3>
|
|
100
|
+
<p>Shows the contextmenu next to a node. Triggered automatically when right-clicking a node.</p>
|
|
101
|
+
<ul class="arguments">
|
|
102
|
+
<li>
|
|
103
|
+
<code class="tp">mixed</code> <strong>node</strong>
|
|
104
|
+
<p>This can be a DOM node, jQuery node or selector pointing to an element within the tree.</p>
|
|
105
|
+
</li>
|
|
106
|
+
<li>
|
|
107
|
+
<code class="tp">number</code> <strong>x</strong>
|
|
108
|
+
<p>The X-coordinate to show the menu at - may be overwritten by <code>show_at_node</code>. If you omit this the menu is shown aligned with the left of the node.</p>
|
|
109
|
+
</li>
|
|
110
|
+
<li>
|
|
111
|
+
<code class="tp">number</code> <strong>y</strong>
|
|
112
|
+
<p>The Y-coordinate to show the menu at - may be overwritten by <code>show_at_node</code>. If you omit this the menu is shown just below the node.</p>
|
|
113
|
+
</li>
|
|
114
|
+
</ul>
|
|
115
|
+
|
|
116
|
+
</div>
|
|
117
|
+
|
|
118
|
+
</div>
|
|
119
|
+
</body>
|
|
120
|
+
</html>
|
|
@@ -0,0 +1,96 @@
|
|
|
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 - cookies 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 - cookies plugin</h1>
|
|
21
|
+
<h2>Description</h2>
|
|
22
|
+
<div id="description">
|
|
23
|
+
<p>The <code>cookies</code> enables jstree to save the state of the tree across sessions. What this does is save the opened and selected nodes in a cookie, and reopen & reselect them the next time the user loads the tree. Depends on the <a href="http://plugins.jquery.com/project/cookie">jQuery.cookie</a> plugin.</p>
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
<h2 id="configuration">Configuration</h2>
|
|
27
|
+
<div class="panel configuration">
|
|
28
|
+
|
|
29
|
+
<h3>save_opened</h3>
|
|
30
|
+
<p class="meta">A string (or <code>false</code>). Default is <code>"jstree_open"</code>.</p>
|
|
31
|
+
<p>The name of the cookie to save opened nodes in. If set to <code>false</code> - opened nodes won't be saved.</p>
|
|
32
|
+
|
|
33
|
+
<h3>save_selected</h3>
|
|
34
|
+
<p class="meta">A string (or <code>false</code>). Default is <code>"jstree_select"</code>.</p>
|
|
35
|
+
<p>The name of the cookie to save selected nodes in. If set to <code>false</code> - selected nodes won't be saved.</p>
|
|
36
|
+
|
|
37
|
+
<h3>auto_save</h3>
|
|
38
|
+
<p class="meta">A Boolean. Default is <code>true</code>.</p>
|
|
39
|
+
<p>If set to <code>true</code> jstree will automatically update the cookies every time a change in the state occurs.</p>
|
|
40
|
+
|
|
41
|
+
<h3>cookie_options</h3>
|
|
42
|
+
<p class="meta">An object. Default is <code>{}</code>.</p>
|
|
43
|
+
<p>The options accepted by the <a href="http://plugins.jquery.com/project/cookie">jQuery.cookie</a> plugin.</p>
|
|
44
|
+
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
<h2 id="demos">Demos</h2>
|
|
48
|
+
<div class="panel">
|
|
49
|
+
<p>Check your data plugin documentation (<a href="html_data.html">html_data</a>, <a href="xml_data.html">xml_data</a>, <a href="json_data.html">json_data</a>) or take a close look at these examples for information on how to specify multilanguage nodes.</p>
|
|
50
|
+
|
|
51
|
+
<h3>Using the cookies plugin</h3>
|
|
52
|
+
<p>Go ahead and make changes to the tree and then <a href="javascript:document.location.reload();">refresh this page</a>.</p>
|
|
53
|
+
<div id="demo1" class="demo">
|
|
54
|
+
<ul>
|
|
55
|
+
<li id="phtml_1">
|
|
56
|
+
<a href="#">Root node 1</a>
|
|
57
|
+
<ul>
|
|
58
|
+
<li id="phtml_2">
|
|
59
|
+
<a href="#">Child node 1</a>
|
|
60
|
+
</li>
|
|
61
|
+
<li id="phtml_3">
|
|
62
|
+
<a href="#">Child node 2</a>
|
|
63
|
+
</li>
|
|
64
|
+
</ul>
|
|
65
|
+
</li>
|
|
66
|
+
<li id="phtml_4">
|
|
67
|
+
<a href="#">Root node 2</a>
|
|
68
|
+
</li>
|
|
69
|
+
</ul>
|
|
70
|
+
</div>
|
|
71
|
+
<script type="text/javascript" class="source">
|
|
72
|
+
$(function () {
|
|
73
|
+
$("#demo1").jstree({
|
|
74
|
+
"plugins" : [ "themes", "html_data", "ui", "cookies" ]
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
</script>
|
|
78
|
+
|
|
79
|
+
</div>
|
|
80
|
+
|
|
81
|
+
<h2 id="api">API</h2>
|
|
82
|
+
<div class="panel api">
|
|
83
|
+
|
|
84
|
+
<h3 id="save_cookie">.save_cookie ( event )</h3>
|
|
85
|
+
<p>Save the current state.</p>
|
|
86
|
+
<ul class="arguments">
|
|
87
|
+
<li>
|
|
88
|
+
<code class="tp">string</code> <strong>event</strong>
|
|
89
|
+
<p>Used internally with the <code>auto_save</code> option. Do not set this manually.</p>
|
|
90
|
+
</li>
|
|
91
|
+
</ul>
|
|
92
|
+
</div>
|
|
93
|
+
|
|
94
|
+
</div>
|
|
95
|
+
</body>
|
|
96
|
+
</html>
|