Version Description
(December 2020) =
Please create Issues for any jQuery deprecations (or other issues) you come across!
- Fixes regression introduced in 1.6.2 that prevented dragging/dropping in the updated version of jQuery.
Download this release
Release Info
Developer | jchristopher |
Plugin | CMS Tree Page View |
Version | 1.6.4 |
Comparing to | |
See all releases |
Code changes from version 1.6.3 to 1.6.4
- index.php +1 -1
- readme.txt +8 -6
- scripts/jquery.jstree.js +20 -20
index.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://github.com/jchristopher/cms-tree-page-view
|
|
5 |
Description: Adds a CMS-like tree view of all your pages, like the view often found in a page-focused CMS. Use the tree view to edit, view, add pages and search pages (very useful if you have many pages). And with drag and drop you can rearrange the order of your pages. Page management won't get any easier than this!
|
6 |
Text Domain: cms-tree-page-view
|
7 |
Domain Path: /languages/
|
8 |
-
Version: 1.6.
|
9 |
Author: Jon Christopher
|
10 |
Author URI: https://jonchristopher.us/
|
11 |
License: GPL2
|
5 |
Description: Adds a CMS-like tree view of all your pages, like the view often found in a page-focused CMS. Use the tree view to edit, view, add pages and search pages (very useful if you have many pages). And with drag and drop you can rearrange the order of your pages. Page management won't get any easier than this!
|
6 |
Text Domain: cms-tree-page-view
|
7 |
Domain Path: /languages/
|
8 |
+
Version: 1.6.4
|
9 |
Author: Jon Christopher
|
10 |
Author URI: https://jonchristopher.us/
|
11 |
License: GPL2
|
readme.txt
CHANGED
@@ -4,8 +4,8 @@ Donate link: http://eskapism.se/sida/donate/
|
|
4 |
Tags: page, pages, posts, custom posts, tree, cms, dashboard, overview, drag-and-drop, rearrange, management, manage, admin
|
5 |
Text Domain: cms-tree-page-view
|
6 |
Requires at least: 3.8
|
7 |
-
Tested up to: 5.
|
8 |
-
Stable tag: 1.6.
|
9 |
|
10 |
Adds a tree view of all pages & custom posts. Get a great overview + options to drag & drop to reorder & option to add multiple pages.
|
11 |
|
@@ -116,15 +116,17 @@ Now the tree with the pages will be visible both on the dashboard and in the men
|
|
116 |
|
117 |
== Changelog ==
|
118 |
|
119 |
-
= 1.6.
|
120 |
|
121 |
Please [create Issues](https://github.com/jchristopher/cms-tree-page-view/issues) for any jQuery deprecations (or other issues) you come across!
|
122 |
|
123 |
-
- Fixes regression introduced in 1.6.2 that prevented
|
124 |
|
125 |
-
= 1.6.
|
126 |
|
127 |
-
|
|
|
|
|
128 |
|
129 |
- Fixes a number of jQuery deprecations
|
130 |
|
4 |
Tags: page, pages, posts, custom posts, tree, cms, dashboard, overview, drag-and-drop, rearrange, management, manage, admin
|
5 |
Text Domain: cms-tree-page-view
|
6 |
Requires at least: 3.8
|
7 |
+
Tested up to: 5.9.0
|
8 |
+
Stable tag: 1.6.4
|
9 |
|
10 |
Adds a tree view of all pages & custom posts. Get a great overview + options to drag & drop to reorder & option to add multiple pages.
|
11 |
|
116 |
|
117 |
== Changelog ==
|
118 |
|
119 |
+
= 1.6.4 (December 2020) =
|
120 |
|
121 |
Please [create Issues](https://github.com/jchristopher/cms-tree-page-view/issues) for any jQuery deprecations (or other issues) you come across!
|
122 |
|
123 |
+
- Fixes regression introduced in 1.6.2 that prevented dragging/dropping in the updated version of jQuery.
|
124 |
|
125 |
+
= 1.6.3 (December 2020) =
|
126 |
|
127 |
+
- Fixes regression introduced in 1.6.2 that prevented expanding parents in the updated version of jQuery.
|
128 |
+
|
129 |
+
= 1.6.2 (December 2020) =
|
130 |
|
131 |
- Fixes a number of jQuery deprecations
|
132 |
|
scripts/jquery.jstree.js
CHANGED
@@ -2395,18 +2395,18 @@ if (!Array.isArray) {
|
|
2395 |
ml.hide();
|
2396 |
}
|
2397 |
}, this))
|
2398 |
-
.on("
|
2399 |
if(e.which === 1) {
|
2400 |
this.start_drag(e.currentTarget, e);
|
2401 |
return false;
|
2402 |
}
|
2403 |
}, this))
|
2404 |
-
.on("
|
2405 |
if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree) {
|
2406 |
this.dnd_enter(e.currentTarget);
|
2407 |
}
|
2408 |
}, this))
|
2409 |
-
.on("
|
2410 |
if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree) {
|
2411 |
if(!r || !r.length || r.children("a")[0] !== e.currentTarget) {
|
2412 |
this.dnd_enter(e.currentTarget);
|
@@ -2417,7 +2417,7 @@ if (!Array.isArray) {
|
|
2417 |
this.dnd_show();
|
2418 |
}
|
2419 |
}, this))
|
2420 |
-
.on("
|
2421 |
if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree) {
|
2422 |
if(e.relatedTarget && e.relatedTarget.id && e.relatedTarget.id === "jstree-marker-line") {
|
2423 |
return false;
|
@@ -2437,7 +2437,7 @@ if (!Array.isArray) {
|
|
2437 |
0);
|
2438 |
}
|
2439 |
}, this))
|
2440 |
-
.on("
|
2441 |
if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree) {
|
2442 |
this.dnd_finish(e);
|
2443 |
}
|
@@ -2490,7 +2490,7 @@ if (!Array.isArray) {
|
|
2490 |
var s = this._get_settings().dnd;
|
2491 |
if(s.drag_target) {
|
2492 |
$(document)
|
2493 |
-
.on(
|
2494 |
o = e.target;
|
2495 |
$.vakata.dnd.drag_start(e, { jstree : true, obj : e.target }, "<ins class='jstree-icon'></ins>" + $(e.target).text() );
|
2496 |
if(this.data.themes) {
|
@@ -2509,17 +2509,17 @@ if (!Array.isArray) {
|
|
2509 |
}
|
2510 |
if(s.drop_target) {
|
2511 |
$(document)
|
2512 |
-
.on(
|
2513 |
if(this.data.dnd.active && this._get_settings().dnd.drop_check.call(this, { "o" : o, "r" : $(e.target), "e" : e })) {
|
2514 |
$.vakata.dnd.helper.children("ins").attr("class","jstree-ok");
|
2515 |
}
|
2516 |
}, this))
|
2517 |
-
.on(
|
2518 |
if(this.data.dnd.active) {
|
2519 |
$.vakata.dnd.helper.children("ins").attr("class","jstree-invalid");
|
2520 |
}
|
2521 |
}, this))
|
2522 |
-
.on(
|
2523 |
if(this.data.dnd.active && $.vakata.dnd.helper.children("ins").hasClass("jstree-ok")) {
|
2524 |
this._get_settings().dnd.drop_finish.call(this, { "o" : o, "r" : $(e.target), "e" : e });
|
2525 |
}
|
@@ -2771,7 +2771,7 @@ if (!Array.isArray) {
|
|
2771 |
.on("loaded.jstree", $.proxy(function (e) {
|
2772 |
this._prepare_checkboxes();
|
2773 |
}, this))
|
2774 |
-
.on( (this.data.ui && this.data.checkbox.noui ? "a" : "ins.jstree-checkbox")
|
2775 |
e.preventDefault();
|
2776 |
if(this._get_node(e.target).hasClass("jstree-checked")) { this.uncheck_node(e.target); }
|
2777 |
else { this.check_node(e.target); }
|
@@ -3630,14 +3630,14 @@ if (!Array.isArray) {
|
|
3630 |
'#vakata-contextmenu li.vakata-separator { min-height:0; height:1px; line-height:1px; font-size:1px; overflow:hidden; margin:0 2px; background:silver; /* border-top:1px solid #fefefe; */ padding:0; } ';
|
3631 |
$.vakata.css.add_sheet({ str : css_string, title : "vakata" });
|
3632 |
$.vakata.context.cnt
|
3633 |
-
.on("
|
3634 |
-
.on("
|
3635 |
if(!$(this).parent().hasClass("jstree-contextmenu-disabled") && $.vakata.context.exec($(this).attr("rel"))) {
|
3636 |
$.vakata.context.hide();
|
3637 |
}
|
3638 |
else { $(this).blur(); }
|
3639 |
})
|
3640 |
-
.on("
|
3641 |
$.vakata.context.cnt.find(".vakata-hover").removeClass("vakata-hover");
|
3642 |
})
|
3643 |
.appendTo("body");
|
@@ -3691,13 +3691,13 @@ if (!Array.isArray) {
|
|
3691 |
$.jstree.plugin("contextmenu", {
|
3692 |
__init : function () {
|
3693 |
this.get_container()
|
3694 |
-
.on("
|
3695 |
e.preventDefault();
|
3696 |
if(!$(e.currentTarget).hasClass("jstree-loading")) {
|
3697 |
this.show_contextmenu(e.currentTarget, e.pageX, e.pageY);
|
3698 |
}
|
3699 |
}, this))
|
3700 |
-
.on("
|
3701 |
if(this.data.contextmenu) {
|
3702 |
$.vakata.context.hide();
|
3703 |
}
|
@@ -4161,12 +4161,12 @@ if (!Array.isArray) {
|
|
4161 |
this.get_container()
|
4162 |
.addClass("ui-widget-content")
|
4163 |
.addClass("jstree-themeroller")
|
4164 |
-
.on("
|
4165 |
if(!$(e.currentTarget).hasClass("jstree-loading")) {
|
4166 |
$(this).addClass(s.item_h);
|
4167 |
}
|
4168 |
})
|
4169 |
-
.on("
|
4170 |
$(this).removeClass(s.item_h);
|
4171 |
})
|
4172 |
.on("init.jstree", $.proxy(function (e, data) {
|
@@ -4407,19 +4407,19 @@ if (!Array.isArray) {
|
|
4407 |
ref.children("a").attr("class",data.rslt.obj.children(".jstree-hovered").attr("class"));
|
4408 |
}
|
4409 |
}, this))
|
4410 |
-
.on(".jstree-wholerow-span, ins.jstree-icon, li",
|
4411 |
var n = $(e.currentTarget);
|
4412 |
if(e.target.tagName === "A" || (e.target.tagName === "INS" && n.closest("li").is(".jstree-open, .jstree-closed"))) { return; }
|
4413 |
n.closest("li").children("a:visible:eq(0)").click();
|
4414 |
e.stopImmediatePropagation();
|
4415 |
})
|
4416 |
-
.on("
|
4417 |
e.stopImmediatePropagation();
|
4418 |
if($(e.currentTarget).children(".jstree-hovered, .jstree-clicked").length) { return false; }
|
4419 |
this.hover_node(e.currentTarget);
|
4420 |
return false;
|
4421 |
}, this))
|
4422 |
-
.on("
|
4423 |
if($(e.currentTarget).children("a").hasClass("jstree-hovered").length) { return; }
|
4424 |
this.dehover_node(e.currentTarget);
|
4425 |
}, this));
|
2395 |
ml.hide();
|
2396 |
}
|
2397 |
}, this))
|
2398 |
+
.on("mousedown.jstree", "a",$.proxy(function (e) {
|
2399 |
if(e.which === 1) {
|
2400 |
this.start_drag(e.currentTarget, e);
|
2401 |
return false;
|
2402 |
}
|
2403 |
}, this))
|
2404 |
+
.on("mouseenter.jstree", "a", $.proxy(function (e) {
|
2405 |
if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree) {
|
2406 |
this.dnd_enter(e.currentTarget);
|
2407 |
}
|
2408 |
}, this))
|
2409 |
+
.on("mousemove.jstree", "a", $.proxy(function (e) {
|
2410 |
if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree) {
|
2411 |
if(!r || !r.length || r.children("a")[0] !== e.currentTarget) {
|
2412 |
this.dnd_enter(e.currentTarget);
|
2417 |
this.dnd_show();
|
2418 |
}
|
2419 |
}, this))
|
2420 |
+
.on("mouseleave.jstree", "a", $.proxy(function (e) {
|
2421 |
if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree) {
|
2422 |
if(e.relatedTarget && e.relatedTarget.id && e.relatedTarget.id === "jstree-marker-line") {
|
2423 |
return false;
|
2437 |
0);
|
2438 |
}
|
2439 |
}, this))
|
2440 |
+
.on("mouseup.jstree", "a", $.proxy(function (e) {
|
2441 |
if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree) {
|
2442 |
this.dnd_finish(e);
|
2443 |
}
|
2490 |
var s = this._get_settings().dnd;
|
2491 |
if(s.drag_target) {
|
2492 |
$(document)
|
2493 |
+
.on("mousedown.jstree-" + this.get_index(), s.drag_target, $.proxy(function (e) {
|
2494 |
o = e.target;
|
2495 |
$.vakata.dnd.drag_start(e, { jstree : true, obj : e.target }, "<ins class='jstree-icon'></ins>" + $(e.target).text() );
|
2496 |
if(this.data.themes) {
|
2509 |
}
|
2510 |
if(s.drop_target) {
|
2511 |
$(document)
|
2512 |
+
.on("mouseenter.jstree-" + this.get_index(), s.drop_target, $.proxy(function (e) {
|
2513 |
if(this.data.dnd.active && this._get_settings().dnd.drop_check.call(this, { "o" : o, "r" : $(e.target), "e" : e })) {
|
2514 |
$.vakata.dnd.helper.children("ins").attr("class","jstree-ok");
|
2515 |
}
|
2516 |
}, this))
|
2517 |
+
.on("mouseleave.jstree-" + this.get_index(), s.drop_target, $.proxy(function (e) {
|
2518 |
if(this.data.dnd.active) {
|
2519 |
$.vakata.dnd.helper.children("ins").attr("class","jstree-invalid");
|
2520 |
}
|
2521 |
}, this))
|
2522 |
+
.on("mouseup.jstree-" + this.get_index(), s.drop_target, $.proxy(function (e) {
|
2523 |
if(this.data.dnd.active && $.vakata.dnd.helper.children("ins").hasClass("jstree-ok")) {
|
2524 |
this._get_settings().dnd.drop_finish.call(this, { "o" : o, "r" : $(e.target), "e" : e });
|
2525 |
}
|
2771 |
.on("loaded.jstree", $.proxy(function (e) {
|
2772 |
this._prepare_checkboxes();
|
2773 |
}, this))
|
2774 |
+
.on("click.jstree", (this.data.ui && this.data.checkbox.noui ? "a" : "ins.jstree-checkbox"), $.proxy(function (e) {
|
2775 |
e.preventDefault();
|
2776 |
if(this._get_node(e.target).hasClass("jstree-checked")) { this.uncheck_node(e.target); }
|
2777 |
else { this.check_node(e.target); }
|
3630 |
'#vakata-contextmenu li.vakata-separator { min-height:0; height:1px; line-height:1px; font-size:1px; overflow:hidden; margin:0 2px; background:silver; /* border-top:1px solid #fefefe; */ padding:0; } ';
|
3631 |
$.vakata.css.add_sheet({ str : css_string, title : "vakata" });
|
3632 |
$.vakata.context.cnt
|
3633 |
+
.on("click","a", function (e) { e.preventDefault(); })
|
3634 |
+
.on("mouseup","a", function (e) {
|
3635 |
if(!$(this).parent().hasClass("jstree-contextmenu-disabled") && $.vakata.context.exec($(this).attr("rel"))) {
|
3636 |
$.vakata.context.hide();
|
3637 |
}
|
3638 |
else { $(this).blur(); }
|
3639 |
})
|
3640 |
+
.on("mouseover","a", function () {
|
3641 |
$.vakata.context.cnt.find(".vakata-hover").removeClass("vakata-hover");
|
3642 |
})
|
3643 |
.appendTo("body");
|
3691 |
$.jstree.plugin("contextmenu", {
|
3692 |
__init : function () {
|
3693 |
this.get_container()
|
3694 |
+
.on("contextmenu.jstree", "a", $.proxy(function (e) {
|
3695 |
e.preventDefault();
|
3696 |
if(!$(e.currentTarget).hasClass("jstree-loading")) {
|
3697 |
this.show_contextmenu(e.currentTarget, e.pageX, e.pageY);
|
3698 |
}
|
3699 |
}, this))
|
3700 |
+
.on("click.jstree", "a", $.proxy(function (e) {
|
3701 |
if(this.data.contextmenu) {
|
3702 |
$.vakata.context.hide();
|
3703 |
}
|
4161 |
this.get_container()
|
4162 |
.addClass("ui-widget-content")
|
4163 |
.addClass("jstree-themeroller")
|
4164 |
+
.on("mouseenter.jstree", "a", function (e) {
|
4165 |
if(!$(e.currentTarget).hasClass("jstree-loading")) {
|
4166 |
$(this).addClass(s.item_h);
|
4167 |
}
|
4168 |
})
|
4169 |
+
.on("mouseleave.jstree", "a", function () {
|
4170 |
$(this).removeClass(s.item_h);
|
4171 |
})
|
4172 |
.on("init.jstree", $.proxy(function (e, data) {
|
4407 |
ref.children("a").attr("class",data.rslt.obj.children(".jstree-hovered").attr("class"));
|
4408 |
}
|
4409 |
}, this))
|
4410 |
+
.on("click.jstree", ".jstree-wholerow-span, ins.jstree-icon, li", function (e) {
|
4411 |
var n = $(e.currentTarget);
|
4412 |
if(e.target.tagName === "A" || (e.target.tagName === "INS" && n.closest("li").is(".jstree-open, .jstree-closed"))) { return; }
|
4413 |
n.closest("li").children("a:visible:eq(0)").click();
|
4414 |
e.stopImmediatePropagation();
|
4415 |
})
|
4416 |
+
.on("mouseover.jstree", "li", $.proxy(function (e) {
|
4417 |
e.stopImmediatePropagation();
|
4418 |
if($(e.currentTarget).children(".jstree-hovered, .jstree-clicked").length) { return false; }
|
4419 |
this.hover_node(e.currentTarget);
|
4420 |
return false;
|
4421 |
}, this))
|
4422 |
+
.on("mouseleave.jstree", "li", $.proxy(function (e) {
|
4423 |
if($(e.currentTarget).children("a").hasClass("jstree-hovered").length) { return; }
|
4424 |
this.dehover_node(e.currentTarget);
|
4425 |
}, this));
|