From dd2be333d803985218b56d3fb94b84e79dca4f18 Mon Sep 17 00:00:00 2001 From: Brian Simpson Date: Fri, 13 Sep 2013 06:43:36 -0400 Subject: [PATCH] fill_campaign_editor: clean up form disabling on errors. --- r2/r2/public/static/js/sponsored.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/r2/r2/public/static/js/sponsored.js b/r2/r2/public/static/js/sponsored.js index 3e4d63ef2..83f38e7f9 100644 --- a/r2/r2/public/static/js/sponsored.js +++ b/r2/r2/public/static/js/sponsored.js @@ -149,7 +149,6 @@ r.sponsored = { } else { $(".available-info").text(r._("%(num)s available (maximum budget is $%(max)s)").format({num: r.utils.prettyNumber(available), max: maxbid})) $(".OVERSOLD_DETAIL").hide() - r.sponsored.enable_form($form) } } ) @@ -204,6 +203,7 @@ r.sponsored = { $form.find('*[name="impressions"]').val(r.utils.prettyNumber(impressions)) $(".OVERSOLD").hide() + this.enable_form($form) this.check_bid($form) this.check_inventory($form) }, @@ -238,8 +238,6 @@ r.sponsored = { if (bid < minimum_bid) { $(".minimum-spend").addClass("error"); this.disable_form($form) - } else { - this.enable_form($form) } },