Add WebCms

This commit is contained in:
2016-11-07 12:56:17 -05:00
parent dfe92218f4
commit 15911f33c0
2750 changed files with 365672 additions and 133 deletions
@@ -0,0 +1,17 @@
(function ($) {
if(typeof $.metadata == "undefined") throw "jsTree metadata: jQuery metadata plugin not included.";
$.extend($.tree.plugins, {
"metadata" : {
defaults : {
attribute : "data"
},
callbacks : {
check : function(rule, obj, value, tree) {
var opts = $.extend(true, {}, $.tree.plugins.metadata.defaults, this.settings.plugins.metadata);
if(typeof $(obj).metadata({ type : "attr", name : opts.attribute })[rule] != "undefined") return $(obj).metadata()[rule];
}
}
}
});
})(jQuery);