Changeset 2970
- Timestamp:
- 01/02/08 09:34:13 (11 months ago)
- Files:
-
- voteplugin/0.11/tracvote/htdocs/js/tracvote.js (modified) (1 diff)
- voteplugin/0.11/tracvote/__init__.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
voteplugin/0.11/tracvote/htdocs/js/tracvote.js
r2967 r2970 8 8 $('#upvote img').attr('src', result[0]); 9 9 $('#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]); 11 12 $(button).blur(); 12 13 }); voteplugin/0.11/tracvote/__init__.py
r2967 r2970 159 159 up = tag.img(src=req.href.chrome('vote/' + self.image_map[vote][0])) 160 160 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': 162 162 down = tag.a(down, id='downvote', href=req.href.vote('down', resource), 163 163 title='Down-vote') … … 172 172 req.session['shown_vote_message'] = True 173 173 body, title = self.format_votes(resource) 174 votes = tag.span(body, id='votes' , title=title)174 votes = tag.span(body, id='votes') 175 175 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)) 177 177 178 178 def normalise_resource(self, resource):
