First commit
This commit is contained in:
114
cms/plugins/pagemanager/jstree/jquery.cookie.js
Normal file
114
cms/plugins/pagemanager/jstree/jquery.cookie.js
Normal file
@ -0,0 +1,114 @@
|
||||
/*!
|
||||
* jQuery Cookie Plugin v1.4.1
|
||||
* https://github.com/carhartl/jquery-cookie
|
||||
*
|
||||
* Copyright 2006, 2014 Klaus Hartl
|
||||
* Released under the MIT license
|
||||
*/
|
||||
(function (factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD (Register as an anonymous module)
|
||||
define(['jquery'], factory);
|
||||
} else if (typeof exports === 'object') {
|
||||
// Node/CommonJS
|
||||
module.exports = factory(require('jquery'));
|
||||
} else {
|
||||
// Browser globals
|
||||
factory(jQuery);
|
||||
}
|
||||
}(function ($) {
|
||||
|
||||
var pluses = /\+/g;
|
||||
|
||||
function encode(s) {
|
||||
return config.raw ? s : encodeURIComponent(s);
|
||||
}
|
||||
|
||||
function decode(s) {
|
||||
return config.raw ? s : decodeURIComponent(s);
|
||||
}
|
||||
|
||||
function stringifyCookieValue(value) {
|
||||
return encode(config.json ? JSON.stringify(value) : String(value));
|
||||
}
|
||||
|
||||
function parseCookieValue(s) {
|
||||
if (s.indexOf('"') === 0) {
|
||||
// This is a quoted cookie as according to RFC2068, unescape...
|
||||
s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\');
|
||||
}
|
||||
|
||||
try {
|
||||
// Replace server-side written pluses with spaces.
|
||||
// If we can't decode the cookie, ignore it, it's unusable.
|
||||
// If we can't parse the cookie, ignore it, it's unusable.
|
||||
s = decodeURIComponent(s.replace(pluses, ' '));
|
||||
return config.json ? JSON.parse(s) : s;
|
||||
} catch(e) {}
|
||||
}
|
||||
|
||||
function read(s, converter) {
|
||||
var value = config.raw ? s : parseCookieValue(s);
|
||||
return $.isFunction(converter) ? converter(value) : value;
|
||||
}
|
||||
|
||||
var config = $.cookie = function (key, value, options) {
|
||||
|
||||
// Write
|
||||
|
||||
if (arguments.length > 1 && !$.isFunction(value)) {
|
||||
options = $.extend({}, config.defaults, options);
|
||||
|
||||
if (typeof options.expires === 'number') {
|
||||
var days = options.expires, t = options.expires = new Date();
|
||||
t.setMilliseconds(t.getMilliseconds() + days * 864e+5);
|
||||
}
|
||||
|
||||
return (document.cookie = [
|
||||
encode(key), '=', stringifyCookieValue(value),
|
||||
options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
|
||||
options.path ? '; path=' + options.path : '',
|
||||
options.domain ? '; domain=' + options.domain : '',
|
||||
options.secure ? '; secure' : ''
|
||||
].join(''));
|
||||
}
|
||||
|
||||
// Read
|
||||
|
||||
var result = key ? undefined : {},
|
||||
// To prevent the for loop in the first place assign an empty array
|
||||
// in case there are no cookies at all. Also prevents odd result when
|
||||
// calling $.cookie().
|
||||
cookies = document.cookie ? document.cookie.split('; ') : [],
|
||||
i = 0,
|
||||
l = cookies.length;
|
||||
|
||||
for (; i < l; i++) {
|
||||
var parts = cookies[i].split('='),
|
||||
name = decode(parts.shift()),
|
||||
cookie = parts.join('=');
|
||||
|
||||
if (key === name) {
|
||||
// If second argument (value) is a function it's a converter...
|
||||
result = read(cookie, value);
|
||||
break;
|
||||
}
|
||||
|
||||
// Prevent storing a cookie that we couldn't decode.
|
||||
if (!key && (cookie = read(cookie)) !== undefined) {
|
||||
result[name] = cookie;
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
config.defaults = {};
|
||||
|
||||
$.removeCookie = function (key, options) {
|
||||
// Must not alter options, thus extending a fresh object...
|
||||
$.cookie(key, '', $.extend({}, options, { expires: -1 }));
|
||||
return !$.cookie(key);
|
||||
};
|
||||
|
||||
}));
|
4558
cms/plugins/pagemanager/jstree/jquery.jstree.js
Normal file
4558
cms/plugins/pagemanager/jstree/jquery.jstree.js
Normal file
File diff suppressed because it is too large
Load Diff
BIN
cms/plugins/pagemanager/jstree/themes/cmsimple/d.gif
Normal file
BIN
cms/plugins/pagemanager/jstree/themes/cmsimple/d.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.9 KiB |
BIN
cms/plugins/pagemanager/jstree/themes/cmsimple/d.png
Normal file
BIN
cms/plugins/pagemanager/jstree/themes/cmsimple/d.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.4 KiB |
BIN
cms/plugins/pagemanager/jstree/themes/cmsimple/dot_for_ie.gif
Normal file
BIN
cms/plugins/pagemanager/jstree/themes/cmsimple/dot_for_ie.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 43 B |
90
cms/plugins/pagemanager/jstree/themes/cmsimple/style.css
Normal file
90
cms/plugins/pagemanager/jstree/themes/cmsimple/style.css
Normal file
@ -0,0 +1,90 @@
|
||||
/*
|
||||
* jsTree cmsimple theme 1.0
|
||||
* Supported features: dots/no-dots, icons/no-icons, focused, loading
|
||||
* Supported plugins: ui (hovered, clicked), checkbox, contextmenu, search
|
||||
*
|
||||
* cmb: dropped png support
|
||||
*/
|
||||
|
||||
.jstree-cmsimple li,
|
||||
.jstree-cmsimple ins { background-image:url("d.gif"); background-repeat:no-repeat; background-color:transparent; }
|
||||
.jstree-cmsimple li { background-position:-90px 0; background-repeat:repeat-y; }
|
||||
.jstree-cmsimple li.jstree-last { background:transparent; }
|
||||
.jstree-cmsimple .jstree-open > ins { background-position:-72px 0; }
|
||||
.jstree-cmsimple .jstree-closed > ins { background-position:-54px 0; }
|
||||
.jstree-cmsimple .jstree-leaf > ins { background-position:-36px 0; }
|
||||
|
||||
.jstree-cmsimple .jstree-hovered { background:#cde; border:1px solid #cde; padding:0 1px; }
|
||||
.jstree-cmsimple .jstree-clicked { background:navy; color: #fff!important; border:1px solid navy; padding:0 1px; }
|
||||
.jstree-cmsimple .jstree-clicked a {color: #fff!important;}
|
||||
.jstree-cmsimple a .jstree-icon { background-position:-56px -19px; }
|
||||
.jstree-cmsimple .jstree-open > a .jstree-icon { background-position:-56px -36px; }
|
||||
.jstree-cmsimple a.jstree-loading .jstree-icon { background:url("throbber.gif") center center no-repeat !important; }
|
||||
|
||||
.jstree-cmsimple.jstree-focused { background:white; }
|
||||
|
||||
.jstree-cmsimple .jstree-no-dots li,
|
||||
.jstree-cmsimple .jstree-no-dots .jstree-leaf > ins { background:transparent; }
|
||||
.jstree-cmsimple .jstree-no-dots .jstree-open > ins { background-position:-18px 0; }
|
||||
.jstree-cmsimple .jstree-no-dots .jstree-closed > ins { background-position:0 0; }
|
||||
|
||||
.jstree-cmsimple .jstree-no-icons a .jstree-icon { display:none; }
|
||||
|
||||
.jstree-cmsimple .jstree-search { font-style:italic; }
|
||||
|
||||
.jstree-cmsimple .jstree-no-icons .jstree-checkbox { display:inline-block; }
|
||||
.jstree-cmsimple .jstree-no-checkboxes .jstree-checkbox { display:none !important; }
|
||||
.jstree-cmsimple .jstree-checked > a > .jstree-checkbox { background-position:-38px -19px; }
|
||||
.jstree-cmsimple .jstree-unchecked > a > .jstree-checkbox { background-position:-2px -19px; }
|
||||
.jstree-cmsimple .jstree-undetermined > a > .jstree-checkbox { background-position:-20px -19px; }
|
||||
.jstree-cmsimple .jstree-checked > a > .jstree-checkbox:hover { background-position:-38px -37px; }
|
||||
.jstree-cmsimple .jstree-unchecked > a > .jstree-checkbox:hover { background-position:-2px -37px; }
|
||||
.jstree-cmsimple .jstree-undetermined > a > .jstree-checkbox:hover { background-position:-20px -37px; }
|
||||
|
||||
#vakata-dragged.jstree-cmsimple ins { background:transparent !important; }
|
||||
#vakata-dragged.jstree-cmsimple .jstree-ok { background:url("d.gif") -2px -53px no-repeat !important; }
|
||||
#vakata-dragged.jstree-cmsimple .jstree-invalid { background:url("d.gif") -18px -53px no-repeat !important; }
|
||||
#jstree-marker.jstree-cmsimple { background:url("d.gif") -41px -57px no-repeat !important; }
|
||||
#jstree-marker-line {background: #060; width: 160px; border: 1px solid #060; margin: 0; box-shadow: none!important;}
|
||||
|
||||
.jstree-cmsimple a.jstree-search { color:aqua; }
|
||||
.jstree-cmsimple .jstree-locked a { color:silver; cursor:default; }
|
||||
|
||||
#vakata-contextmenu.jstree-cmsimple-context,
|
||||
#vakata-contextmenu.jstree-cmsimple-context li ul { background:#f0f0f0; border:1px solid #979797; }
|
||||
#vakata-contextmenu.jstree-cmsimple-context li { }
|
||||
#vakata-contextmenu.jstree-cmsimple-context a { color:black; }
|
||||
#vakata-contextmenu.jstree-cmsimple-context a:hover,
|
||||
#vakata-contextmenu.jstree-cmsimple-context .vakata-hover > a { padding:0 5px; background:#e8eff7; border:1px solid #aecff7; color:black; }
|
||||
#vakata-contextmenu.jstree-cmsimple-context li.jstree-contextmenu-disabled a,
|
||||
#vakata-contextmenu.jstree-cmsimple-context li.jstree-contextmenu-disabled a:hover { color:silver; background:transparent; border:0; padding:1px 5px; }
|
||||
#vakata-contextmenu.jstree-cmsimple-context li.vakata-separator { background:white; border-top:1px solid #e0e0e0; margin:0; }
|
||||
#vakata-contextmenu.jstree-cmsimple-context li ul { margin-left:-4px; }
|
||||
|
||||
|
||||
/* links to pages */
|
||||
.jstree-cmsimple span.pagelink {font-size: 20px; line-height: 12px; font-weight: 900; color: #069; padding-left: 6px; cursor: pointer;}
|
||||
.jstree-cmsimple span.pagelink:hover {color: #c60;}
|
||||
.jstree-cmsimple .jstree-rename-input {width: 80%!important; height: 20px!important; font-size: 15px; padding: 0 4px 1px 4px!important;}
|
||||
|
||||
|
||||
/* IE6 BEGIN */
|
||||
/*
|
||||
.jstree-cmsimple li,
|
||||
.jstree-cmsimple ins,
|
||||
#vakata-dragged.jstree-cmsimple .jstree-invalid,
|
||||
#vakata-dragged.jstree-cmsimple .jstree-ok,
|
||||
#jstree-marker.jstree-cmsimple { _background-image:url("d.gif"); }
|
||||
.jstree-cmsimple .jstree-open ins { _background-position:-72px 0; }
|
||||
.jstree-cmsimple .jstree-closed ins { _background-position:-54px 0; }
|
||||
.jstree-cmsimple .jstree-leaf ins { _background-position:-36px 0; }
|
||||
.jstree-cmsimple .jstree-open a ins.jstree-icon { _background-position:-56px -36px; }
|
||||
.jstree-cmsimple .jstree-closed a ins.jstree-icon { _background-position:-56px -19px; }
|
||||
.jstree-cmsimple .jstree-leaf a ins.jstree-icon { _background-position:-56px -19px; }
|
||||
#vakata-contextmenu.jstree-cmsimple-context ins { _display:none; }
|
||||
#vakata-contextmenu.jstree-cmsimple-context li { _zoom:1; }
|
||||
.jstree-cmsimple .jstree-undetermined a .jstree-checkbox { _background-position:-20px -19px; }
|
||||
.jstree-cmsimple .jstree-checked a .jstree-checkbox { _background-position:-38px -19px; }
|
||||
.jstree-cmsimple .jstree-unchecked a .jstree-checkbox { _background-position:-2px -19px; }
|
||||
*/
|
||||
/* IE6 END */
|
BIN
cms/plugins/pagemanager/jstree/themes/cmsimple/throbber.gif
Normal file
BIN
cms/plugins/pagemanager/jstree/themes/cmsimple/throbber.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
Reference in New Issue
Block a user