mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-23 14:25:17 +02:00
Don't open modal box if it doesn't have a big photo.
This commit is contained in:
@@ -68,9 +68,11 @@ module.exports = function DeviceListDetailsDirective(
|
||||
var id = e.target.parentNode.parentNode.parentNode.id
|
||||
var device = mapping[id]
|
||||
|
||||
var title = device.name
|
||||
var enhancedPhoto800 = '/static/app/devices/photo/x800/' + device.image
|
||||
LightboxImageService.open(title, enhancedPhoto800)
|
||||
if (device.name && device.image) {
|
||||
var title = device.name
|
||||
var enhancedPhoto800 = '/static/app/devices/photo/x800/' + device.image
|
||||
LightboxImageService.open(title, enhancedPhoto800)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user