Changeset 52433 in spip-zone


Ignore:
Timestamp:
Oct 4, 2011, 4:50:24 PM (8 years ago)
Author:
brunobergot@…
Message:

permettre l'annulation de vote avec le formulaire de base

Location:
_plugins_/notation
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/notation/css/notation.v2.css

    r37745 r52433  
    1313div.rating-cancel,div.star-rating{float:left;width:17px;height:15px;text-indent:-999em;cursor:pointer;display:block;background:transparent;overflow:hidden}
    1414div.star-rating,div.star-rating a{background:url('../img_pack/star.png') no-repeat 0 0px}
     15div.rating-cancel,div.rating-cancel a{background:url('../img_pack/delete.gif') no-repeat 0 -16px}
    1516div.rating-cancel a,div.star-rating a{display:block;width:16px;height:100%;background-position:0 0px;border:0}
    1617div.star-rating-on a{background-position:0 -16px!important}
     18div.rating-cancel.star-rating-on a{background-position:0 0!important}
    1719div.star-rating-hover a{background-position:0 -32px}
     20div.rating-cancel.star-rating-hover a{background-position:0 -16px}
    1821/* Read Only CSS */
    1922div.star-rating-readonly a,div.star-rating-readonly{cursor:default !important}
  • _plugins_/notation/inc/notation_balises.php

    r43234 r52433  
    2323                $class = $clicable ? 'auto-submit-star' : 'star';
    2424                $disabled = $clicable ? '' : " disabled='disabled'";
     25                $ret .= "<input name='notation-$id' type='radio' class='$class rating-cancel' value='-1'$checked$disabled />\n";
    2526                for ($i=1; $i<=notation_get_nb_notes(); $i++){
    2627                        $checked = ($i==$nb) ? " checked='checked'" : "";
Note: See TracChangeset for help on using the changeset viewer.