From 20a1406c9a4ce32b2cb41b7f1882fed8a42fe233 Mon Sep 17 00:00:00 2001 From: Benjamin Porter Date: Thu, 6 Nov 2014 18:19:25 -0700 Subject: [PATCH] Create Outcomes: Make "New Outcome" go away when clicked When creating a new outcome, the default title is "New Outcome". In almost every case, the user wants to change the title. When they click the text box, we will now erase the default title for them. We only do this the first time it is created, so if the outcome is saved with the default title of "New Outcome" we won't wipe out the title the next time it is edited Fixes CNVS-16763 Test Plan: - Create an outcome - Click in the title text box - Observe that the title is a placeholder that disappears when you start typing Change-Id: If39c3aaef375254f57d6759fbde801711ddab142 Reviewed-on: https://gerrit.instructure.com/44066 Tested-by: Jenkins Product-Review: Hilary Scharton Reviewed-by: Simon Williams QA-Review: Adam Stone --- app/coffeescripts/views/outcomes/ToolbarView.coffee | 2 +- app/views/jst/outcomes/outcomeForm.handlebars | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/coffeescripts/views/outcomes/ToolbarView.coffee b/app/coffeescripts/views/outcomes/ToolbarView.coffee index bdf6b8facec..b082a6a3e5a 100644 --- a/app/coffeescripts/views/outcomes/ToolbarView.coffee +++ b/app/coffeescripts/views/outcomes/ToolbarView.coffee @@ -40,7 +40,7 @@ define [ addOutcome: (e) => e.preventDefault() - model = new Outcome title: I18n.t('new_outcome', 'New Outcome') + model = new Outcome title: '' @trigger 'add', model addGroup: (e) => diff --git a/app/views/jst/outcomes/outcomeForm.handlebars b/app/views/jst/outcomes/outcomeForm.handlebars index 01c29ae4c02..7a36f62d474 100644 --- a/app/views/jst/outcomes/outcomeForm.handlebars +++ b/app/views/jst/outcomes/outcomeForm.handlebars @@ -1,12 +1,11 @@
- + -