Changeset 2970

Show
Ignore:
Timestamp:
01/02/08 09:34:13 (11 months ago)
Author:
athomas
Message:

Minor fixups.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • voteplugin/0.11/tracvote/htdocs/js/tracvote.js

    r2967 r2970  
    88      $('#upvote img').attr('src', result[0]); 
    99      $('#downvote img').attr('src', result[1]); 
    10       $('#votes').attr('title', result[3]).empty().prepend(result[2]); 
     10      $('#vote').attr('title', result[3]) 
     11      $('#votes').empty().prepend(result[2]); 
    1112      $(button).blur(); 
    1213    }); 
  • voteplugin/0.11/tracvote/__init__.py

    r2967 r2970  
    159159        up = tag.img(src=req.href.chrome('vote/' + self.image_map[vote][0])) 
    160160        down = tag.img(src=req.href.chrome('vote/' + self.image_map[vote][1])) 
    161         if 'VOTE_MODIFY' in req.perm
     161        if 'VOTE_MODIFY' in req.perm and get_reporter_id(req) != 'anonymous'
    162162            down = tag.a(down, id='downvote', href=req.href.vote('down', resource), 
    163163                         title='Down-vote') 
     
    172172                req.session['shown_vote_message'] = True 
    173173        body, title = self.format_votes(resource) 
    174         votes = tag.span(body, id='votes', title=title
     174        votes = tag.span(body, id='votes'
    175175        add_stylesheet(req, 'vote/css/tracvote.css') 
    176         add_ctxtnav(req, tag.span(up, votes, down, id='vote')) 
     176        add_ctxtnav(req, tag.span(up, votes, down, id='vote', title=title)) 
    177177 
    178178    def normalise_resource(self, resource):