Skip to content

Commit

Permalink
fixing bug with cell commit not being saved to db
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperq committed Sep 20, 2013
1 parent e428359 commit 24bbd18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion models/sheet.js
Expand Up @@ -332,6 +332,7 @@ var Sheet = module.exports = ESModel.extend({
cell.type = this.getCellType(cell.value);
if(cell.type == 'formula'){
cell.value = this.expressionHelpers.preprocessFormula(cell.value,this.id);
console.log('preprocessed', cell.value);
}
var cell_display = this.getCellDisplay(cell);
this.trigger('commit_cell', _.extend(_.clone(cell),{
Expand All @@ -344,7 +345,7 @@ var Sheet = module.exports = ESModel.extend({
id: this.id,
type: 'sheet',
action: 'commitCell',
params:[row_id,col_id]
params:[row_id,col_id,cell]
});
console.log('refreshing cells');
this.refreshCells();
Expand Down

0 comments on commit 24bbd18

Please sign in to comment.