|
@@ -1,4 +1,19 @@
|
|
|
define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'jstree'], function ($, undefined, Backend, Table, Form) {
|
|
|
+ $.jstree.core.prototype.get_all_checked = function (full) {
|
|
|
+ var obj = this.get_selected(), i, j;
|
|
|
+ for (i = 0, j = obj.length; i < j; i++) {
|
|
|
+ obj = obj.concat(this.get_node(obj[i]).parents);
|
|
|
+ }
|
|
|
+ obj = $.grep(obj, function (v, i, a) {
|
|
|
+ return v != '#';
|
|
|
+ });
|
|
|
+ obj = obj.filter(function (itm, i, a) {
|
|
|
+ return i == a.indexOf(itm);
|
|
|
+ });
|
|
|
+ return full ? $.map(obj, $.proxy(function (i) {
|
|
|
+ return this.get_node(i);
|
|
|
+ }, this)) : obj;
|
|
|
+ };
|
|
|
let extend;
|
|
|
var Controller = {
|
|
|
index: function () {
|