This commit is contained in:
Gunther Brunner
2014-09-02 12:24:07 +09:00
parent 12eaf5182f
commit a0e0d2228a
14 changed files with 31 additions and 31 deletions

View File

@@ -1,6 +1,7 @@
var _ = require('lodash')
module.exports = function DeviceControlCtrl($scope, DeviceService, GroupService, $location, $timeout, gettext, $filter) {
module.exports = function DeviceControlCtrl($scope, DeviceService, GroupService,
$location, $timeout) {
$scope.showScreen = true
@@ -44,7 +45,7 @@ module.exports = function DeviceControlCtrl($scope, DeviceService, GroupService,
$scope.$digest()
})
}
} catch(e) {
} catch (e) {
alert(e.message)
}
}
@@ -87,7 +88,7 @@ module.exports = function DeviceControlCtrl($scope, DeviceService, GroupService,
$scope.currentRotation = 'portrait'
$scope.$watch('device.display.rotation', function (newValue, oldValue) {
$scope.$watch('device.display.rotation', function (newValue) {
if (isPortrait(newValue)) {
$scope.currentRotation = 'portrait'
} else if (isLandscape(newValue)) {