From 24e61772321906f3dd63801d1b11c3421fb86cab Mon Sep 17 00:00:00 2001 From: rvelices Date: Wed, 16 Nov 2011 20:46:46 +0000 Subject: simplify cross browser rating stars display git-svn-id: http://piwigo.org/svn/trunk@12639 68402e56-0260-453c-a942-63ccdbb3a9ee --- themes/default/js/rating.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'themes/default/js') diff --git a/themes/default/js/rating.js b/themes/default/js/rating.js index 3bc846681..6e382d7a7 100644 --- a/themes/default/js/rating.js +++ b/themes/default/js/rating.js @@ -23,10 +23,9 @@ function makeNiceRatingForm(options) rateButton.initialRateValue = rateButton.value; // save it as a property try { rateButton.type = "button"; } catch (e){}// avoid normal submit (use ajax); not working in IE6 - if (navigator.userAgent.indexOf('AppleWebKit/')==-1 && navigator.userAgent.indexOf('MSIE 8')==-1) rateButton.value = ""; //hide the text IE<8/Opera - breaks safari + rateButton.value = " "; //hide the text (Apple + IE would show text above the stars) with (rateButton.style) { - textIndent = "-50px"; //hide the text FF marginLeft = marginRight = 0; } -- cgit v1.2.3