kopia lustrzana https://github.com/cyoung/stratux
Allow user to set watch list to a blank string.
rodzic
fba162a4e9
commit
13c6fef514
|
@ -91,9 +91,12 @@ function SettingsCtrl($rootScope, $scope, $state, $location, $window, $http) {
|
||||||
|
|
||||||
$scope.updatewatchlist = function () {
|
$scope.updatewatchlist = function () {
|
||||||
if ($scope.WatchList !== settings["WatchList"]) {
|
if ($scope.WatchList !== settings["WatchList"]) {
|
||||||
settings["WatchList"] = $scope.WatchList.toUpperCase();
|
settings["WatchList"] = "";
|
||||||
|
if ($scope.WatchList !== undefined) {
|
||||||
|
settings["WatchList"] = $scope.WatchList.toUpperCase();
|
||||||
|
}
|
||||||
newsettings = {
|
newsettings = {
|
||||||
"WatchList": $scope.WatchList.toUpperCase()
|
"WatchList": settings["WatchList"]
|
||||||
};
|
};
|
||||||
// console.log(angular.toJson(newsettings));
|
// console.log(angular.toJson(newsettings));
|
||||||
setSettings(angular.toJson(newsettings));
|
setSettings(angular.toJson(newsettings));
|
||||||
|
|
Ładowanie…
Reference in New Issue