git-svn-id: https://msi/svn/firstRepo/WebClient/branches/NewRelease@57 0f545695-f87b-41b6-9a03-7f16563b5454
This commit is contained in:
@@ -73,6 +73,8 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/item/itemViewTemplate.
|
||||
images.find('img').load(function() {
|
||||
self.galleryWall.fitWidth();
|
||||
});
|
||||
|
||||
$.mobile.loading('hide');
|
||||
},
|
||||
//render the content into div of view
|
||||
render: function () {
|
||||
@@ -94,6 +96,26 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/item/itemViewTemplate.
|
||||
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();
|
||||
$.mobile.loading('show', {
|
||||
text: 'Caricamento immagine...',
|
||||
textVisible: true,
|
||||
//theme: 'z',
|
||||
html: ""
|
||||
});
|
||||
|
||||
var photoID = $(this).attr("data-photoid");
|
||||
|
||||
self.$el.find('#photoFull').attr("src" , myManifest.Settings.DefaultURL + "/api/photo/" + photoID);
|
||||
self.$el.find('#photoFull').load(function(){
|
||||
$.mobile.loading('hide');
|
||||
self.$el.find('#fullPhotoPopupDialog').popup("open");
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
for (var i = self.$arrayContent.length - 1; i >= 0; i--) {
|
||||
self.scrollPositions.push(0);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user