[Fixed] Rate reply for ticket replies should highlight previous stars

aref younessi
Offline
Topics: 6
Replies: 12
Joined: 03/01/2013

Currently only the star hovered on will highlight when attempting to rate a reply.

Not so much a bug, but expected ui behaviour from users so we need to make the previous stars highlight too during the hover phase.


iwhost

24/06/2014 20:31:10

Lee Mason
Offline
Topics: 174
Replies: 407
Moderator

Fixed 1.0.1, also added pointer icon to mouse to imply they are clickable.


Director at No Half Pixels Ltd.

28/06/2014 13:13:09

aref younessi
Offline
Topics: 6
Replies: 12
Joined: 03/01/2013

My opinion:

edite file viewticket.tpl

 

find line:

 <p class="ticketrating">
                                    {$LANG.ticketratingquestion}:&nbsp;
                                    {foreach from=$ratings item=rating}
                                        <i class="icon-star-empty" id="rate{$reply.id}_{$rating}" data-tid="{$tid}" data-c="{$c}"></i>

{/foreach}

remove line and replace :

   <p class="ticketrating">
                                    {$LANG.ticketratingquestion}:&nbsp;

<td class="point" onmouseover="rating_hover('rate{$reply.id}_1')" onclick="rating_select('{$tid}','{$c}','rate{$reply.id}_1')"><strong>{$LANG.ticketratingpoor}&nbsp;</strong></td>
                {foreach from=$ratings item=rating}
<i class="icon-star-empty" id="rate{$reply.id}_{$rating}" data-tid="{$tid}" data-c="{$c}" ></i>
                {/foreach}
                <td class="point" onmouseover="rating_hover('rate{$reply.id}_5')" onclick="rating_select('{$tid}','{$c}','rate{$reply.id}_5')"><strong>&nbsp;{$LANG.ticketratingexcellent}</strong></td>

 


iwhost

12/05/2015 17:18:23