{:uriI"Øfile:///Users/bmartin/.rvm/gems/ruby-2.4.0/gems/trusty-cms-3.1.0/app/assets/javascripts/admin/treetable.js?type=application/javascript&pipeline=self&id=6b5b2221b500a9668b6eeeb7d0c69de32a4999de6ba05c1b1749075af34a3ec8:ET:load_pathI"U/Users/bmartin/.rvm/gems/ruby-2.4.0/gems/trusty-cms-3.1.0/app/assets/javascripts;T: filenameI"h/Users/bmartin/.rvm/gems/ruby-2.4.0/gems/trusty-cms-3.1.0/app/assets/javascripts/admin/treetable.js;T: nameI"admin/treetable;T:logical_pathI"admin/treetable.self.js;T:content_typeI"application/javascript;T: sourceI" $(function() { var persistStore = new Persist.Store("Trusty CMS"); var needToExpand = []; $("#pages").treetable({ expandable: true, initialState: "collapsed", onNodeCollapse: function() { var node = this; persistStore.remove(node.id); $("#pages").treetable("unloadBranch", this); }, onInitialized: function() { var length = needToExpand.length; for (var i = 0; i < length; i++) $("#pages").treetable("expandNode", needToExpand[i]); }, onNodeInitialized: function() { var node = this; var state = persistStore.get(node.id); if (state) { needToExpand.push(node.id); } }, onNodeExpand: function() { var node = this; var spinner = $($(node.row[0]).find(".busy")[0]); spinner.show(); persistStore.set(node.id, 'expanded'); // Render loader/spinner while loading $.ajax({ async: true, // Must be false, otherwise loadBranch happens after showChildren? url: "/admin/pages/" + node.row.data('ttPageId') + "/children?index=" + node.id }).done(function(html) { var rows = $(html).filter("tr"); $("#pages").treetable("loadBranch", node, rows); $.each(node.children, function() { var state = persistStore.get(this.id); if (state) { $("#pages").treetable("expandNode", this.id); } }); $('a.dropdown').each(function(){ Dropdown.setup(this); }); spinner.hide(); }); } }); }); ;T: metadata{ :dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"vfile-digest:///Users/bmartin/.rvm/gems/ruby-2.4.0/gems/trusty-cms-3.1.0/app/assets/javascripts/admin/treetable.js;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%ØX÷ÛæœV·˜ï¥æ–ᢞ!ß ÖÀUÕ: lengthi:dependencies_digest"%Ï¡n\©x úÒ\Ÿûùq,í>ú£¶R¢N0 kÞe:idI"E6b5b2221b500a9668b6eeeb7d0c69de32a4999de6ba05c1b1749075af34a3ec8;F: mtimel+؉Y