diff options
author | Kegan Dougal <kegan@matrix.org> | 2014-09-16 14:20:26 +0100 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2014-09-16 15:35:23 +0100 |
commit | b170fe921e327d8d1be9768d30305ba953ccae9f (patch) | |
tree | 951f63d54ea01912f475396a6fa010f76a5009c5 /webclient/settings/settings-controller.js | |
parent | Time out calls from both ends properly. (diff) | |
download | synapse-b170fe921e327d8d1be9768d30305ba953ccae9f.tar.xz |
Added a section on bing words if you enable desktop notifications.
Diffstat (limited to 'webclient/settings/settings-controller.js')
-rw-r--r-- | webclient/settings/settings-controller.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/webclient/settings/settings-controller.js b/webclient/settings/settings-controller.js index 8c877a24e9..9cdace704a 100644 --- a/webclient/settings/settings-controller.js +++ b/webclient/settings/settings-controller.js @@ -194,7 +194,16 @@ angular.module('SettingsController', ['matrixService', 'mFileUpload', 'mFileInpu /*** Desktop notifications section ***/ $scope.settings = { - notifications: undefined + notifications: undefined, + bingWords: matrixService.config().bingWords + }; + + $scope.saveBingWords = function() { + console.log("Saving words: "+JSON.stringify($scope.settings.bingWords)); + var config = matrixService.config(); + config.bingWords = $scope.settings.bingWords; + matrixService.setConfig(config); + matrixService.saveConfig(); }; // If the browser supports it, check the desktop notification state |