summaryrefslogtreecommitdiff
path: root/plugins/BasicHistory/history.js
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-07-05 13:27:02 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-07-05 13:27:02 +0000
commit3a56ba391bf176c11cc5bde6f860759a3ce4477c (patch)
treee6e82e3d87e43303e1e01fb2b206a812f3683af6 /plugins/BasicHistory/history.js
parentcde14766d167f10dbad62c66acc0c7cc9d62f518 (diff)
BasicHistory: folder structure change
git-svn-id: http://svn.miranda-ng.org/main/trunk@773 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/BasicHistory/history.js')
-rw-r--r--plugins/BasicHistory/history.js95
1 files changed, 0 insertions, 95 deletions
diff --git a/plugins/BasicHistory/history.js b/plugins/BasicHistory/history.js
deleted file mode 100644
index 4d2156ac24..0000000000
--- a/plugins/BasicHistory/history.js
+++ /dev/null
@@ -1,95 +0,0 @@
-
-function toggleFolder(id, imageNode)
-{
- var folder = document.getElementById(id);
- if (imageNode.previousSibling != null)
- {
- imageNode = imageNode.previousSibling;
- }
- var l = imageNode.src.length;
- if (folder == null)
- {
- }
- else if (folder.style.display == "block")
- {
- if (imageNode != null)
- {
- if (imageNode.src.substring(l-9,l) == "mnode.ico")
- {
- imageNode.src = imageNode.src.substring(0, l-9) + "pnode.ico";
- }
- }
- folder.style.display = "none";
- }
- else
- {
- if (imageNode != null)
- {
- if (imageNode.src.substring(l-9,l) == "pnode.ico")
- {
- imageNode.src = imageNode.src.substring(0, l-9) + "mnode.ico";
- }
- }
- folder.style.display = "block";
- }
-}
-
-var timer;
-
-function ShowMenu(isShow)
-{
- if(timer)
- clearTimeout(timer);
-
- var menu = document.getElementById("L1");
- if(isShow == 1)
- menu.style.visibility = "visible";
- else
- menu.style.visibility = "hidden";
-}
-
-function HideMenu()
-{
- timer = setTimeout("ShowMenu(0)", 500);
-}
-
-function OpenAll(isOpen)
-{
- var idMod = 0;
- while(gr = document.getElementById("group" + idMod))
- {
- var imageNode = gr.previousSibling;
- if(imageNode.tagName == null)
- imageNode = imageNode.previousSibling;
- imageNode = imageNode.getElementsByTagName("span")[0].getElementsByTagName("img")[0];
- var l = imageNode.src.length;
- if(gr.style.display == "block")
- {
- if(!isOpen)
- {
- if (imageNode != null)
- {
- if (imageNode.src.substring(l-9,l) == "mnode.ico")
- {
- imageNode.src = imageNode.src.substring(0, l-9) + "pnode.ico";
- }
- }
- gr.style.display = "none";
- }
- }
- else if(isOpen)
- {
- if (imageNode != null)
- {
- if (imageNode.src.substring(l-9,l) == "pnode.ico")
- {
- imageNode.src = imageNode.src.substring(0, l-9) + "mnode.ico";
- }
- }
- gr.style.display = "block";
- }
- ++idMod;
- }
-
- ShowMenu(0);
-}