diff --git a/resources/assets/js/image-manager.js b/resources/assets/js/image-manager.js index 3fa72c5bd..27deed51e 100644 --- a/resources/assets/js/image-manager.js +++ b/resources/assets/js/image-manager.js @@ -9,7 +9,8 @@ images: [], hasMore: false, page: 0, - cClickTime: 0 + cClickTime: 0, + selectedImage: false }, created: function() { @@ -62,7 +63,7 @@ } this.hide(); } else { - // Single Click + this.selectedImage = (this.selectedImage===image) ? false : image; } this.cClickTime = cTime; }, @@ -72,6 +73,12 @@ this.$$.overlay.style.display = 'block'; }, + overlayClick: function(e) { + if(e.target.className==='overlay') { + this.hide(); + } + }, + hide: function() { this.$$.overlay.style.display = 'none'; } diff --git a/resources/assets/sass/image-manager.scss b/resources/assets/sass/image-manager.scss index 456a7a8c3..15976e733 100644 --- a/resources/assets/sass/image-manager.scss +++ b/resources/assets/sass/image-manager.scss @@ -12,8 +12,14 @@ .image-manager-list img { border-radius: 0; float: left; - margin: 1px; + margin: 0; cursor: pointer; + width: 150px; + height: 150px; + border: 1px solid transparent; + &.selected { + border: 3px solid #EEE; + } } position: fixed; top: 0; diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index a2e283482..f3195b059 100644 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -10,6 +10,6 @@
@stop \ No newline at end of file diff --git a/resources/views/pages/image-manager.blade.php b/resources/views/pages/image-manager.blade.php index 5a8dc20ae..c68434d7b 100644 --- a/resources/views/pages/image-manager.blade.php +++ b/resources/views/pages/image-manager.blade.php @@ -1,6 +1,6 @@