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 expanding parents.
Download this release
Release Info
Developer | jchristopher |
Plugin | CMS Tree Page View |
Version | 1.6.3 |
Comparing to | |
See all releases |
Code changes from version 1.6.2 to 1.6.3
- index.php +2 -2
- readme.txt +7 -1
- scripts/jquery.jstree.js +5 -4
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
|
@@ -29,7 +29,7 @@ License: GPL2
|
|
29 |
|
30 |
#require("functions.php");
|
31 |
|
32 |
-
define( "CMS_TPV_VERSION", "1.6.
|
33 |
define( "CMS_TPV_NAME", "CMS Tree Page View");
|
34 |
|
35 |
require(dirname(__FILE__) . "/functions.php");
|
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.3
|
9 |
Author: Jon Christopher
|
10 |
Author URI: https://jonchristopher.us/
|
11 |
License: GPL2
|
29 |
|
30 |
#require("functions.php");
|
31 |
|
32 |
+
define( "CMS_TPV_VERSION", "1.6.3");
|
33 |
define( "CMS_TPV_NAME", "CMS Tree Page View");
|
34 |
|
35 |
require(dirname(__FILE__) . "/functions.php");
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: page, pages, posts, custom posts, tree, cms, dashboard, overview, drag-and
|
|
5 |
Text Domain: cms-tree-page-view
|
6 |
Requires at least: 3.8
|
7 |
Tested up to: 5.6.0
|
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,6 +116,12 @@ Now the tree with the pages will be visible both on the dashboard and in the men
|
|
116 |
|
117 |
== Changelog ==
|
118 |
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
= 1.6.2 (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!
|
5 |
Text Domain: cms-tree-page-view
|
6 |
Requires at least: 3.8
|
7 |
Tested up to: 5.6.0
|
8 |
+
Stable tag: 1.6.3
|
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.3 (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 expanding parents.
|
124 |
+
|
125 |
= 1.6.2 (December 2020) =
|
126 |
|
127 |
Please [create Issues](https://github.com/jchristopher/cms-tree-page-view/issues) for any jQuery deprecations (or other issues) you come across!
|
scripts/jquery.jstree.js
CHANGED
@@ -289,6 +289,7 @@ if (!Array.isArray) {
|
|
289 |
'.jstree ins { display:inline-block; text-decoration:none; width:18px; height:18px; margin:0 0 0 0; padding:0; } ' +
|
290 |
'.jstree a { display:inline-block; line-height:16px; height:16px; color:black; white-space:nowrap; text-decoration:none; padding:1px 2px; margin:0; } ' +
|
291 |
'.jstree a:focus { outline: none; } ' +
|
|
|
292 |
'.jstree a > ins { height:16px; width:16px; } ' +
|
293 |
'.jstree a > .jstree-icon { margin-right:3px; } ' +
|
294 |
'.jstree-rtl a > .jstree-icon { margin-left:3px; margin-right:0; } ' +
|
@@ -364,7 +365,7 @@ if (!Array.isArray) {
|
|
364 |
this.data.core.li_height = this.get_container_ul().find("li.jstree-closed, li.jstree-leaf").eq(0).height() || 18;
|
365 |
|
366 |
this.get_container()
|
367 |
-
.on("li > ins",
|
368 |
var trgt = $(event.target);
|
369 |
if(trgt.is("ins") && event.pageY - trgt.offset().top < this.data.core.li_height) { this.toggle_node(trgt); }
|
370 |
}, this))
|
@@ -1012,19 +1013,19 @@ if (!Array.isArray) {
|
|
1012 |
this.data.ui.to_select = this.get_settings().ui.initially_select;
|
1013 |
|
1014 |
this.get_container()
|
1015 |
-
.on("
|
1016 |
event.preventDefault();
|
1017 |
event.currentTarget.blur();
|
1018 |
if(!$(event.currentTarget).hasClass("jstree-loading")) {
|
1019 |
this.select_node(event.currentTarget, true, event);
|
1020 |
}
|
1021 |
}, this))
|
1022 |
-
.on("
|
1023 |
if(!$(event.currentTarget).hasClass("jstree-loading")) {
|
1024 |
this.hover_node(event.target);
|
1025 |
}
|
1026 |
}, this))
|
1027 |
-
.on("
|
1028 |
if(!$(event.currentTarget).hasClass("jstree-loading")) {
|
1029 |
this.dehover_node(event.target);
|
1030 |
}
|
289 |
'.jstree ins { display:inline-block; text-decoration:none; width:18px; height:18px; margin:0 0 0 0; padding:0; } ' +
|
290 |
'.jstree a { display:inline-block; line-height:16px; height:16px; color:black; white-space:nowrap; text-decoration:none; padding:1px 2px; margin:0; } ' +
|
291 |
'.jstree a:focus { outline: none; } ' +
|
292 |
+
'.jstree li > ins { transform: translateY(-5px); } ' +
|
293 |
'.jstree a > ins { height:16px; width:16px; } ' +
|
294 |
'.jstree a > .jstree-icon { margin-right:3px; } ' +
|
295 |
'.jstree-rtl a > .jstree-icon { margin-left:3px; margin-right:0; } ' +
|
365 |
this.data.core.li_height = this.get_container_ul().find("li.jstree-closed, li.jstree-leaf").eq(0).height() || 18;
|
366 |
|
367 |
this.get_container()
|
368 |
+
.on("click.jstree", "li > ins", $.proxy(function (event) {
|
369 |
var trgt = $(event.target);
|
370 |
if(trgt.is("ins") && event.pageY - trgt.offset().top < this.data.core.li_height) { this.toggle_node(trgt); }
|
371 |
}, this))
|
1013 |
this.data.ui.to_select = this.get_settings().ui.initially_select;
|
1014 |
|
1015 |
this.get_container()
|
1016 |
+
.on("click.jstree", "a", $.proxy(function (event) {
|
1017 |
event.preventDefault();
|
1018 |
event.currentTarget.blur();
|
1019 |
if(!$(event.currentTarget).hasClass("jstree-loading")) {
|
1020 |
this.select_node(event.currentTarget, true, event);
|
1021 |
}
|
1022 |
}, this))
|
1023 |
+
.on("mouseenter.jstree", "a", $.proxy(function (event) {
|
1024 |
if(!$(event.currentTarget).hasClass("jstree-loading")) {
|
1025 |
this.hover_node(event.target);
|
1026 |
}
|
1027 |
}, this))
|
1028 |
+
.on("mouseleave.jstree", "a", $.proxy(function (event) {
|
1029 |
if(!$(event.currentTarget).hasClass("jstree-loading")) {
|
1030 |
this.dehover_node(event.target);
|
1031 |
}
|