Jump to content

Client Area Ticket Raiting Template Problem


BryanB

Recommended Posts

Can anyone tell me why the stars in the ticket rating section of my template look like this:

 

00001284.png

 

At first there are no stars and then when I mouse over that area they appear as 1 and 1/2 star under neath.

 

This is on viewticket.php

 

Here is that part of viewticket.tpl:

 

{literal}
<script language="javascript">
$(document).ready(function(){
   $("#addfileupload").click(function () {
       $("#fileuploads").append("<input type=\"file\" name=\"attachments[]\" size=\"50\"><br />");
       return false;
   });
});
function rating_hover(id) {
 var selrating=id.split('_');
 for(var i=1; i<=5; i++){
   if(i<=selrating[1]) document.getElementById(selrating[0]+'_'+i).style.background="url(images/rating_pos.png)";
   if(i>selrating[1]) document.getElementById(selrating[0]+'_'+i).style.background="url(images/rating_neg.png)";
 }
}
function rating_leave(id){
 for(var i=1; i<=5; i++){
   document.getElementById(id+'_'+i).style.background="url(images/rating_neg.png)";
 }
}
function rating_select(id){
 {/literal}window.location='viewticket.php?tid={$tid}&c={$c}&rating='+id;{literal}
}
</script>
{/literal}
<h2>{$LANG.supportticketsviewticket} #{$tid}</h2>
{if $errormessage}
<div class="errorbox">{$errormessage}</div>
<br />
{/if}

 

 

Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated