diff options
author | rvelices <rv-github@modusoptimus.com> | 2011-11-16 20:46:46 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2011-11-16 20:46:46 +0000 |
commit | 24e61772321906f3dd63801d1b11c3421fb86cab (patch) | |
tree | fcd1984828d88730052e52df2416c5e8740cd9ba /themes/default/js | |
parent | 0830ee14134df4b872e470450cfbdd3e2a873b10 (diff) |
simplify cross browser rating stars display
git-svn-id: http://piwigo.org/svn/trunk@12639 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'themes/default/js')
-rw-r--r-- | themes/default/js/rating.js | 3 |
1 files changed, 1 insertions, 2 deletions
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; } |