X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/183cc705dd8ed132e35954bee33f522495090d91..141cd657f2d6a583113b84978215f29ad97bb70d:/forum/skins/default/templates/node/award_points.html diff --git a/forum/skins/default/templates/node/award_points.html b/forum/skins/default/templates/node/award_points.html index ccf1028..3b60e8f 100644 --- a/forum/skins/default/templates/node/award_points.html +++ b/forum/skins/default/templates/node/award_points.html @@ -41,7 +41,7 @@ show_no: true, no_callback: function() { $(".dialog").fadeOut("fast", function() { - $('.dialog').remove(); + $('.dialog').remove(); }) }, @@ -55,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