extra code related to view image

This commit is contained in:
jamilrehman 2016-05-16 18:23:09 +05:00
parent fed6eb94aa
commit 10ce4b7929

View file

@ -1,12 +1,3 @@
function photoPos() {
var actOn = $('#gallery-exd'),
photoHeight = actOn.height(),
halfHeight = photoHeight / 2,
newHeight = halfHeight + "px";
actOn.removeAttr('style');
actOn.css("margin-top",newHeight);
}
function buildPhotoUrl(xhr,display) {
var collectionId = xhr.collection_id,
photo_key = xhr.photo_key,
@ -74,7 +65,6 @@ $(document).on("click", "#mainNextBtn,#mainPrevBtn", function () {
$('.pic-glyp').remove();
});
photoPos();
}
})
@ -118,7 +108,6 @@ $(document).on("click", ".en-large", function () {
$('#gallery-exd').attr("src",key_globel);
$("#btn-close").attr("data-check",key);
$('.pic-glyp').remove();
photoPos();
}
});
@ -130,7 +119,6 @@ $(document).on("click", "#enlarge", function () {
document.getElementById("myNav").style.left = "0";
$('#gallery-exd').attr("src",srcFirst);
d=curr_photo;
photoPos();
});
// On closing modal update image source..
@ -144,10 +132,4 @@ $( document ).on( 'keydown', function ( e ) {
if ( e.keyCode === 27 ) { // ESC
document.getElementById("myNav").style.left = "-100%";
}
});
window.onresize = doALoadOfStuff;
function doALoadOfStuff() {
photoPos();
}
});