From f4d4a3dbcf0ef0e56ff120410ac3e8dee03bfa35 Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 22 Jun 2010 19:40:31 +0000 Subject: merge r6575-6576 from branch 2.1 -removed use of fix-khtml.css (I tried Safari and it does not need it) - better javascript funcs + shorter notation git-svn-id: http://piwigo.org/svn/trunk@6577 68402e56-0260-453c-a942-63ccdbb3a9ee --- themes/default/js/rating.js | 17 +++------- themes/default/js/scripts.js | 72 +++++++++++++++++-------------------------- themes/default/local_head.tpl | 2 -- themes/default/theme.css | 18 +++++------ 4 files changed, 43 insertions(+), 66 deletions(-) (limited to 'themes') diff --git a/themes/default/js/rating.js b/themes/default/js/rating.js index 9b8370e93..0e3006ec2 100644 --- a/themes/default/js/rating.js +++ b/themes/default/js/rating.js @@ -35,16 +35,9 @@ function makeNiceRatingForm(options) if (i>0 && rateButton.previousSibling.nodeType == 3 /*TEXT_NODE*/) rateButton.parentNode.removeChild(rateButton.previousSibling); - if(window.addEventListener){ // Mozilla, Netscape, Firefox - rateButton.addEventListener("click", updateRating, false ); - rateButton.addEventListener("mouseout", resetRatingStarDisplay, false ); - rateButton.addEventListener("mouseover", updateRatingStarDisplayEvt, false ); - } - else if(window.attachEvent) { // IE - rateButton.attachEvent("onclick", updateRating); - rateButton.attachEvent("onmouseout", resetRatingStarDisplay); - rateButton.attachEvent("onmouseover", updateRatingStarDisplayEvt); - } + pwgAddEventListener(rateButton, "click", updateRating); + pwgAddEventListener(rateButton, "mouseout", resetRatingStarDisplay); + pwgAddEventListener(rateButton, "mouseover", updateRatingStarDisplayEvt); } resetRatingStarDisplay(); } @@ -88,8 +81,8 @@ function updateRating(e) if (gRatingOptions.ratingSummaryElement) { var t = gRatingOptions.ratingSummaryText; - var args =[result.average, result.count, result.stdev], idx = 0, rexp = new RegExp( /%\.?\d*[sdf]/ ); - _xxx = t.match( rexp ); + var args =[result.average, result.count], idx = 0, rexp = new RegExp( /%\.?\d*[sdf]/ ); + //_xxx = t.match( rexp ); while (idx diff --git a/themes/default/theme.css b/themes/default/theme.css index a7fa56b83..36b1522f2 100644 --- a/themes/default/theme.css +++ b/themes/default/theme.css @@ -25,7 +25,7 @@ /* H2 properties copied here */ #menubar DT { font-weight: bold; - padding: 5px 5px 5px 5px; + padding: 5px; font-size: 120%; text-align: center; } @@ -219,7 +219,7 @@ DIV.calImg { .calBackDate { padding-left: 4px; - padding-top: 0px; + padding-top: 0; z-index: 2; position: absolute; vertical-align: top; @@ -252,7 +252,7 @@ DIV.calImg { .content DIV.thumbnailCategory { display:block; - padding: 2px 0px 0px 2px; + padding: 2px 0 0 2px; margin: 5px; } @@ -627,7 +627,7 @@ UL.actions A, UL.actions IMG { UL.tagSelection { width: 99%; - margin: 1em 0 1em 0; + margin: 1em 0; padding: 0; } @@ -642,7 +642,7 @@ UL.tagSelection LI { font-size: 120%; text-align: justify; padding: 0; - margin: 1em 2em 1em 2em; + margin: 1em 2em; } #fullTagCloud SPAN { @@ -813,7 +813,7 @@ INPUT.rateButton, INPUT.rateButtonSelected, INPUT.rateButtonStarFull, INPUT.rate padding: 10px 50px 10px 10px; } -/* Informations box in administration */ +/* Informations box */ .infos { color: #002000; background-color: #98fb98; /* palegreen */ @@ -834,16 +834,16 @@ INPUT.rateButton, INPUT.rateButtonSelected, INPUT.rateButtonStarFull, INPUT.rate padding: 1px; } -/* Header notes box in public/administration */ +/* Header notes box */ .header_notes { - border: 1px solid #aaaaaa; /* border color and style */ + border: 1px solid #aaa; text-align: center; background-image: url(icon/note.png); background-repeat: no-repeat; background-position: top left; font-weight: bold; margin: 14px; - padding: 5px 00px 0px 0px; + padding: 5px 0 0 0; } LEGEND { -- cgit v1.2.3