Skip to content

Commit

Permalink
adapt form's submit button text
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsulc committed Oct 22, 2013
1 parent b2959c4 commit 3328db9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions assets/js/apps/contacts/edit/edit_view.js
Expand Up @@ -9,6 +9,8 @@ ContactManager.module("ContactsApp.Edit", function(Edit, ContactManager, Backbon
var $title = $('<h1>', { text: this.title });
this.$el.prepend($title);
}

this.$(".js-submit").text("Update contact");
}
});
});
6 changes: 5 additions & 1 deletion assets/js/apps/contacts/new/new_view.js
@@ -1,5 +1,9 @@
ContactManager.module("ContactsApp.New", function(New, ContactManager, Backbone, Marionette, $, _){
New.Contact = ContactManager.ContactsApp.Common.Views.Form.extend({
title: "New Contact"
title: "New Contact",

onRender: function(){
this.$(".js-submit").text("Create contact");
}
});
});

0 comments on commit 3328db9

Please sign in to comment.