diff --git a/public_html/css/post-upload.css b/public_html/css/post-upload.css index 7343744e..e3865b88 100644 --- a/public_html/css/post-upload.css +++ b/public_html/css/post-upload.css @@ -140,35 +140,6 @@ display: none; } -#lightbox { - display: none; - position: absolute; - pointer-events: none; - position: absolute; - margin-left: 10px; -} -#lightbox img { - max-width: 800px; - max-height: 800px; - background: white; - border: 0.5em solid white; - box-shadow: 0 0 0 1px #eee; - position: relative; -} -#lightbox:after { - content: ''; - position: absolute; - left: -8px; - top: 50%; - margin-top: -8px; - width: 12px; - height: 12px; - background: white; - border-left: 1px solid #eee; - border-bottom: 1px solid #eee; - transform: rotate(45deg); -} - #uploading-alert { display: none; text-align: left; diff --git a/public_html/js/Presenters/PostUploadPresenter.js b/public_html/js/Presenters/PostUploadPresenter.js index c7396dbe..aa0d9adf 100644 --- a/public_html/js/Presenters/PostUploadPresenter.js +++ b/public_html/js/Presenters/PostUploadPresenter.js @@ -202,25 +202,6 @@ App.Presenters.PostUploadPresenter = function( postTableSelectionChanged(selectedPosts); } - function postTableRowImageHovered(e) { - var $img = jQuery(this); - var post = $img.parents('tr').data('post'); - post.getThumbnail(null, null).then(function(thumbnailDataURL) { - var $lightbox = jQuery('#lightbox'); - $lightbox.find('img').attr('src', thumbnailDataURL); - $lightbox - .show() - .css({ - left: ($img.position().left + $img.outerWidth()) + 'px', - top: ($img.position().top + ($img.outerHeight() - $lightbox.outerHeight()) / 2) + 'px', - }); - }); - } - - function postTableRowImageUnhovered(e) { - jQuery('#lightbox').hide(); - } - function removeButtonClicked(e) { e.preventDefault(); removePosts(getSelectedPosts()); @@ -336,8 +317,6 @@ App.Presenters.PostUploadPresenter = function( $row.removeClass('template'); $row.find('td:not(.checkbox)').click(postTableRowClicked); $row.find('td.checkbox').click(postTableCheckboxClicked); - $row.find('img').mouseenter(postTableRowImageHovered); - $row.find('img').mouseleave(postTableRowImageUnhovered); $row.data('post', post); $table.find('tbody').append($row); $row.find('td.checkbox input').attr('id', _.uniqueId()); diff --git a/public_html/templates/post-upload.tpl b/public_html/templates/post-upload.tpl index b37814fc..d817747c 100644 --- a/public_html/templates/post-upload.tpl +++ b/public_html/templates/post-upload.tpl @@ -134,8 +134,4 @@ -