mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-03 07:13:59 +01:00
openCloseDir changes onClick & gets dir branch
Change onclick event by setting 2nd param to false so it doesn't reload Broke setting of node.nextSibling down into 2 new items, may revise this If we're due to load, pass that through to get-tree.php in the fileControl iFrame to begin the process
This commit is contained in:
@@ -378,8 +378,14 @@ var ICEcoder = {
|
||||
// ==============
|
||||
|
||||
// Open/close dirs on demand
|
||||
openCloseDir: function(dir) {
|
||||
var node = dir.parentNode.nextSibling.nextSibling;
|
||||
openCloseDir: function(dir,load) {
|
||||
dir.onclick = function() {top.ICEcoder.openCloseDir(this,false)};
|
||||
var node = dir.parentNode;
|
||||
if (node.nextSibling) {node = node.nextSibling};
|
||||
if (node.nextSibling) {node = node.nextSibling};
|
||||
if (load) {
|
||||
top.ICEcoder.filesFrame.contentWindow.frames['fileControl'].location.href = "lib/get-tree.php?location="+dir.childNodes[1].id;
|
||||
}
|
||||
if (node && node.tagName=="UL") {
|
||||
var d = node.style.display=="none";
|
||||
node.style.display = d ? "block" : "none";
|
||||
|
||||
Reference in New Issue
Block a user