Revision: 1852
Author: olavmrk
Date: Wed Oct 14 00:44:32 2009
Log: www/resources/script.js: Add show and hide functions.
http://code.google.com/p/simplesamlphp/source/detail?r=1852

Modified:
  /trunk/www/resources/script.js

=======================================
--- /trunk/www/resources/script.js      Thu Jun 12 06:27:52 2008
+++ /trunk/www/resources/script.js      Wed Oct 14 00:44:32 2009
@@ -9,3 +9,33 @@
      element.focus();
    }
  }
+
+
+/**
+ * Show the given DOM element.
+ *
+ * @param id  The id of the element which should be shown.
+ */
+function SimpleSAML_show(id) {
+  element = document.getElementById(id);
+  if (element == null) {
+    return;
+  }
+
+  element.style.display = 'block';
+}
+
+
+/**
+ * Hide the given DOM element.
+ *
+ * @param id  The id of the element which should be hidden.
+ */
+function SimpleSAML_hide(id) {
+  element = document.getElementById(id);
+  if (element == null) {
+    return;
+  }
+
+  element.style.display = 'none';
+}

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"simpleSAMLphp commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/simplesamlphp-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to