color for selected save folder
parent
b2e0609f76
commit
ef57d3bf80
|
@ -483,3 +483,7 @@ input[type=checkbox]
|
|||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.selectedFolder{
|
||||
color: blue !important;
|
||||
font-weight: bold !important;
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
});
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue