Skip to content
Snippets Groups Projects
Commit 51a522c2 authored by thomas craipeau's avatar thomas craipeau Committed by GitHub
Browse files

Merge pull request #135 from aboire/desktop

update url photo detail news
parents 0b4a272a 33e4b8fa
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,13 @@ Template.newsDetail.events({
event.preventDefault();
var self = this;
if(Meteor.isCordova){
PhotoViewer.show(this.url());
if(this.moduleId){
const url = `${Meteor.settings.public.urlimage}/upload/${moduleId}/${folder}/${name}`;
PhotoViewer.show(url);
}else{
PhotoViewer.show(this.url());
}
}
}
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment