[web] Stop patching jquery.treeview.js
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 22 Oct 2014 14:39:51 +0200
changeset 10098 e8889211f256
parent 10097 e62d2c73784f
child 10099 12f4f2509a38
[web] Stop patching jquery.treeview.js This logically reverts part of e9b7cd2e9012 "allow treeview to work correctly in a tab #345293". The treeview and ajax code have suffered a number of changes since then, this change doesn't seem to be necessary anymore. It is most likely unneeded since f65208c9dbdc "[javascript] use jQuery.one('ajax-loaded') instead of jQuery.bind() in add_onload to avoid multiple callback executions".
web/data/jquery.treeview.js
--- a/web/data/jquery.treeview.js	Wed Oct 22 14:28:01 2014 +0200
+++ b/web/data/jquery.treeview.js	Wed Oct 22 14:39:51 2014 +0200
@@ -76,10 +76,6 @@
             this.find("div." + CLASSES.hitarea).click(toggler);
         },
         treeview: function(settings) {
-            if (this.attr("cubicweb:type") == "prepared-treeview") {
-                return this;
-            }
-            this.attr("cubicweb:type", "prepared-treeview");
             settings = $.extend({
                 cookieId: "treeview"
             }, settings);