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

This commit is contained in:
2016-01-31 16:13:42 +00:00
parent 52ea2f542e
commit fc7970ec57
18 changed files with 133 additions and 54 deletions
+4 -3
View File
@@ -57,7 +57,7 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/item/itemViewTemplate.
onShowed: function(){
var self = this;
$('body').scrollTop(0);
/*
this.galleryWall = new Freewall("#Gallery");
this.galleryWall.reset({
selector: '.brick',
@@ -73,6 +73,7 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/item/itemViewTemplate.
images.find('img').load(function() {
self.galleryWall.fitWidth();
});
*/
$.mobile.loading('hide');
},
@@ -95,7 +96,7 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/item/itemViewTemplate.
self.scrollPositions = [];
self.$arrayContent = self.$el.find('div[data-role="content"]');
self.$arrayNavBar = self.$el.find('div[data-role="navbar"] a');
/*
self.$photos = self.$el.find('#contentFoto a');
self.$photos.on("click", function(e){
e.preventDefault();
@@ -115,7 +116,7 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/item/itemViewTemplate.
});
});
*/
for (var i = self.$arrayContent.length - 1; i >= 0; i--) {
self.scrollPositions.push(0);
};
+5 -5
View File
@@ -7,7 +7,7 @@
var widthImg = 320;
if( myManifest.Agent.device.type != "" )
{
//prendo la larghezza del viewport e sottraggo il 10%, poi divito per le due colonne
/*prendo la larghezza del viewport e sottraggo il 10perc, poi divito per le due colonne*/
widthImg = (myManifest.Settings.Device.Width - (myManifest.Settings.Device.Width / 10)) / 2;
if(widthImg>320)
widthImg = 320;
@@ -34,14 +34,14 @@
<p id='procedimento'><%= ricetta.procedimento%></p>
<p style="font-size: xx-small;font-weight: lighter;">La proprietà del materiale pubblicato nel Lievitario , salvo diversa indicazione, è dei rispettivi autori. E vietata la ripubblicazione, anche parziale, di tutto il materiale pubblicato nel sito Lievitario senza preventiva autorizzazione scritta.</p>
</div>
<div id="contentFoto" data-role="content" style="display: none;">
<!--<div id="contentFoto" data-role="content" style="display: none;">
<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='<%=myManifest.Settings.DefaultURL%>/api/photo/medium/<%=fotoID.ID%>' class="imageborder"></a></div>
<%});%>
</div>
</div>
</div>-->
<!--<div id="contentVideo" data-role="content" data-theme="d" style="display: none;" data-iscroll>
<h1>Video</h1>
<p id='video'></p>
@@ -51,8 +51,8 @@
<ul>
<li><a href="" class="ui-btn-active ui-state-persist">Ingredienti</a></li>
<li><a href="">Procedimento</a></li>
<li><a href="">Foto</a></li>
<!--<li><a href="">Video</a></li>-->
<!--<li><a href="">Foto</a></li>
<li><a href="">Video</a></li>-->
</ul>
</div><!-- /navbar -->
<% if(ricetta.autore.length > 0){ %>