From 3cfadb8ae8738ed4181e422bf34a353525e635e8 Mon Sep 17 00:00:00 2001 From: David Baumgold Date: Tue, 21 May 2013 11:29:41 -0400 Subject: [PATCH] Migrated internationalization text into template for section name --- cms/static/js/views/section.js | 9 +++------ cms/templates/js/section-name-edit.underscore | 4 ++-- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/cms/static/js/views/section.js b/cms/static/js/views/section.js index 9c29e51ddc..622249414d 100644 --- a/cms/static/js/views/section.js +++ b/cms/static/js/views/section.js @@ -1,9 +1,8 @@ CMS.Views.SectionShow = Backbone.View.extend({ - template: _.template('<%= name %>'), + template: _.template('" class="section-name-span"><%= name %>'), render: function() { var attrs = { - name: this.model.escape('name'), - tooltip: gettext("Edit this section's name") + name: this.model.escape('name') }; this.$el.html(this.template(attrs)); this.delegateEvents(); @@ -25,9 +24,7 @@ CMS.Views.SectionShow = Backbone.View.extend({ CMS.Views.SectionEdit = Backbone.View.extend({ render: function() { var attrs = { - name: this.model.escape('name'), - save: gettext("Save"), - cancel: gettext("Cancel") + name: this.model.escape('name') }; this.$el.html(this.template(attrs)); this.delegateEvents(); diff --git a/cms/templates/js/section-name-edit.underscore b/cms/templates/js/section-name-edit.underscore index 2a6295d690..cfbd64fffe 100644 --- a/cms/templates/js/section-name-edit.underscore +++ b/cms/templates/js/section-name-edit.underscore @@ -1,5 +1,5 @@
- - + " /> + " />