|
19 | 19 | { "OptionName": "20", "OptionValue": "20", "IsSelected": false }, |
20 | 20 | { "OptionName": "50", "OptionValue": "50", "IsSelected": false } |
21 | 21 | ]; |
22 | | - $scope.whiteListOptions = [ |
23 | | - { "OptionName": "0", "OptionValue": "0", "IsSelected": false }, |
24 | | - { "OptionName": "1", "OptionValue": "1", "IsSelected": false }, |
25 | | - { "OptionName": "2", "OptionValue": "2", "IsSelected": false }, |
26 | | - { "OptionName": "3", "OptionValue": "3", "IsSelected": false }, |
27 | | - { "OptionName": "4", "OptionValue": "4", "IsSelected": false }, |
28 | | - { "OptionName": "5", "OptionValue": "5", "IsSelected": false } |
29 | | - ]; |
30 | | - $scope.blackListOptions = [ |
31 | | - { "OptionName": "0", "OptionValue": "0", "IsSelected": false }, |
32 | | - { "OptionName": "1", "OptionValue": "1", "IsSelected": false }, |
33 | | - { "OptionName": "2", "OptionValue": "2", "IsSelected": false }, |
34 | | - { "OptionName": "3", "OptionValue": "3", "IsSelected": false }, |
35 | | - { "OptionName": "4", "OptionValue": "4", "IsSelected": false }, |
36 | | - { "OptionName": "5", "OptionValue": "5", "IsSelected": false } |
37 | | - ]; |
38 | 22 | $scope.timeZoneOptions = []; |
39 | 23 |
|
40 | 24 | $scope.load = function () { |
|
63 | 47 | $scope.selCloseDays = selectedOption($scope.vm.CloseDaysOptions, $scope.settings.DaysCommentsAreEnabled); |
64 | 48 | $scope.selCommentsPerPage = selectedOption($scope.commentsPerPageOptions, $scope.settings.CommentsPerPage); |
65 | 49 | $scope.selTimeZone = selectedOption($scope.timeZoneOptions, $scope.settings.TimeZoneId); |
66 | | - $scope.whiteListSelected = selectedOption($scope.whiteListOptions, $scope.settings.CommentWhiteListCount); |
67 | | - $scope.blackListSelected = selectedOption($scope.blackListOptions, $scope.settings.CommentBlackListCount); |
68 | 50 | $scope.setCommentProviders($scope.settings.CommentProvider); |
69 | 51 | spinOff(); |
70 | 52 | }) |
|
87 | 69 | $scope.settings.DaysCommentsAreEnabled = $scope.selCloseDays.OptionValue; |
88 | 70 | $scope.settings.CommentsPerPage = $scope.selCommentsPerPage.OptionValue; |
89 | 71 | $scope.settings.TimeZoneId = $scope.selTimeZone.OptionValue; |
90 | | - |
91 | | - $scope.settings.CommentWhiteListCount = $scope.whiteListSelected.OptionValue; |
92 | | - $scope.settings.CommentBlackListCount = $scope.blackListSelected.OptionValue; |
93 | | - |
94 | 72 | $scope.settings.txtErrorTitle = $scope.txtErrorTitle; |
95 | 73 |
|
96 | 74 | dataService.updateItem("/api/settings", $scope.settings) |
|
154 | 132 | } |
155 | 133 |
|
156 | 134 | $scope.selectProvider = function (provider) { |
157 | | - //alert(provider); |
158 | | - |
159 | 135 | if (provider == 'be') { |
160 | 136 | $("#dq-provider").fadeOut(); |
161 | 137 | $("#be-provider").fadeIn(); |
|
0 commit comments