Skip to content

Commit

Permalink
save the reminder to the backbone model.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkolson committed May 13, 2015
1 parent 151097a commit 1716658
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions www/js/views/maintenance.reminders.view.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,13 @@ define([ "fuse", "jquery", "underscore", "text!templates/maintenancereminderstmp
}
}
};

Fuse.log( reminder );
this.$reminderFormPopup.popup( "close" );
alert( "Success! Reminder saved." );

var currentReminders = this.model.get('reminders');
currentReminders[reminder.date] = reminder;
this.model.set('reminders', currentReminders);

This comment has been minimized.

Copy link
@alexkolson

alexkolson May 13, 2015

Author Member

It still has to sync via the collection.

this.$reminderFormPopup.popup( "close" );
e.handled = true;
},

Expand Down

0 comments on commit 1716658

Please sign in to comment.