mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
simplify cross browser rating stars display
git-svn-id: http://piwigo.org/svn/trunk@12639 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -23,6 +23,3 @@
|
||||
display: block;
|
||||
}
|
||||
|
||||
INPUT[type='submit'] {
|
||||
text-indent: 0px !important;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user