Allow user to set watch list to a blank string.

pull/418/head
Christopher Young 2016-05-16 17:51:38 -04:00
rodzic fba162a4e9
commit 13c6fef514
1 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -91,9 +91,12 @@ function SettingsCtrl($rootScope, $scope, $state, $location, $window, $http) {
$scope.updatewatchlist = function () {
if ($scope.WatchList !== settings["WatchList"]) {
settings["WatchList"] = $scope.WatchList.toUpperCase();
settings["WatchList"] = "";
if ($scope.WatchList !== undefined) {
settings["WatchList"] = $scope.WatchList.toUpperCase();
}
newsettings = {
"WatchList": $scope.WatchList.toUpperCase()
"WatchList": settings["WatchList"]
};
// console.log(angular.toJson(newsettings));
setSettings(angular.toJson(newsettings));