Added a modal lightbox-image directive.

Added a fallback-image directive.
Added the Device Photo on the Info tab.
This commit is contained in:
Gunther Brunner
2014-06-18 18:36:38 +09:00
parent 6bb07d7c34
commit 71e139ddaf
18 changed files with 186 additions and 36 deletions

View File

@@ -1,3 +1,7 @@
module.exports = function InfoCtrl($scope) {
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)
}
}