Skip to content

Commit

Permalink
group ticker issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ravibail committed Jan 12, 2017
1 parent 845a170 commit 92b05a3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions public/app/js/controllers/groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,12 @@ angular.module('piGroups.controllers', [])
}

$scope.groupTicker = function() {
var ticker = $scope.group.selectedGroup.ticker
var ticker = $scope.group.selectedGroup.ticker ||
{
enable:false,
behavior: 'scroll',
rss: { enable: false , link: null }
}
ticker.enable = ticker.enable || false
ticker.behavior = ticker.behavior || 'slide'
ticker.rss = ticker.rss || { enable: false , link: null }
Expand All @@ -494,7 +499,7 @@ angular.module('piGroups.controllers', [])
if ($scope.group.selectedGroup.ticker.messages)
$scope.group.selectedGroup.ticker.messages = $scope.group.selectedGroup.ticker.messages.replace(/'/g, "`")
$scope.tickerModal.close();
updateGroup();
$scope.updateGroup();
$scope.needToDeploy = true;
}

Expand Down

0 comments on commit 92b05a3

Please sign in to comment.