File tree Expand file tree Collapse file tree 5 files changed +17
-3
lines changed
Expand file tree Collapse file tree 5 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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;
Original file line number Diff line number Diff 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 ( {
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments