forgeos_core 1.9.1 → 1.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING +339 -0
- data/COPYING.LESSER +165 -0
- data/app/assets/images/forgeos/dataTables/Sorting icons.psd +0 -0
- data/app/assets/images/forgeos/dataTables/back_disabled.jpg +0 -0
- data/app/assets/images/forgeos/dataTables/back_enabled.jpg +0 -0
- data/app/assets/images/forgeos/dataTables/favicon.ico +0 -0
- data/app/assets/images/forgeos/dataTables/forward_disabled.jpg +0 -0
- data/app/assets/images/forgeos/dataTables/forward_enabled.jpg +0 -0
- data/app/assets/images/forgeos/dataTables/sort_asc.png +0 -0
- data/app/assets/images/forgeos/dataTables/sort_asc_disabled.png +0 -0
- data/app/assets/images/forgeos/dataTables/sort_both.png +0 -0
- data/app/assets/images/forgeos/dataTables/sort_desc.png +0 -0
- data/app/assets/images/forgeos/dataTables/sort_desc_disabled.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/bubble-quantity-products.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/check-checked.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/check-unchecked.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/context.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/create.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/dark-blue-minus.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/dark-blue-plus.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/dot.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/f.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/fminus.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/fminus_rtl.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/folder.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/fplus.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/fplus_rtl.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/lastli.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/lastli_rtl.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/li.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/remove.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/rename.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/association_categories/throbber.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/brown-minus.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/brown-plus.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/bubble-quantity-elements.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/context.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/create.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/dot.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/f.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/fminus.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/fminus_rtl.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/fplus.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/fplus_rtl.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/images.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/lastli.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/lastli_rtl.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/li.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/remove.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/rename.png +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/categories/throbber.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/marker.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/marker_rtl.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/plus.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/remove.gif +0 -0
- data/app/assets/{stylesheets → images}/forgeos/jstree/themes/remove.png +0 -0
- data/app/assets/javascripts/forgeos/admin/functions/forgeos_core/commons.js +8 -3
- data/app/assets/javascripts/forgeos/admin/functions/forgeos_core/dataTable.js +2 -2
- data/app/assets/javascripts/forgeos/admin/functions/forgeos_core/tinyMCE.js +1 -1
- data/app/assets/javascripts/forgeos/admin/functions/forgeos_core/trees.js +202 -257
- data/app/assets/javascripts/forgeos/admin/inits/forgeos_core/left-sidebar.js +16 -23
- data/app/assets/javascripts/forgeos/admin/inits/forgeos_core/settings.js +5 -5
- data/app/assets/javascripts/forgeos/admin/inits/forgeos_core/tabs.js +3 -3
- data/app/assets/javascripts/forgeos/admin/inits/forgeos_core/trees.js +2 -45
- data/app/assets/javascripts/forgeos/jquery.dataTables.min.js +138 -529
- data/app/assets/javascripts/forgeos/jstree/jquery.jstree.js +4544 -0
- data/app/assets/stylesheets/forgeos/admin/forgeos_core/_lightbox.css.sass +2 -21
- data/app/assets/stylesheets/forgeos/admin/forgeos_core/_settings.css.sass +77 -39
- data/app/assets/stylesheets/forgeos/dataTables/demo_table.css +150 -27
- data/app/assets/stylesheets/forgeos/jstree/themes/association_categories/style.css.sass +36 -154
- data/app/assets/stylesheets/forgeos/jstree/themes/categories/style.css.sass +59 -58
- data/app/controllers/admin/accounts_controller.rb +1 -1
- data/app/controllers/admin/administrators_controller.rb +13 -4
- data/app/controllers/admin/attachments_controller.rb +7 -3
- data/app/controllers/admin/base_controller.rbc +1305 -0
- data/app/controllers/admin/categories_controller.rb +1 -1
- data/app/controllers/admin/dashboard_controller.rbc +361 -0
- data/app/controllers/admin/person_sessions_controller.rbc +1248 -0
- data/app/controllers/admin/rights_controller.rb +6 -6
- data/app/controllers/admin/roles_controller.rb +8 -3
- data/app/controllers/admin/users_controller.rb +12 -6
- data/app/controllers/forgeos/application_controller.rb +1 -2
- data/app/controllers/forgeos/application_controller.rbc +2027 -0
- data/app/helpers/admin/attachment_helper.rbc +2340 -0
- data/app/helpers/admin/base_helper.rb +0 -15
- data/app/helpers/admin/base_helper.rbc +2522 -0
- data/app/helpers/forgeos/application_helper.rbc +3152 -0
- data/app/models/administrator.rbc +415 -0
- data/app/models/category.rb +3 -3
- data/app/models/person.rb +5 -9
- data/app/models/person.rbc +1498 -0
- data/app/models/person_session.rbc +142 -0
- data/app/models/right.rbc +432 -0
- data/app/models/role.rbc +469 -0
- data/app/models/setting.rbc +699 -0
- data/app/views/admin/accounts/_form.html.haml +1 -1
- data/app/views/admin/administrators/activate.js.erb +1 -0
- data/app/views/admin/administrators/destroy.js.erb +1 -0
- data/app/views/admin/administrators/index.json.erb +10 -12
- data/app/views/admin/attachments/_form.html.haml +2 -2
- data/app/views/admin/attachments/destroy.js.erb +1 -0
- data/app/views/admin/attachments/index.json.erb +4 -5
- data/app/views/admin/categories/_associated_elements.html.haml +4 -8
- data/app/views/admin/categories/index.json.erb +1 -1
- data/app/views/admin/rights/destroy.js.erb +1 -0
- data/app/views/admin/rights/index.json.erb +5 -6
- data/app/views/admin/roles/activate.js.erb +1 -0
- data/app/views/admin/roles/destroy.js.erb +1 -0
- data/app/views/admin/roles/index.json.erb +10 -12
- data/app/views/admin/settings/_tabs.html.haml +0 -6
- data/app/views/admin/settings/edit.html.haml +19 -16
- data/app/views/admin/sidebars/_attachments_popups.html.haml +1 -1
- data/app/views/admin/sidebars/_left_sidebar.html.haml +2 -2
- data/app/views/admin/users/activate.js.erb +1 -0
- data/app/views/admin/users/destroy.js.erb +1 -0
- data/app/views/admin/users/index.json.erb +8 -11
- data/app/views/admin/visual/_visual_popup.html.haml +2 -2
- data/app/views/admin/visual/_visuals_popup.html.haml +1 -1
- data/app/views/layouts/admin.html.haml +5 -4
- data/app/views/layouts/admin_login.html.haml +3 -3
- data/config/initializers/load_settings.rbc +330 -0
- data/config/routes.rb +5 -8
- data/config/routes.rbc +2203 -0
- data/lib/extensions/form_helper_extensions.rb +2 -2
- data/lib/extensions/form_helper_extensions.rbc +295 -0
- data/lib/extensions/i18n_fallbacks_config.rbc +246 -0
- data/lib/extensions.rbc +126 -0
- data/lib/forgeos/core/engine.rbc +316 -0
- data/lib/forgeos/core.rbc +325 -0
- data/lib/forgeos.rbc +1942 -0
- data/lib/forgeos_core.rbc +53 -0
- data/lib/map_fields.rbc +4437 -0
- data/lib/sortable_attachments.rbc +1399 -0
- data/lib/sphinx_globalize.rbc +785 -0
- metadata +286 -53
- data/app/assets/javascripts/forgeos/jstree/jquery.tree.js +0 -2061
- data/app/assets/javascripts/forgeos/jstree/plugins/jquery.tree.contextmenu.js +0 -129
- data/app/assets/javascripts/forgeos/jstree/plugins/jquery.tree.cookie.js +0 -70
- data/app/assets/stylesheets/forgeos/jquery.selectbox.css +0 -75
- data/app/assets/stylesheets/forgeos/jstree/themes/categories/style.css +0 -106
- data/app/assets/stylesheets/forgeos/jstree/tree_component.css.sass +0 -204
@@ -1,129 +0,0 @@
|
|
1
|
-
(function ($) {
|
2
|
-
$.extend($.tree.plugins, {
|
3
|
-
"contextmenu" : {
|
4
|
-
object : $("<ul id='jstree-contextmenu' class='tree-context' />"),
|
5
|
-
data : {
|
6
|
-
t : false,
|
7
|
-
a : false,
|
8
|
-
r : false
|
9
|
-
},
|
10
|
-
|
11
|
-
defaults : {
|
12
|
-
class_name : "hover",
|
13
|
-
items : {
|
14
|
-
create : {
|
15
|
-
label : "Create",
|
16
|
-
icon : "create",
|
17
|
-
visible : function (NODE, TREE_OBJ) { if(NODE.length != 1) return 0; return TREE_OBJ.check("creatable", NODE); },
|
18
|
-
action : function (NODE, TREE_OBJ) { TREE_OBJ.create(false, TREE_OBJ.get_node(NODE[0])); },
|
19
|
-
separator_after : true
|
20
|
-
},
|
21
|
-
rename : {
|
22
|
-
label : "Rename",
|
23
|
-
icon : "rename",
|
24
|
-
visible : function (NODE, TREE_OBJ) { if(NODE.length != 1) return false; return TREE_OBJ.check("renameable", NODE); },
|
25
|
-
action : function (NODE, TREE_OBJ) { TREE_OBJ.rename(NODE); }
|
26
|
-
},
|
27
|
-
remove : {
|
28
|
-
label : "Delete",
|
29
|
-
icon : "remove",
|
30
|
-
visible : function (NODE, TREE_OBJ) { var ok = true; $.each(NODE, function () { if(TREE_OBJ.check("deletable", this) == false) ok = false; return false; }); return ok; },
|
31
|
-
action : function (NODE, TREE_OBJ) { $.each(NODE, function () { TREE_OBJ.remove(this); }); }
|
32
|
-
}
|
33
|
-
}
|
34
|
-
},
|
35
|
-
show : function(obj, t) {
|
36
|
-
var opts = $.extend(true, {}, $.tree.plugins.contextmenu.defaults, t.settings.plugins.contextmenu);
|
37
|
-
obj = $(obj);
|
38
|
-
$.tree.plugins.contextmenu.object.empty();
|
39
|
-
var str = "";
|
40
|
-
var cnt = 0;
|
41
|
-
for(var i in opts.items) {
|
42
|
-
if(!opts.items.hasOwnProperty(i)) continue;
|
43
|
-
if(opts.items[i] === false) continue;
|
44
|
-
var r = 1;
|
45
|
-
if(typeof opts.items[i].visible == "function") r = opts.items[i].visible.call(null, $.tree.plugins.contextmenu.data.a, t);
|
46
|
-
if(r == -1) continue;
|
47
|
-
else cnt ++;
|
48
|
-
if(opts.items[i].separator_before === true) str += "<li class='separator'><span> </span></li>";
|
49
|
-
str += '<li><a href="#" rel="' + i + '" class="' + i + ' ' + (r == 0 ? 'disabled' : '') + '">';
|
50
|
-
if(opts.items[i].icon) str += "<ins " + (opts.items[i].icon.indexOf("/") == -1 ? " class='" + opts.items[i].icon + "' " : " style='background-image:url(\"" + opts.items[i].icon + "\");' " ) + "> </ins>";
|
51
|
-
else str += "<ins> </ins>";
|
52
|
-
str += "<span>" + opts.items[i].label + '</span></a></li>';
|
53
|
-
if(opts.items[i].separator_after === true) str += "<li class='separator'><span> </span></li>";
|
54
|
-
}
|
55
|
-
var tmp = obj.children("a:visible").offset();
|
56
|
-
$.tree.plugins.contextmenu.object.attr("class","tree-context tree-" + t.settings.ui.theme_name.toString() + "-context").html(str);
|
57
|
-
var h = $.tree.plugins.contextmenu.object.height();
|
58
|
-
var w = $.tree.plugins.contextmenu.object.width();
|
59
|
-
var x = tmp.left;
|
60
|
-
var y = tmp.top + parseInt(obj.children("a:visible").height()) + 2;
|
61
|
-
var max_y = $(window).height() + $(window).scrollTop();
|
62
|
-
var max_x = $(window).width() + $(window).scrollLeft();
|
63
|
-
if(y + h > max_y) y = Math.max( (max_y - h - 2), 0);
|
64
|
-
if(x + w > max_x) x = Math.max( (max_x - w - 2), 0);
|
65
|
-
$.tree.plugins.contextmenu.object.css({ "left" : (x), "top" : (y) }).fadeIn("fast");
|
66
|
-
},
|
67
|
-
hide : function () {
|
68
|
-
if(!$.tree.plugins.contextmenu.data.t) return;
|
69
|
-
var opts = $.extend(true, {}, $.tree.plugins.contextmenu.defaults, $.tree.plugins.contextmenu.data.t.settings.plugins.contextmenu);
|
70
|
-
if($.tree.plugins.contextmenu.data.r && $.tree.plugins.contextmenu.data.a) {
|
71
|
-
$.tree.plugins.contextmenu.data.a.children("a, span").removeClass(opts.class_name);
|
72
|
-
}
|
73
|
-
$.tree.plugins.contextmenu.data = { a : false, r : false, t : false };
|
74
|
-
$.tree.plugins.contextmenu.object.fadeOut("fast");
|
75
|
-
},
|
76
|
-
exec : function (cmd) {
|
77
|
-
if($.tree.plugins.contextmenu.data.t == false) return;
|
78
|
-
var opts = $.extend(true, {}, $.tree.plugins.contextmenu.defaults, $.tree.plugins.contextmenu.data.t.settings.plugins.contextmenu);
|
79
|
-
try { opts.items[cmd].action.apply(null, [$.tree.plugins.contextmenu.data.a, $.tree.plugins.contextmenu.data.t]); } catch(e) { };
|
80
|
-
},
|
81
|
-
|
82
|
-
callbacks : {
|
83
|
-
oninit : function () {
|
84
|
-
if(!$.tree.plugins.contextmenu.css) {
|
85
|
-
var css = '#jstree-contextmenu { display:none; position:absolute; z-index:2000; list-style-type:none; margin:0; padding:0; left:-2000px; top:-2000px; } .tree-context { margin:20px; padding:0; width:180px; border:1px solid #979797; padding:2px; background:#f5f5f5; list-style-type:none; }.tree-context li { height:22px; margin:0 0 0 27px; padding:0; background:#ffffff; border-left:1px solid #e0e0e0; }.tree-context li a { position:relative; display:block; height:22px; line-height:22px; margin:0 0 0 -28px; text-decoration:none; color:black; padding:0; }.tree-context li a ins { text-decoration:none; float:left; width:16px; height:16px; margin:0 0 0 0; background-color:#f0f0f0; border:1px solid #f0f0f0; border-width:3px 5px 3px 6px; line-height:16px; }.tree-context li a span { display:block; background:#f0f0f0; margin:0 0 0 29px; padding-left:5px; }.tree-context li.separator { background:#f0f0f0; height:2px; line-height:2px; font-size:1px; border:0; margin:0; padding:0; }.tree-context li.separator span { display:block; margin:0px 0 0px 27px; height:1px; border-top:1px solid #e0e0e0; border-left:1px solid #e0e0e0; line-height:1px; font-size:1px; background:white; }.tree-context li a:hover { border:1px solid #d8f0fa; height:20px; line-height:20px; }.tree-context li a:hover span { background:#e7f4f9; margin-left:28px; }.tree-context li a:hover ins { background-color:#e7f4f9; border-color:#e7f4f9; border-width:2px 5px 2px 5px; }.tree-context li a.disabled { color:gray; }.tree-context li a.disabled ins { }.tree-context li a.disabled:hover { border:0; height:22px; line-height:22px; }.tree-context li a.disabled:hover span { background:#f0f0f0; margin-left:29px; }.tree-context li a.disabled:hover ins { border-color:#f0f0f0; background-color:#f0f0f0; border-width:3px 5px 3px 6px; }';
|
86
|
-
$.tree.plugins.contextmenu.css = this.add_sheet({ str : css });
|
87
|
-
}
|
88
|
-
},
|
89
|
-
onrgtclk : function (n, t, e) {
|
90
|
-
var opts = $.extend(true, {}, $.tree.plugins.contextmenu.defaults, t.settings.plugins.contextmenu);
|
91
|
-
n = $(n);
|
92
|
-
if(n.size() == 0) return;
|
93
|
-
$.tree.plugins.contextmenu.data.t = t;
|
94
|
-
if(!n.children("a:eq(0)").hasClass("clicked")) {
|
95
|
-
$.tree.plugins.contextmenu.data.a = n;
|
96
|
-
$.tree.plugins.contextmenu.data.r = true;
|
97
|
-
n.children("a").addClass(opts.class_name);
|
98
|
-
e.target.blur();
|
99
|
-
}
|
100
|
-
else {
|
101
|
-
$.tree.plugins.contextmenu.data.r = false;
|
102
|
-
$.tree.plugins.contextmenu.data.a = (t.selected_arr && t.selected_arr.length > 1) ? t.selected_arr : t.selected;
|
103
|
-
}
|
104
|
-
$.tree.plugins.contextmenu.show(n, t);
|
105
|
-
e.preventDefault();
|
106
|
-
e.stopPropagation();
|
107
|
-
// return false; // commented out because you might want to do something in your own callback
|
108
|
-
},
|
109
|
-
onchange : function () { $.tree.plugins.contextmenu.hide(); },
|
110
|
-
beforedata : function () { $.tree.plugins.contextmenu.hide(); },
|
111
|
-
ondestroy : function () { $.tree.plugins.contextmenu.hide(); }
|
112
|
-
}
|
113
|
-
}
|
114
|
-
});
|
115
|
-
$(function () {
|
116
|
-
$.tree.plugins.contextmenu.object.hide().appendTo("body");
|
117
|
-
$("#jstree-contextmenu a")
|
118
|
-
.live("click", function (event) {
|
119
|
-
if(!$(this).hasClass("disabled")) {
|
120
|
-
$.tree.plugins.contextmenu.exec.apply(null, [$(this).attr("rel")]);
|
121
|
-
$.tree.plugins.contextmenu.hide();
|
122
|
-
}
|
123
|
-
event.stopPropagation();
|
124
|
-
event.preventDefault();
|
125
|
-
return false;
|
126
|
-
})
|
127
|
-
$(document).bind("mousedown", function(event) { if($(event.target).parents("#jstree-contextmenu").size() == 0) $.tree.plugins.contextmenu.hide(); });
|
128
|
-
});
|
129
|
-
})(jQuery);
|
@@ -1,70 +0,0 @@
|
|
1
|
-
(function ($) {
|
2
|
-
if(typeof $.cookie == "undefined") throw "jsTree cookie: jQuery cookie plugin not included.";
|
3
|
-
|
4
|
-
$.extend($.tree.plugins, {
|
5
|
-
"cookie" : {
|
6
|
-
defaults : {
|
7
|
-
prefix : "", // a prefix that will be used for all cookies for this tree
|
8
|
-
options : {
|
9
|
-
expires: false,
|
10
|
-
path: false,
|
11
|
-
domain: false,
|
12
|
-
secure: false
|
13
|
-
},
|
14
|
-
types : {
|
15
|
-
selected : true, // should we set the selected cookie
|
16
|
-
open : true // should we set the open cookie
|
17
|
-
},
|
18
|
-
keep_selected : false, // should we merge with the selected option or overwrite it
|
19
|
-
keep_opened : false // should we merge with the opened option or overwrite it
|
20
|
-
},
|
21
|
-
set_cookie : function (type) {
|
22
|
-
var opts = $.extend(true, {}, $.tree.plugins.cookie.defaults, this.settings.plugins.cookie);
|
23
|
-
if(opts.types[type] !== true) return false;
|
24
|
-
switch(type) {
|
25
|
-
case "selected":
|
26
|
-
if(this.settings.rules.multiple != false && this.selected_arr.length > 1) {
|
27
|
-
var val = Array();
|
28
|
-
$.each(this.selected_arr, function () {
|
29
|
-
if(this.attr("id")) { val.push(this.attr("id")); }
|
30
|
-
});
|
31
|
-
val = val.join(",");
|
32
|
-
}
|
33
|
-
else var val = this.selected ? this.selected.attr("id") : false;
|
34
|
-
$.cookie(opts.prefix + 'selected', val, opts.options);
|
35
|
-
break;
|
36
|
-
case "open":
|
37
|
-
var str = "";
|
38
|
-
this.container.find("li.open").each(function (i) { if(this.id) { str += this.id + ","; } });
|
39
|
-
$.cookie(opts.prefix + 'open', str.replace(/,$/ig,""), opts.options);
|
40
|
-
break;
|
41
|
-
}
|
42
|
-
},
|
43
|
-
callbacks : {
|
44
|
-
oninit : function (t) {
|
45
|
-
var opts = $.extend(true, {}, $.tree.plugins.cookie.defaults, this.settings.plugins.cookie);
|
46
|
-
var tmp = false;
|
47
|
-
tmp = $.cookie(opts.prefix + 'open');
|
48
|
-
if(tmp) {
|
49
|
-
tmp = tmp.split(",");
|
50
|
-
if(opts.keep_opened) this.settings.opened = $.unique($.merge(tmp, this.settings.opened));
|
51
|
-
else this.settings.opened = tmp;
|
52
|
-
}
|
53
|
-
tmp = $.cookie(opts.prefix + 'selected');
|
54
|
-
if(tmp) {
|
55
|
-
tmp = tmp.split(",");
|
56
|
-
if(opts.keep_selected) this.settings.selected = $.unique($.merge(tmp, this.settings.opened));
|
57
|
-
else this.settings.selected = tmp;
|
58
|
-
}
|
59
|
-
},
|
60
|
-
onchange : function() { $.tree.plugins.cookie.set_cookie.apply(this, ["selected"]); },
|
61
|
-
onopen : function() { $.tree.plugins.cookie.set_cookie.apply(this, ["open"]); },
|
62
|
-
onclose : function() { $.tree.plugins.cookie.set_cookie.apply(this, ["open"]); },
|
63
|
-
ondelete : function() { $.tree.plugins.cookie.set_cookie.apply(this, ["open"]); },
|
64
|
-
oncopy : function() { $.tree.plugins.cookie.set_cookie.apply(this, ["open"]); },
|
65
|
-
oncreate : function() { $.tree.plugins.cookie.set_cookie.apply(this, ["open"]); },
|
66
|
-
onmoved : function() { $.tree.plugins.cookie.set_cookie.apply(this, ["open"]); }
|
67
|
-
}
|
68
|
-
}
|
69
|
-
});
|
70
|
-
})(jQuery);
|
@@ -1,75 +0,0 @@
|
|
1
|
-
@CHARSET "UTF-8";
|
2
|
-
|
3
|
-
.jquery-selectbox {
|
4
|
-
position: relative;
|
5
|
-
height: 16px;
|
6
|
-
border: 1px solid #d2ad63;
|
7
|
-
width: 100px;
|
8
|
-
z-index: 0;
|
9
|
-
float: left;
|
10
|
-
display: inline;
|
11
|
-
margin: 4px 4px 4px 0;
|
12
|
-
font-size: 9px;
|
13
|
-
font-family: Tahoma, Verdana, Geneva, Arial, Helvetica, sans-serif;
|
14
|
-
color: #444;
|
15
|
-
padding: 0;
|
16
|
-
background-image: url("../img/bg-TextField.gif");
|
17
|
-
}
|
18
|
-
.jquery-selectbox.selecthover {
|
19
|
-
border-color: #9F7627;
|
20
|
-
background-color: #FFFCDF;
|
21
|
-
background-image: url("../img/bg-TextFieldFocused.gif");
|
22
|
-
z-index: 700;
|
23
|
-
}
|
24
|
-
.jquery-selectbox .jquery-selectbox-currentItem {
|
25
|
-
padding: 3px 0px 0px 3px;
|
26
|
-
white-space: nowrap;
|
27
|
-
display: block;
|
28
|
-
overflow: hidden;
|
29
|
-
}
|
30
|
-
|
31
|
-
.jquery-selectbox .jquery-selectbox-list {
|
32
|
-
display: none;
|
33
|
-
position: absolute;
|
34
|
-
top: 16px;
|
35
|
-
padding: 2px;
|
36
|
-
left: 0px;
|
37
|
-
background: #fffcdf;
|
38
|
-
width: 100px;
|
39
|
-
height: 120px;
|
40
|
-
overflow-x: hidden;
|
41
|
-
overflow-y: auto;
|
42
|
-
z-index: 1000;
|
43
|
-
border: 1px solid #d2ad63;
|
44
|
-
}
|
45
|
-
.jquery-selectbox .jquery-selectbox-moreButton {
|
46
|
-
/*
|
47
|
-
position: absolute;
|
48
|
-
top: 0px;
|
49
|
-
right: 0px;
|
50
|
-
*/
|
51
|
-
float: right;
|
52
|
-
background: url("../img/lay-selectMoreButton.gif");
|
53
|
-
width: 16px;
|
54
|
-
height: 16px;
|
55
|
-
cursor: pointer;
|
56
|
-
}
|
57
|
-
.jquery-selectbox .jquery-selectbox-moreButton.morebuttonhover {
|
58
|
-
background: url("../img/lay-selectMoreButtonHover.gif");
|
59
|
-
}
|
60
|
-
|
61
|
-
.jquery-selectbox .jquery-selectbox-item.listelementhover {
|
62
|
-
background: #87683d;
|
63
|
-
color: #eee;
|
64
|
-
}
|
65
|
-
.jquery-selectbox .jquery-selectbox-item {
|
66
|
-
display: block;
|
67
|
-
cursor: default;
|
68
|
-
}
|
69
|
-
|
70
|
-
/** ERROR classes **/
|
71
|
-
form .error .jquery-selectbox {
|
72
|
-
color: #d00;
|
73
|
-
border-color: #d00;
|
74
|
-
background-image: url("../img/bg-TextFieldError.gif");
|
75
|
-
}
|
@@ -1,106 +0,0 @@
|
|
1
|
-
.tree-categories ul {
|
2
|
-
display: block;
|
3
|
-
padding: 0;
|
4
|
-
margin: 0; }
|
5
|
-
.tree-categories li {
|
6
|
-
display: block !important;
|
7
|
-
width: auto !important;
|
8
|
-
float: none !important; }
|
9
|
-
.tree-categories li.open {
|
10
|
-
background: url("brown-minus.png") 0px 1px no-repeat; }
|
11
|
-
.tree-categories li.closed {
|
12
|
-
background: url("brown-plus.png") 0 1px no-repeat; }
|
13
|
-
|
14
|
-
#jstree-dragged.tree-categories li li.open {
|
15
|
-
background: url("brown-plus.png") 0 1px no-repeat; }
|
16
|
-
|
17
|
-
.tree.tree-categories .ltr li a {
|
18
|
-
padding: 0px 24px 0px 24px;
|
19
|
-
color: #75491B;
|
20
|
-
font-weight: bold;
|
21
|
-
font-size: 0.8em;
|
22
|
-
background-position: 0 -272px;
|
23
|
-
display: block;
|
24
|
-
position: relative; }
|
25
|
-
.tree.tree-categories .ltr li a:hover, .tree.tree-categories .ltr li a.hover {
|
26
|
-
background-color: #FDD794;
|
27
|
-
color: #F16028; }
|
28
|
-
.tree.tree-categories .ltr li a.clicked {
|
29
|
-
background-color: #FDD794;
|
30
|
-
color: #F16028; }
|
31
|
-
.tree.tree-categories .ltr li a.clicked:hover {
|
32
|
-
background-color: #FDD794;
|
33
|
-
color: #F16028; }
|
34
|
-
.tree.tree-categories .ltr li a ins {
|
35
|
-
margin: 0;
|
36
|
-
display: none; }
|
37
|
-
.tree.tree-categories .ltr li a span {
|
38
|
-
height: 13px;
|
39
|
-
width: 19px;
|
40
|
-
font-size: 0.7em;
|
41
|
-
background-image: url("bubble-quantity-elements.png");
|
42
|
-
background-repeat: no-repeat;
|
43
|
-
background-position: -1px -5px;
|
44
|
-
text-align: center;
|
45
|
-
color: #75491B;
|
46
|
-
position: absolute;
|
47
|
-
right: 10px;
|
48
|
-
top: 2px;
|
49
|
-
line-height: 1.4em;
|
50
|
-
padding: 0px 5px 2px 1px; }
|
51
|
-
.tree.tree-categories .ltr li a span.clicked {
|
52
|
-
background-color: #FDD794;
|
53
|
-
color: #F16028;
|
54
|
-
padding: 0px 3px 0px 20px; }
|
55
|
-
|
56
|
-
.tree.tree-categories .ltr li a.loading {
|
57
|
-
background: none; }
|
58
|
-
|
59
|
-
.tree-categories-context {
|
60
|
-
width: 160px;
|
61
|
-
background: #FFF;
|
62
|
-
border: 1px solid #AEB0B2;
|
63
|
-
position: absolute;
|
64
|
-
border-bottom: 0; }
|
65
|
-
.tree-categories-context a {
|
66
|
-
display: block;
|
67
|
-
text-decoration: none;
|
68
|
-
border-bottom: 1px solid #AEB0B2;
|
69
|
-
color: black;
|
70
|
-
line-height: 20px;
|
71
|
-
margin: 0; }
|
72
|
-
.tree-categories-context a.disabled:hover {
|
73
|
-
display: block;
|
74
|
-
text-decoration: none;
|
75
|
-
border-bottom: 1px solid #AEB0B2;
|
76
|
-
color: black;
|
77
|
-
line-height: 20px;
|
78
|
-
padding: 1px 0 1px 25px;
|
79
|
-
margin: 0; }
|
80
|
-
.tree-categories-context a:hover {
|
81
|
-
background-color: #D6EDF4;
|
82
|
-
color: #2973BD;
|
83
|
-
border-bottom: 1px solid #AEB0B2; }
|
84
|
-
.tree-categories-context a.disabled {
|
85
|
-
color: silver;
|
86
|
-
opacity: 0.5;
|
87
|
-
-ms-filter: 'alpha(opacity=50)';
|
88
|
-
filter: alpha(opacity=50);
|
89
|
-
zoom: 1; }
|
90
|
-
.tree-categories-context a.disabled:hover {
|
91
|
-
color: silver;
|
92
|
-
opacity: 0.5;
|
93
|
-
-ms-filter: 'alpha(opacity=50)';
|
94
|
-
filter: alpha(opacity=50);
|
95
|
-
zoom: 1; }
|
96
|
-
.tree-categories-context a ins.create {
|
97
|
-
background-image: url(create.png);
|
98
|
-
background-position: -4px -3px; }
|
99
|
-
.tree-categories-context a ins.rename {
|
100
|
-
background-image: url(rename.png); }
|
101
|
-
.tree-categories-context a ins.remove {
|
102
|
-
background-image: url(remove.png); }
|
103
|
-
.tree-categories-context a span {
|
104
|
-
margin: 0 !important; }
|
105
|
-
.tree-categories-context .separator {
|
106
|
-
display: none !important; }
|
@@ -1,204 +0,0 @@
|
|
1
|
-
@media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0)
|
2
|
-
head~body
|
3
|
-
& .tree
|
4
|
-
& >
|
5
|
-
& ul
|
6
|
-
& >
|
7
|
-
& li
|
8
|
-
&.last
|
9
|
-
& >
|
10
|
-
& ul
|
11
|
-
margin-bottom: 36px
|
12
|
-
|
13
|
-
.tree
|
14
|
-
& li
|
15
|
-
& li
|
16
|
-
overflow: visible
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
.tree
|
21
|
-
ul
|
22
|
-
margin: 0 0 0 5px
|
23
|
-
padding: 0 0 0 0
|
24
|
-
list-style-type: none
|
25
|
-
|
26
|
-
li
|
27
|
-
display: block
|
28
|
-
min-height: 18px
|
29
|
-
line-height: 18px
|
30
|
-
padding: 0 0 0 15px
|
31
|
-
margin: 0 0 0 0
|
32
|
-
clear: both
|
33
|
-
//_height: 18px
|
34
|
-
//#height: auto
|
35
|
-
|
36
|
-
ul
|
37
|
-
display: none
|
38
|
-
|
39
|
-
a, span
|
40
|
-
display: inline-block
|
41
|
-
line-height: 16px
|
42
|
-
height: 16px
|
43
|
-
color: black
|
44
|
-
white-space: nowrap
|
45
|
-
text-decoration: none
|
46
|
-
padding: 1px 4px 1px 1px
|
47
|
-
margin: 0
|
48
|
-
|
49
|
-
a
|
50
|
-
&:focus
|
51
|
-
outline: none
|
52
|
-
|
53
|
-
input
|
54
|
-
margin: 0
|
55
|
-
padding: 0 0
|
56
|
-
display: inline-block
|
57
|
-
height: 12px !important
|
58
|
-
border: 1px solid white
|
59
|
-
background: white
|
60
|
-
font-size: 10px
|
61
|
-
font-family: Verdana
|
62
|
-
|
63
|
-
span input
|
64
|
-
margin: 0
|
65
|
-
padding: 0 0
|
66
|
-
display: inline-block
|
67
|
-
height: 12px !important
|
68
|
-
border: 1px solid white
|
69
|
-
background: white
|
70
|
-
font-size: 10px
|
71
|
-
font-family: Verdana
|
72
|
-
|
73
|
-
a input:not([class="xxx"]), span input:not([class="xxx"])
|
74
|
-
padding: 1px 0
|
75
|
-
|
76
|
-
.ltr li.last
|
77
|
-
float: left
|
78
|
-
|
79
|
-
.rtl li.last
|
80
|
-
float: right
|
81
|
-
#float: none
|
82
|
-
_float: right
|
83
|
-
|
84
|
-
> ul li.last
|
85
|
-
overflow: visible
|
86
|
-
|
87
|
-
li
|
88
|
-
&.open ul
|
89
|
-
display: block
|
90
|
-
|
91
|
-
&.closed ul
|
92
|
-
display: none !important
|
93
|
-
|
94
|
-
|
95
|
-
#jstree-dragged
|
96
|
-
position: absolute
|
97
|
-
top: -10px
|
98
|
-
left: -10px
|
99
|
-
margin: 0
|
100
|
-
padding: 0
|
101
|
-
|
102
|
-
.rtl
|
103
|
-
_width: 20px
|
104
|
-
#width: 200px
|
105
|
-
margin: 0
|
106
|
-
padding: 0
|
107
|
-
|
108
|
-
ul ul ul
|
109
|
-
display: none
|
110
|
-
|
111
|
-
|
112
|
-
.tree .rtl
|
113
|
-
margin: 0 5px 0 0
|
114
|
-
|
115
|
-
ul
|
116
|
-
margin: 0 5px 0 0
|
117
|
-
|
118
|
-
li
|
119
|
-
padding: 0 15px 0 0
|
120
|
-
|
121
|
-
a, span
|
122
|
-
padding: 1px 1px 1px 4px
|
123
|
-
|
124
|
-
|
125
|
-
.tree-context
|
126
|
-
display: none
|
127
|
-
position: absolute
|
128
|
-
list-style-type: none
|
129
|
-
margin: 0
|
130
|
-
padding: 0
|
131
|
-
left: -2000px
|
132
|
-
top: -2000px
|
133
|
-
|
134
|
-
.separator
|
135
|
-
display: none
|
136
|
-
|
137
|
-
a
|
138
|
-
display: block
|
139
|
-
margin: 0
|
140
|
-
padding: 0
|
141
|
-
background-repeat: no-repeat
|
142
|
-
|
143
|
-
|
144
|
-
.tree .ltr li a, x:-moz-any-link
|
145
|
-
display: inline
|
146
|
-
float: left
|
147
|
-
|
148
|
-
|
149
|
-
.tree .rtl li a, x:-moz-any-link
|
150
|
-
display: inline
|
151
|
-
float: right
|
152
|
-
|
153
|
-
|
154
|
-
.tree li ul, x:-moz-any-link
|
155
|
-
clear: both
|
156
|
-
|
157
|
-
|
158
|
-
.tree
|
159
|
-
.ltr li a, .rtl li a
|
160
|
-
display: inline-block
|
161
|
-
float: none
|
162
|
-
|
163
|
-
|
164
|
-
x
|
165
|
-
&:-moz-any-link, &:default
|
166
|
-
display: inline-block
|
167
|
-
float: none
|
168
|
-
|
169
|
-
|
170
|
-
.tree li ul
|
171
|
-
clear: none
|
172
|
-
|
173
|
-
|
174
|
-
x
|
175
|
-
&:-moz-any-link, &:default
|
176
|
-
clear: none
|
177
|
-
|
178
|
-
|
179
|
-
.tree
|
180
|
-
.ltr li a, .rtl li a
|
181
|
-
#display: inline-block
|
182
|
-
#float: none
|
183
|
-
|
184
|
-
li
|
185
|
-
_width: 1px
|
186
|
-
|
187
|
-
ul
|
188
|
-
#clear: none
|
189
|
-
|
190
|
-
li
|
191
|
-
overflow: hidden
|
192
|
-
#overflow: visible
|
193
|
-
_overflow: visible
|
194
|
-
|
195
|
-
>
|
196
|
-
.ltr > li, .rtl > li
|
197
|
-
display: table
|
198
|
-
|
199
|
-
.ltr li.last
|
200
|
-
#margin-top: expression( (this.previousSibling && /open/.test(this.previousSibling.className) ) ? "-2px" : "0")
|
201
|
-
_margin-top: expression( (this.previousSibling && /open/.test(this.previousSibling.className) ) ? "-2px" : "0")
|
202
|
-
|
203
|
-
.rtl li.last
|
204
|
-
_margin-top: expression( (this.previousSibling && /open/.test(this.previousSibling.className) ) ? "-2px" : "0")
|