Skip to content

Commit

Permalink
Fixed #125
Browse files Browse the repository at this point in the history
  • Loading branch information
Real-Gecko committed Jan 31, 2018
1 parent 9093610 commit c3db0b6
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
## [2.2.0] - 2018-
### Fixed
- Fixed #126
- Fixed #125

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

### Changed
- Some code cleanup

### Updated
- Updated Bootstrap to 3.3.7
- Updated jQuery to 2.2.4
Expand Down
2 changes: 1 addition & 1 deletion filemin-lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ sub get_bookmarks {
}
$result = '';
foreach $bookmark(@$bookmarks) {
$result.= "<li><a data-item='goto'>$bookmark</a><li>";
$result.= "<li><a data-item='goto' data-original-title='$bookmark'>$bookmark</a><li>";
}
return $result;
}
Expand Down
5 changes: 5 additions & 0 deletions unauthenticated/css/filemin.css
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,11 @@ nav.navbar {
padding-right: 5px;
}

#bookmarks [data-item="goto"] {
max-width: 340px;
overflow: hidden;
text-overflow: ellipsis;
}
/*
.column-field-name {
cursor: pointer;
Expand Down
2 changes: 2 additions & 0 deletions unauthenticated/js/filemin.js
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,8 @@ $(document).ready( function () {
PNotify.prototype.options.addclass = "stack-bottomright filemin";

filemin = new Filemin();

$('[ data-item="goto" ]').tooltip({trigger: 'hover', placement: 'bottom', html: true});

/* Initialize tree */
$('#filemin-tree .tree').fancytree({
Expand Down
7 changes: 5 additions & 2 deletions unauthenticated/js/spec-ops.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,9 @@ function bookmark(tab) {
$.post("bookmark.cgi", { 'path': tab.path })
.done(function(response) {
if(response.success) {
$('#bookmarks').append('<li><a data-item="goto">' + escapeHTML(tab.path) + '</a></li>');
$('#bookmarks').append('<li><a data-item="goto" data-original-title="' + escapeHTML(tab.path) + '">' + escapeHTML(tab.path) + '</a></li>');
$('[ data-item="goto" ]').tooltip({trigger: 'hover', placement: 'bottom', html: true});

showSuccess(null, text.bookmark_added);
} else {
showError(null, response.error)
Expand Down Expand Up @@ -781,9 +783,10 @@ function manageBookmarks() {
});
$.each(lines, function(ix, el) {
if(el !== '') {
$(ul).append('<li><a data-item="goto">' + el + '</a><li>');
$(ul).append('<li><a data-item="goto" data-original-title="' + el + '">' + el + '</a><li>');
}
});
$('[ data-item="goto" ]').tooltip({trigger: 'hover', placement: 'bottom', html: true});
} else {
showError(null, response.error);
}
Expand Down

0 comments on commit c3db0b6

Please sign in to comment.