diff --git a/upload/js/photos.js b/upload/js/photos.js index 81fe2530..34c0f56e 100755 --- a/upload/js/photos.js +++ b/upload/js/photos.js @@ -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(); -} \ No newline at end of file +}); \ No newline at end of file