Remove the word "Album" from the h2. The number is okay.

I just decided I like this better.
master
voussoir 2018-03-10 19:54:56 -08:00
parent df86d0f128
commit 8fcaf15fbe
1 changed files with 2 additions and 8 deletions

View File

@ -49,13 +49,7 @@ p
{{header.make_header(session=session)}} {{header.make_header(session=session)}}
<div id="content_body"> <div id="content_body">
<h2> <h2>
<span data-editor-id="title" data-editor-empty-text="Album {{album.id}}" data-editor-placeholder="title" id="title_text"> <span data-editor-id="title" data-editor-empty-text="{{album.id}}" data-editor-placeholder="title" id="title_text">{{album.display_name}}</span>
{%- if album.title -%}
{{album.title}}
{%- else -%}
Album {{album.id}}
{%- endif -%}
</span>
</h2> </h2>
<pre <pre
id="description_text" id="description_text"
@ -187,7 +181,7 @@ function on_save(editor, edit_element_map, display_element_map)
editor.save(); editor.save();
if (title_display.innerText == title_display.dataset.editorEmptyText) if (title_display.innerText == title_display.dataset.editorEmptyText)
{ {
document.title = title_display.dataset.editorEmptyText; document.title = "Album " + title_display.dataset.editorEmptyText;
} }
else else
{ {