-If you like this answer you can award {{ awarded_user }} with reputation points.
-{% endblocktrans %}
+{% blocktrans %}
+If you like this answer you can award {{ awarded_user }} with reputation points.
+{% endblocktrans %}
</p>
<p>
-{% blocktrans %}
-Use the slider below or the input field to choose the amount of points you would like to give.
-{% endblocktrans %}
+{% blocktrans %}
+Use the slider below or the input field to choose the amount of points you would like to give.
+{% endblocktrans %}
</p>
<table>
@@ -22,18+22,51 @@ Use the slider below or the input field to choose the amount of points you would
<div class="award_points_slider"></div>
<script>
-$('.award_points_slider').slider({
- min: 1, max: {{ user.reputation }},
+ var awardPointsNotified = false;
+ var reputation_to_comment = {{ reputation_to_comment }};
+ var user_reputation = {{ user.reputation }};
+
+ function points_award_confirm(reputation, event) {
+ var message = '<div style="max-width: 300px !important; text-align: left;">';
+ message += "{% blocktrans %}Your karma points will be below the minimum reputation to comment. Are you sure you want to award points?{% endblocktrans %}";
+ message += "</div>";
+
+ if ((user_reputation - reputation) < reputation_to_comment && !awardPointsNotified) {