Skip to content
This repository was archived by the owner on Dec 30, 2022. It is now read-only.

Commit 167435d

Browse files
authored
Merge pull request #25 from Pavel-Teplitsky/master
Improved browse feature
2 parents dbd51fd + 65ce3c3 commit 167435d

3 files changed

Lines changed: 11 additions & 9 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.aliensoft</groupId>
88
<artifactId>quickview</artifactId>
9-
<version>1.0.0</version>
9+
<version>1.0.1</version>
1010
<packaging>jar</packaging>
1111

1212
<name>QuickView Dropwizard</name>

src/main/resources/assets/css/quickview.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ LOGO
6464
background-position: 15px 20px;
6565
float: left;
6666
padding: 25px 0px;
67-
margin-right: 15px;
68-
cursor: pointer;
67+
margin-right: 15px;
6968
}
7069
/*
7170
******************************************

src/main/resources/assets/js/quickview.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright (c) 2016 Alexandr Bobkov <lilalex85@gmail.com>
44
* Licensed under MIT.
55
* @author Alexandr Bobkov
6-
* @version 1.0.0
6+
* @version 1.0.1
77
*/
88

99
/*
@@ -1688,6 +1688,10 @@ METHODS
16881688
this.append(getHtmlModalDialog);
16891689

16901690
// assembly nav bar
1691+
if(options.browse){
1692+
$(qv_navbar).append(getHtmlBrowsePanel);
1693+
$("#qv-btn-browse").on('click', openBrowseModal);
1694+
}
16911695
if(options.zoom){
16921696
$(qv_navbar).append(getHtmlNavZoomPanel);
16931697
$(qv_navbar).append(getHtmlNavSplitter);
@@ -1725,9 +1729,6 @@ METHODS
17251729
// Generate thumbnails
17261730
generatePagesTemplate(data, data.length, 'thumbnails-');
17271731
});
1728-
}
1729-
if(options.browse){
1730-
$("#qv-header-logo").on('click', openBrowseModal);
17311732
}
17321733
}
17331734
};
@@ -1759,8 +1760,7 @@ HTML MARKUP
17591760
'<div class="wrapper">'+
17601761
// header BEGIN
17611762
'<div id="qv-header">'+
1762-
'<div id="qv-header-logo">'+
1763-
'<span class="qv-tooltip">Browse Files</span>'+
1763+
'<div id="qv-header-logo">'+
17641764
'</div>'+
17651765

17661766
// nav bar BEGIN
@@ -1897,6 +1897,9 @@ HTML MARKUP
18971897
function getHtmlNavUploadPanel(){
18981898
return '<li id="qv-btn-upload"><i class="fa fa-upload"></i><span class="qv-tooltip">Upload</span></li>';
18991899
}
1900+
function getHtmlBrowsePanel(){
1901+
return '<li id="qv-btn-browse"><i class="fa fa-folder-open"></i><span class="qv-tooltip">Browse files</span></li>';
1902+
}
19001903
})(jQuery);
19011904

19021905
/*

0 commit comments

Comments
 (0)