X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/cc041eef8cd45e535ba702e46822d10f6939bfc5..141cd657f2d6a583113b84978215f29ad97bb70d:/forum/skins/default/templates/node/award_points.html?ds=sidebyside diff --git a/forum/skins/default/templates/node/award_points.html b/forum/skins/default/templates/node/award_points.html index d3e4936..3b60e8f 100644 --- a/forum/skins/default/templates/node/award_points.html +++ b/forum/skins/default/templates/node/award_points.html @@ -38,12 +38,13 @@ html: message, extra_class: 'confirm', yes_text: messages.yes, + show_no: true, no_callback: function() { $(".dialog").fadeOut("fast", function() { $('.dialog').remove(); }) }, - show_no: true, + no_text: messages.no } @@ -54,19 +55,21 @@ $('.award_points_slider').slider({ min: 1, max: user_reputation, - slide: function(evt, ui) { - $('#points_input').val(ui.value); - points_award_confirm(Number(ui.value), evt) - } + slide: function(evt, ui) { + $('#points_input').val(ui.value); + points_award_confirm(Number(ui.value), evt) + } }); - $('#points_input').bind('change keydown', function(evt) { + $('#points_input').live('change keyup', function(evt) { if ($(this).val() > user_reputation) { - $(this).attr('value', user_reputation); - } - $('.award_points_slider').slider('option', 'value', $(this).val()) + $(this).attr('value', user_reputation); + } + + points_award_confirm(Number($(this).val()), evt); + + $('.award_points_slider').slider('option', 'value', $(this).val()); - points_award_confirm(Number($(this).val()), evt); }); \ No newline at end of file