Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save betobaz/26afa4287aa05d88d535 to your computer and use it in GitHub Desktop.
Save betobaz/26afa4287aa05d88d535 to your computer and use it in GitHub Desktop.
Aquanima custom record.js
({
extendsFrom: 'RecordView',
initialize: function (options) {
this._super('initialize', arguments);
debugger;
this.model.on("change:solucion_c",this.calculate, this);
},
calculate:function() {
var solucion_c = this.model.get('solucion_c');
console.log("fun cal"+ solucion_c);
debugger;
if (solucion_c == true)
this.model.set('probability',25);
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment