Skip to content

Commit

Permalink
log buttons show file only (uses less space), hover for full path
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrews committed Aug 1, 2016
1 parent a5e7aed commit bbd01e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/resources/webapp/js/LogStationScripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ function addNavBarEntry(logFile) {
if ($("#link-"+logId).length == 0) {
console.log("adding nav for " + logFile);
//<li class="active"><a href="javascript:showLogFile('C--git-logstation-test-logfile-log')">Home</a></li>
$("ul.nav").append('<li class=link-logfile id=link-'+logId+'><a href="javascript:showLogFile(\''+logId+'\')">'+logFile+'</a></li>');
var truncatedFileNameArr = logFile.split(/[\\/]+/);
var truncatedFileName = truncatedFileNameArr[truncatedFileNameArr.length - 1];
$("ul.nav").append('<li class=link-logfile id=link-'+logId+' title='+logFile+'><a href="javascript:showLogFile(\''+logId+'\')">'+truncatedFileName+'</a></li>');
showLogFile(logFile)
}

Expand Down

0 comments on commit bbd01e6

Please sign in to comment.