Skip to content

Commit c3db0b6

Browse files
committed
Fixed #125
1 parent 9093610 commit c3db0b6

File tree

5 files changed

+17
-3
lines changed

5 files changed

+17
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22
## [2.2.0] - 2018-
33
### Fixed
44
- Fixed #126
5+
- Fixed #125
56

67
### Added
78
- Added symlink for text/csv file mimetype image to point to text/plain
89

10+
### Changed
11+
- Some code cleanup
12+
913
### Updated
1014
- Updated Bootstrap to 3.3.7
1115
- Updated jQuery to 2.2.4

filemin-lib.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ sub get_bookmarks {
153153
}
154154
$result = '';
155155
foreach $bookmark(@$bookmarks) {
156-
$result.= "<li><a data-item='goto'>$bookmark</a><li>";
156+
$result.= "<li><a data-item='goto' data-original-title='$bookmark'>$bookmark</a><li>";
157157
}
158158
return $result;
159159
}

unauthenticated/css/filemin.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,11 @@ nav.navbar {
206206
padding-right: 5px;
207207
}
208208

209+
#bookmarks [data-item="goto"] {
210+
max-width: 340px;
211+
overflow: hidden;
212+
text-overflow: ellipsis;
213+
}
209214
/*
210215
.column-field-name {
211216
cursor: pointer;

unauthenticated/js/filemin.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,8 @@ $(document).ready( function () {
642642
PNotify.prototype.options.addclass = "stack-bottomright filemin";
643643

644644
filemin = new Filemin();
645+
646+
$('[ data-item="goto" ]').tooltip({trigger: 'hover', placement: 'bottom', html: true});
645647

646648
/* Initialize tree */
647649
$('#filemin-tree .tree').fancytree({

unauthenticated/js/spec-ops.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,9 @@ function bookmark(tab) {
292292
$.post("bookmark.cgi", { 'path': tab.path })
293293
.done(function(response) {
294294
if(response.success) {
295-
$('#bookmarks').append('<li><a data-item="goto">' + escapeHTML(tab.path) + '</a></li>');
295+
$('#bookmarks').append('<li><a data-item="goto" data-original-title="' + escapeHTML(tab.path) + '">' + escapeHTML(tab.path) + '</a></li>');
296+
$('[ data-item="goto" ]').tooltip({trigger: 'hover', placement: 'bottom', html: true});
297+
296298
showSuccess(null, text.bookmark_added);
297299
} else {
298300
showError(null, response.error)
@@ -781,9 +783,10 @@ function manageBookmarks() {
781783
});
782784
$.each(lines, function(ix, el) {
783785
if(el !== '') {
784-
$(ul).append('<li><a data-item="goto">' + el + '</a><li>');
786+
$(ul).append('<li><a data-item="goto" data-original-title="' + el + '">' + el + '</a><li>');
785787
}
786788
});
789+
$('[ data-item="goto" ]').tooltip({trigger: 'hover', placement: 'bottom', html: true});
787790
} else {
788791
showError(null, response.error);
789792
}

0 commit comments

Comments
 (0)