aboutsummaryrefslogtreecommitdiffstats
path: root/template-common/scripts.js
diff options
context:
space:
mode:
Diffstat (limited to 'template-common/scripts.js')
-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)