You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Contacts.ContactModel = Backbone.Model.extend({
defaults: {
id: null,
firstname: "",
lastname: ""
},
url: function (type) {
if (type == "DELETE")
return "Contacts/Contact/delete/" + this.get('id');
return this.isNew() ? "Contacts/Contact/create" : "Contacts/Contact/update";
}
});
e.g.: Contacts/Contact/create should be modified as Contact/create. On the other hand the sample doesn't work well.
The text was updated successfully, but these errors were encountered:
Contacts.ContactModel = Backbone.Model.extend({
defaults: {
id: null,
firstname: "",
lastname: ""
},
url: function (type) {
if (type == "DELETE")
return "Contacts/Contact/delete/" + this.get('id');
return this.isNew() ? "Contacts/Contact/create" : "Contacts/Contact/update";
}
});
e.g.: Contacts/Contact/create should be modified as Contact/create. On the other hand the sample doesn't work well.
The text was updated successfully, but these errors were encountered: