aboutsummaryrefslogtreecommitdiffstats
path: root/template-common
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2008-12-21 20:45:12 +0000
committerplegall <plg@piwigo.org>2008-12-21 20:45:12 +0000
commit9330d8df50892938f4da44743588a958e83298c1 (patch)
tree5c664affdf50a75e08b0397b38f50271556ac6f6 /template-common
parente6c2587e7cde30e338da121a22e943761b2ce7f4 (diff)
modification: instructions are displayed by blocks that can be expanded
individually. The icon doesn't fit with roma theme currently. git-svn-id: http://piwigo.org/svn/branches/2.0@3009 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'template-common')
-rw-r--r--template-common/scripts.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/template-common/scripts.js b/template-common/scripts.js
index 519786ab7..f6b22b41c 100644
--- a/template-common/scripts.js
+++ b/template-common/scripts.js
@@ -90,6 +90,24 @@ function PwgWS(urlRoot)
};
};
+function blockToggleDisplay(headerId, contentId)
+{
+ var revHeader = document.getElementById(headerId);
+ var revContent = document.getElementById(contentId);
+
+ if (revContent.style.display == 'none')
+ {
+ revContent.style.display = 'block';
+ revHeader.className = 'instructionBlockHeaderExpanded';
+ }
+ else
+ {
+ revContent.style.display = 'none';
+ revHeader.className = 'instructionBlockHeaderCollapsed';
+ }
+}
+
+
PwgWS.prototype = {
callService : function(method, parameters, options)