From 44c3589758a85d561bf99de2df04fc81664a2091 Mon Sep 17 00:00:00 2001 From: bsimpson63 Date: Mon, 26 Nov 2012 16:57:44 -0500 Subject: [PATCH] Rename button edit to save when editing campaign. --- r2/r2/public/static/js/sponsored.js | 6 +++--- r2/r2/templates/promotelinkform.html | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/r2/r2/public/static/js/sponsored.js b/r2/r2/public/static/js/sponsored.js index 76b8c27d2..51cd3bc67 100644 --- a/r2/r2/public/static/js/sponsored.js +++ b/r2/r2/public/static/js/sponsored.js @@ -22,12 +22,12 @@ function update_bid(elem) { $("#no_targeting_minimum").addClass("error"); } - form.find('button[name="create"], button[name="edit"]') + form.find('button[name="create"], button[name="save"]') .prop("disabled", "disabled") .addClass("disabled"); } else { $(".bid-info").removeClass("error"); - form.find('button[name="create"], button[name="edit"]') + form.find('button[name="create"], button[name="save"]') .removeProp("disabled") .removeClass("disabled"); } @@ -330,7 +330,7 @@ function edit_campaign(elem) { /* attach the dates to the date widgets */ init_startdate(); init_enddate(); - c.find('button[name="edit"]').show().end() + c.find('button[name="save"]').show().end() .find('button[name="create"]').hide().end(); update_bid('*[name="bid"]'); c.fadeIn(); diff --git a/r2/r2/templates/promotelinkform.html b/r2/r2/templates/promotelinkform.html index 66b7f190b..b03690c26 100644 --- a/r2/r2/templates/promotelinkform.html +++ b/r2/r2/templates/promotelinkform.html @@ -189,7 +189,7 @@ ${self.javascript_setup()} init_startdate(); init_enddate(); $("#campaign").find("button[name=create]").show().end() - .find("button[name=edit]").hide().end(); + .find("button[name=save]").hide().end(); update_bid("*[name=bid]"); }) @@ -209,9 +209,9 @@ ${self.javascript_setup()} onclick="return cancel_edit()" class="fancybutton"> cancel -