mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
save settings on read mode change
This commit is contained in:
@@ -23,4 +23,21 @@ module.directive('category', function($compile) {
|
||||
$compile(ul.contents())(scope);
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
module.directive('toolbar', function(SettingsService) {
|
||||
return {
|
||||
scope : {},
|
||||
restrict : 'E',
|
||||
replace : true,
|
||||
templateUrl : 'directives/toolbar.html',
|
||||
controller : function($scope, SettingsService) {
|
||||
$scope.settings = SettingsService.settings;
|
||||
},
|
||||
link : function($scope, element) {
|
||||
element.find('button').bind('click', function() {
|
||||
SettingsService.save();
|
||||
});
|
||||
}
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user