Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Commit

Permalink
Fix button element
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
  • Loading branch information
skjnldsv committed Jan 24, 2017
1 parent 3262994 commit 08391e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions css/gallerybutton.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
#controls .button.view-switcher.gallery img{
opacity: .5;
}
/* TODO: move to core */
.icon-toggle-pictures {
background-image: url('../../../core/img/actions/toggle-pictures.svg?v=1');
}

#controls .button.sorting {
padding: 8px 7px;
Expand Down
4 changes: 1 addition & 3 deletions js/gallerybutton.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ $(document).ready(function () {
GalleryButton.button =
$('<div id="gallery-button" class="button view-switcher">' +
'<div id="button-loading"></div>' +
'<img class="svg" src="' + OC.imagePath('core', 'actions/toggle-pictures.svg') +
'"' +
'alt="' + t('gallery', 'Gallery view') + '"/>' +
'<span class="icon-toggle-pictures"></span>' +
'</div>');

GalleryButton.button.click(function () {
Expand Down

0 comments on commit 08391e0

Please sign in to comment.