Confirmedusers, editor, Administrators
886
edits
CreativeMD (talk | contribs) No edit summary |
CreativeMD (talk | contribs) No edit summary |
||
Line 171: | Line 171: | ||
width: $el.width() + 12, | width: $el.width() + 12, | ||
opened: true, | opened: true, | ||
parentOpened() { | parentOpened: function() { | ||
if (this.opened) { | if (this.opened) { | ||
this.el.show(); | this.el.show(); | ||
Line 179: | Line 179: | ||
}); | }); | ||
}, | }, | ||
parentClosed() { | parentClosed: function() { | ||
this.el.hide(); | this.el.hide(); | ||
children.forEach(function (child) { | children.forEach(function (child) { | ||
Line 185: | Line 185: | ||
}); | }); | ||
}, | }, | ||
show() { | show: function() { | ||
this.opened = true; | this.opened = true; | ||
this.el.show(); | this.el.show(); | ||
Line 192: | Line 192: | ||
}); | }); | ||
}, | }, | ||
slideUp() { | slideUp: function() { | ||
this.opened = true; | this.opened = true; | ||
this.el.show(); | this.el.show(); | ||
Line 203: | Line 203: | ||
$("." + this.el.attr("data-tt-id")).slideRow("up", 400, function () { clearInterval(lineUpdateUp); updateLines(); }); | $("." + this.el.attr("data-tt-id")).slideRow("up", 400, function () { clearInterval(lineUpdateUp); updateLines(); }); | ||
}, | }, | ||
hide() { | hide: function() { | ||
this.opened = false; | this.opened = false; | ||
this.el.hide(); | this.el.hide(); | ||
Line 210: | Line 210: | ||
}); | }); | ||
}, | }, | ||
slideDown() { | slideDown: function() { | ||
this.opened = false; | this.opened = false; | ||
this.el.hide(); | this.el.hide(); |