diff options
author | rvelices <rv-github@modusoptimus.com> | 2010-11-23 13:50:41 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2010-11-23 13:50:41 +0000 |
commit | 8e25506673706ea8b2deeb846e7ff9e8f846183b (patch) | |
tree | 0069fa3d3ba253d7af232e0d8852512ea82e39a4 /themes/default/js | |
parent | b5485d3210f63f2a62c27f72ffa936878a0ff4a3 (diff) |
small javascript and css simplification
git-svn-id: http://piwigo.org/svn/trunk@7852 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'themes/default/js')
-rw-r--r-- | themes/default/js/rating.js | 1 | ||||
-rw-r--r-- | themes/default/js/scripts.js | 32 |
2 files changed, 1 insertions, 32 deletions
diff --git a/themes/default/js/rating.js b/themes/default/js/rating.js index 0e3006ec2..f0f838c72 100644 --- a/themes/default/js/rating.js +++ b/themes/default/js/rating.js @@ -82,7 +82,6 @@ function updateRating(e) { var t = gRatingOptions.ratingSummaryText; var args =[result.average, result.count], idx = 0, rexp = new RegExp( /%\.?\d*[sdf]/ ); - //_xxx = t.match( rexp ); while (idx<args.length) t=t.replace(rexp, args[idx++]); gRatingOptions.ratingSummaryElement.innerHTML = t; } diff --git a/themes/default/js/scripts.js b/themes/default/js/scripts.js index 638fccbcf..0447d4c93 100644 --- a/themes/default/js/scripts.js +++ b/themes/default/js/scripts.js @@ -1,33 +1,3 @@ -function SelectAll( formulaire ) -{ -var elts = formulaire.elements; -for(var i=0; i <elts.length; i++) -{ - if (elts[i].type=='checkbox') - elts[i].checked = true; -} -} - -function DeselectAll( formulaire ) -{ -var elts = formulaire.elements; -for(var i=0; i <elts.length; i++) -{ - if (elts[i].type=='checkbox') - elts[i].checked = false; -} -} - -function Inverser( formulaire ) -{ -var elts = formulaire.elements; -for(var i=0; i <elts.length; i++) -{ - if (elts[i].type=='checkbox') - elts[i].checked = !elts[i].checked; -} -} - function phpWGOpenWindow(theURL,winName,features) { img = new Image(); @@ -62,7 +32,7 @@ function PwgWS(urlRoot) this.urlRoot = urlRoot; this.options = { method: "GET", - async: true, + async: true, onFailure: null, onSuccess: null }; |