Files
stf/res/app/control-panes/info/info-controller.js
Gunther Brunner 71e139ddaf Added a modal lightbox-image directive.
Added a fallback-image directive.
Added the Device Photo on the Info tab.
2014-06-18 18:57:20 +09:00

8 lines
275 B
JavaScript

module.exports = function InfoCtrl($scope, LightboxImageService) {
$scope.openDevicePhoto = function (device) {
var title = device.name
var enhancedPhoto800 = '/static/devices/photo/x800/' + device.image
LightboxImageService.open(title, enhancedPhoto800)
}
}