From 14778ce673277f2df41f963aa70df1cbed427294 Mon Sep 17 00:00:00 2001 From: plegall Date: Sat, 13 Mar 2010 00:00:52 +0000 Subject: feature 1502: based on Dotclear model, P@t has reorganized the way Piwigo manages template/theme in a simpler "theme only level" architecture. It supports multiple level inheritance. git-svn-id: http://piwigo.org/svn/trunk@5123 68402e56-0260-453c-a942-63ccdbb3a9ee --- template/yoga/rating.js | 100 ------------------------------------------------ 1 file changed, 100 deletions(-) delete mode 100644 template/yoga/rating.js (limited to 'template/yoga/rating.js') diff --git a/template/yoga/rating.js b/template/yoga/rating.js deleted file mode 100644 index 9b8370e93..000000000 --- a/template/yoga/rating.js +++ /dev/null @@ -1,100 +0,0 @@ -var gRatingOptions, gRatingButtons, gUserRating; - -function makeNiceRatingForm(options) -{ - gRatingOptions = options || {}; - var form = document.getElementById('rateForm'); - if (!form) return; //? template changed - - gRatingButtons = form.getElementsByTagName('input'); - gUserRating = ""; - for (var i=0; i0 && 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); - } - } - resetRatingStarDisplay(); -} - -function resetRatingStarDisplay() -{ - updateRatingStarDisplay( gUserRating ); -} - -function updateRatingStarDisplay(userRating) -{ - for (var i=0; i=gRatingButtons[i].initialRateValue ) ? "rateButtonStarFull" : "rateButtonStarEmpty"; -} - -function updateRatingStarDisplayEvt(e) -{ - updateRatingStarDisplay( - e.target ? e.target.initialRateValue : e.srcElement.initialRateValue); -} - -function updateRating(e) -{ - var rateButton = e.target || e.srcElement; - if (rateButton.initialRateValue == gUserRating) - return false; //nothing to do - - for (var i=0; i