1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 19:42:01 +02:00
OpenSTF/res/app/menu/menu-controller.js
Gunther Brunner a0e0d2228a JSHint.
2014-09-02 12:24:07 +09:00

17 lines
565 B
JavaScript

module.exports = function MenuCtrl($scope, $rootScope, SettingsService,
$location, ExternalUrlModalService) {
SettingsService.bind($rootScope, {
target: 'platform', defaultValue: 'native'
})
$scope.$on('$routeChangeSuccess', function () {
$scope.isControlRoute = $location.path().search('/control') !== -1
})
$scope.openChat = function () {
var hipChatUrl = 'https://cyberagent.hipchat.com/chat?focus_jid=' +
'44808_stf@conf.hipchat.com&minimal=true'
ExternalUrlModalService.open(hipChatUrl, 'HipChat #STF', 'fa-comment')
}
}