rewrite: hack for transient filters for now, fix later

This commit is contained in:
Tyler Renelle 2013-08-28 19:40:50 -04:00
parent fce194275e
commit ab9b6e47cf
2 changed files with 1 additions and 1 deletions

View file

@ -4,6 +4,7 @@ habitrpg.controller("FiltersCtrl", ['$scope', '$rootScope', 'User',
function($scope, $rootScope, User) {
var user = User.user;
$scope._editing = false;
user.filters = {}; // FIXME run a migration instead
$scope.saveOrEdit = function(){
if ($scope._editing) {

View file

@ -184,7 +184,6 @@ UserSchema.methods.toJSON = () ->
# Custom setter/getter virtuals?
UserSchema.pre 'save', (next) ->
@markModified('tasks')
delete @filters if @filters
@._v++ #our own version incrementer
next()