Skip to content
Snippets Groups Projects
Commit a8ad539c authored by totten's avatar totten
Browse files

CRM-12923 - crm.backbone.js - Add isModified (in addition to isSaved)

----------------------------------------
* CRM-12923: Create HTML prototype of "Job Position" UI
  http://issues.civicrm.org/jira/browse/CRM-12923
parent 40d837df
No related branches found
No related tags found
No related merge requests found
......@@ -156,11 +156,15 @@
// Defaults - if specified in ModelClass, preserve
_.defaults(ModelClass.prototype, {
isSaved: function() {
var result = !this.isNew() && !this._modified;
var result = !this.isNew() && !this.isModified();
return result;
},
isModified: function() {
return !this._modified;
},
_saved_onchange: function(model, options) {
if (options.parse) return;
// console.log('change', model.changedAttributes(), model.previousAttributes());
this.setModified();
},
setModified: function() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment