aboutsummaryrefslogtreecommitdiffstats
path: root/include/scripts.js
diff options
context:
space:
mode:
authorgweltas <gweltas@piwigo.org>2004-10-01 22:50:50 +0000
committergweltas <gweltas@piwigo.org>2004-10-01 22:50:50 +0000
commit28dcfea993edd4e4ff9eb06e49ec6b2ef326396d (patch)
tree220cef989b059166d1d89faf93b904978d3e0458 /include/scripts.js
parente7b24ebdd081c86555b0c07ca18cbf205ab0bacd (diff)
- Change of the picture page behavior to be able to open the full size image in a new window
- Minor modification for template migration - Rename of script.js in scripts.js git-svn-id: http://piwigo.org/svn/trunk@539 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/scripts.js')
-rw-r--r--include/scripts.js32
1 files changed, 32 insertions, 0 deletions
diff --git a/include/scripts.js b/include/scripts.js
new file mode 100644
index 000000000..43fb86644
--- /dev/null
+++ b/include/scripts.js
@@ -0,0 +1,32 @@
+function SelectAll( formulaire )
+{
+len = formulaire.elements.length;
+var i=0;
+for( i = 0; i < len; i++)
+{
+ if ( formulaire.elements[i].type=='checkbox'
+ && formulaire.elements[i].name != 'copie')
+ {
+ formulaire.elements[i].checked = true;
+ }
+}
+}
+
+function Inverser( formulaire )
+{
+len = formulaire.elements.length;
+var i=0;
+for( i=0; i<len; i++)
+{
+ if ( formulaire.elements[i].type=='checkbox'
+ && formulaire.elements[i].name != 'copie')
+ {
+ formulaire.elements[i].checked = !formulaire.elements[i].checked;
+ }
+}
+}
+
+function phpWGOpenWindow(theURL,winName,features)
+{
+ window.open(theURL,winName,features);
+} \ No newline at end of file