From e2ee204c128717069c84437e0aa75bf14b6b352a Mon Sep 17 00:00:00 2001 From: rvelices Date: Sat, 12 Jul 2008 00:30:27 +0000 Subject: - add to caddie on picture page done through ajax git-svn-id: http://piwigo.org/svn/trunk@2429 68402e56-0260-453c-a942-63ccdbb3a9ee --- template-common/scripts.js | 66 ++++++++++++++++++++++------------------------ 1 file changed, 32 insertions(+), 34 deletions(-) (limited to 'template-common') diff --git a/template-common/scripts.js b/template-common/scripts.js index 452be1699..e7fa7e9b5 100644 --- a/template-common/scripts.js +++ b/template-common/scripts.js @@ -4,11 +4,11 @@ var 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; - } + if ( formulaire.elements[i].type=='checkbox' + && formulaire.elements[i].name != 'copie') + { + formulaire.elements[i].checked = true; + } } } @@ -18,11 +18,11 @@ var len = formulaire.elements.length; var i=0; for( i = 0; i < len; i++) { - if ( formulaire.elements[i].type=='checkbox' - && formulaire.elements[i].name != 'copie') - { + if ( formulaire.elements[i].type=='checkbox' + && formulaire.elements[i].name != 'copie') + { formulaire.elements[i].checked = false; - } + } } } @@ -32,44 +32,42 @@ var len = formulaire.elements.length; var i=0; for( i=0; i