color for selected save folder

merge-requests/1/head
Julien Veyssier 2016-12-02 10:23:12 +01:00
parent b2e0609f76
commit ef57d3bf80
2 changed files with 9 additions and 1 deletions

View File

@ -483,3 +483,7 @@ input[type=checkbox]
margin-left: 10px;
margin-right: 10px;
}
.selectedFolder{
color: blue !important;
font-weight: bold !important;
}

View File

@ -529,9 +529,13 @@ $(document).ready(function(){
$('#savetree').on('filetreeexpand', function(e, data){
gpxedit.savePath = data.rel;
$('#savetree a').removeClass('selectedFolder');
data.li.find('>a').addClass('selectedFolder');
});
$('#savetree').on('filetreecollapse', function(e, data){
gpxedit.savePath = data.rel;
gpxedit.savePath = data.li.parent().parent().find('>a').attr('rel');
data.li.find('li.expanded').removeClass('expanded');
data.li.find('>a').removeClass('selectedFolder');
});
});