Title persitent fix

This commit is contained in:
Ghislain Loaec 2015-08-11 14:18:01 +02:00
parent 8ec6c7f729
commit b22ff56ce4
2 changed files with 6 additions and 3 deletions

View File

@ -72,14 +72,17 @@
</div>
<div class="parent-navbar-brand">
<span class="navbar-brand" href="#home">
{% if(!(o.titlePersistent || o.meta.titlePersistent || o.id == 'home')){ %}
{%# (o.titleSeparator || o.meta.titleSeparator) %}
{% } %}
<span class="momo-icon">
{% var icon = (o.titlePersistant || o.meta.titlePersistant || o.id == 'home') ? o.meta.icon : o.icon || o.meta.icon; %}
{% var icon = (o.titlePersistent || o.meta.titlePersistent || o.id == 'home') ? o.meta.icon : o.icon || o.meta.icon; %}
{% if(icon){ %}
{%# tmpl('momo-icon-tmpl', { icon: icon, size: 20, header: true }) %}
{% } %}
</span>
<span class="momo-title">
{% if(o.titlePersistant || o.meta.titlePersistant || o.id == 'home'){ %}
{% if(o.titlePersistent || o.meta.titlePersistent || o.id == 'home'){ %}
{%= o.meta.title %}
{%# (o.titleSeparator || o.meta.titleSeparator) %}
<small>

View File

@ -46,7 +46,7 @@ var app = {
'assetsUrl': 'assets.zip',
'updateFreq': 0,
'content': tmpl('momo-first-launch-tmpl'),
'titlePersistant': true,
'titlePersitent': true,
'titleSeparator': "<br>"
}
},