diff options
author | Vlad Bokov <razum2um@mail.ru> | 2011-10-25 14:16:33 +0700 |
---|---|---|
committer | Vlad Bokov <razum2um@mail.ru> | 2011-10-25 14:16:33 +0700 |
commit | 9bda8898825233886c3bcd9b116be3956d6de84e (patch) | |
tree | 33fec93a31e62d882807dd9fc83844eb08568fc0 | |
parent | 0ae572a6df6d79924f5e19b1c06707261091db74 (diff) | |
download | askbot-9bda8898825233886c3bcd9b116be3956d6de84e.tar.gz askbot-9bda8898825233886c3bcd9b116be3956d6de84e.tar.bz2 askbot-9bda8898825233886c3bcd9b116be3956d6de84e.zip |
Feature #116: fix template for stuff
-rw-r--r-- | askbot/skins/default/media/js/post.js | 10 | ||||
-rw-r--r-- | askbot/skins/default/templates/question.html | 2 |
2 files changed, 5 insertions, 7 deletions
diff --git a/askbot/skins/default/media/js/post.js b/askbot/skins/default/media/js/post.js index 52772cc0..5cf9cb4f 100644 --- a/askbot/skins/default/media/js/post.js +++ b/askbot/skins/default/media/js/post.js @@ -398,12 +398,10 @@ var Vote = function(){ var bindEvents = function(){ // accept answers - if(questionAuthorId == currentUserId){ - var acceptedButtons = 'div.'+ voteContainerId +' img[id^='+ imgIdPrefixAccept +']'; - $(acceptedButtons).unbind('click').click(function(event){ - Vote.accept($(event.target)); - }); - } + var acceptedButtons = 'div.'+ voteContainerId +' img[id^='+ imgIdPrefixAccept +']'; + $(acceptedButtons).unbind('click').click(function(event){ + Vote.accept($(event.target)); + }); // set favorite question var favoriteButton = getFavoriteButton(); favoriteButton.unbind('click').click(function(event){ diff --git a/askbot/skins/default/templates/question.html b/askbot/skins/default/templates/question.html index 282b47b4..5414fd18 100644 --- a/askbot/skins/default/templates/question.html +++ b/askbot/skins/default/templates/question.html @@ -194,7 +194,7 @@ {% endif %} alt="{% trans %}i dont like this answer (click again to cancel){% endtrans %}" title="{% trans %}i dont like this answer (click again to cancel){% endtrans %}" /> - {% if request.user == question.author %} + {% if request.user == question.author or request.user.is_moderator or request.user.is_superuser %} <img id="answer-img-accept-{{ answer.id }}" class="answer-img-accept" {% if answer.accepted %} src="{{'/images/vote-accepted-on.png'|media}}" |