Created
August 19, 2014 19:42
-
-
Save betobaz/26afa4287aa05d88d535 to your computer and use it in GitHub Desktop.
Aquanima custom record.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
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