Projet

Général

Profil

0001-set-the-correct-href-for-external-urls.patch

Serghei Mihai (congés, retour 15/05), 02 novembre 2015 07:51

Télécharger (1,5 ko)

Voir les différences:

Subject: [PATCH] set the correct href for external urls

 www/index.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
www/index.html
161 161
        </script>
162 162

  
163 163
        <script type="text/x-tmpl" id="momo-list-item-tmpl">
164
            <a href="#{%= o.id %}" class="{% if(!o.header){ %} list-group-item {% } %} clearfix">
164
            <a href="{% if(!o.external) { %}#{%= o.id %}{% } else { %}{%= o.url %}{% } %}" class="{% if(!o.header){ %} list-group-item {% } %} clearfix">
165 165
                {% if(o.header){ %}
166 166
                    <span class="pull-left">
167 167
                        {% if(o.icon){ %}
......
196 196

  
197 197
        <script type="text/x-tmpl" id="momo-icon-item-tmpl">
198 198
            <div class="col-xs-{%= o.colxs %} col-sm-{%= o.colsm %} col-md-{%= o.colmd %} col-lg-{%= o.collg %}">
199
                <a href="#{%= o.id %}" class="btn btn-block text-center {%= o.className || 'btn-default' %}">
199
                <a href="{% if(!o.external) { %}#{%= o.id %}{% } else { %}{%= o.url %}{% } %} class="btn btn-block text-center {%= o.className || 'btn-default' %}">
200 200
                    {% if(o.external){ %}
201 201
                        <i class="fa fa-external-link top-right"></i>
202 202
                    {% } %}
203
-