mirror of
https://github.com/qurator-spk/neat.git
synced 2025-06-11 20:59:54 +02:00
beautify heading
This commit is contained in:
parent
ec6d1ce509
commit
f6de1b5859
1 changed files with 5 additions and 1 deletions
6
neat.js
6
neat.js
|
@ -874,7 +874,11 @@ function setupInterface(data, file, urls) {
|
|||
|
||||
$("#save").attr('disabled', !has_changes);
|
||||
|
||||
$("#file-region").html('<h3>' + file.name + '</h3>');
|
||||
let parts = file.name.split(/-|_/)
|
||||
|
||||
let heading = parts.join("­")
|
||||
|
||||
$("#file-region").html('<h3>' + heading + '</h3>');
|
||||
|
||||
$('.saveButton').on('click', saveFile);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue