git-svn-id: https://msi/svn/firstRepo/WebClient/branches/NewRelease@70 0f545695-f87b-41b6-9a03-7f16563b5454

This commit is contained in:
2016-02-29 17:09:30 +00:00
parent 342b485088
commit 3732d06a0c
5 changed files with 5 additions and 74 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/category/categoryViewT
});*/
html = this.itemtemplate({
items: this.collection.toJSON(),
images: Images
myManifest: myManifest
});
$(html).appendTo($ul).enhanceWithin();
@@ -6,7 +6,7 @@
<% if(item.firstImage === ""){ %>
<img class="thmbImg emptyItemList">
<%}else{%>
<img class="thmbImg" src='<%=data.images.getThumb(item.firstImage)%>'>
<img class="thmbImg" src='<%=myManifest.Settings.DefaultURL%>/api/photo/thumbnail/<%=item.firstImage%>'>
<%}%>
<div class='ricettaTitolo'><%= unescape(item.titolo) %></div>
<div class='ricettaAutore'><%= unescape(item.autore) %></div>
-2
View File
@@ -69,8 +69,6 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/item/itemViewTemplate.
}
});
var imgurl = Images.getThumb(48);
var images = this.galleryWall.container.find('.brick');
images.find('img').load(function() {
self.galleryWall.fitWidth();
+2 -1
View File
@@ -38,7 +38,8 @@
<h1>Foto</h1>
<div id="Gallery" class="freewallGallery">
<% _.each(ricetta.foto, function(fotoID) {%>
<div class='brick' style='width:<%=widthImg%>px;'><a id="photo_<%=fotoID.ID%>" data-role="none" data-photoid="<%=fotoID.ID%>" href=""><img src='<%=images.getMedium(fotoID.ID)%>' class="imageborder imageborder-<%=profile.data.tema%>"></a></div>
<div class='brick' style='width:<%=widthImg%>px;'><a id="photo_<%=fotoID.ID%>" data-role="none" data-photoid="<%=fotoID.ID%>" href="">
<img src='<%=myManifest.Settings.DefaultURL%>/api/photo/medium/<%=fotoID.ID%>' class="imageborder imageborder-<%=profile.data.tema%>"></a></div>
<%});%>
</div>
</div>