remember expanded state

This commit is contained in:
Jeremie Panzer
2013-03-28 10:39:03 +01:00
parent e0925e8c50
commit 78bfc4424f
6 changed files with 52 additions and 3 deletions

View File

@@ -90,7 +90,15 @@ module.directive('category', function($compile) {
.unsubscribe(subscription.id);
}
});
}
};
$scope.toggleCategory = function(category) {
console.log(category.expanded)
SubscriptionService.collapse({
id : category.id,
collapse : !category.expanded
});
};
}
};
});