From c3db0b696f74d8905d7680084762efe14736d133 Mon Sep 17 00:00:00 2001 From: Real-Gecko Date: Wed, 31 Jan 2018 14:42:24 +0600 Subject: [PATCH] Fixed #125 --- CHANGELOG.md | 4 ++++ filemin-lib.pl | 2 +- unauthenticated/css/filemin.css | 5 +++++ unauthenticated/js/filemin.js | 2 ++ unauthenticated/js/spec-ops.js | 7 +++++-- 5 files changed, 17 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef98e3c..4474ab3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/filemin-lib.pl b/filemin-lib.pl index 975d3f0..38ff7e4 100644 --- a/filemin-lib.pl +++ b/filemin-lib.pl @@ -153,7 +153,7 @@ sub get_bookmarks { } $result = ''; foreach $bookmark(@$bookmarks) { - $result.= "
  • $bookmark
  • "; + $result.= "
  • $bookmark
  • "; } return $result; } diff --git a/unauthenticated/css/filemin.css b/unauthenticated/css/filemin.css index 80632dd..d223be5 100644 --- a/unauthenticated/css/filemin.css +++ b/unauthenticated/css/filemin.css @@ -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; diff --git a/unauthenticated/js/filemin.js b/unauthenticated/js/filemin.js index 769a061..90d2135 100644 --- a/unauthenticated/js/filemin.js +++ b/unauthenticated/js/filemin.js @@ -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({ diff --git a/unauthenticated/js/spec-ops.js b/unauthenticated/js/spec-ops.js index c7455ca..cbd33c4 100644 --- a/unauthenticated/js/spec-ops.js +++ b/unauthenticated/js/spec-ops.js @@ -292,7 +292,9 @@ function bookmark(tab) { $.post("bookmark.cgi", { 'path': tab.path }) .done(function(response) { if(response.success) { - $('#bookmarks').append('
  • ' + escapeHTML(tab.path) + '
  • '); + $('#bookmarks').append('
  • ' + escapeHTML(tab.path) + '
  • '); + $('[ data-item="goto" ]').tooltip({trigger: 'hover', placement: 'bottom', html: true}); + showSuccess(null, text.bookmark_added); } else { showError(null, response.error) @@ -781,9 +783,10 @@ function manageBookmarks() { }); $.each(lines, function(ix, el) { if(el !== '') { - $(ul).append('
  • ' + el + '
  • '); + $(ul).append('
  • ' + el + '
  • '); } }); + $('[ data-item="goto" ]').tooltip({trigger: 'hover', placement: 'bottom', html: true}); } else { showError(null, response.error); }