Skip to content
Snippets Groups Projects
Commit ab01b517 authored by Andreas Valder's avatar Andreas Valder
Browse files

added tooltips to the mod interface, part of #130

parent a5a8c6a6
No related branches found
No related tags found
No related merge requests found
......@@ -153,6 +153,7 @@
$( function () {
moderator.permissioneditor.setpermissions({{global_permissions|tojson|safe}});
moderator.api.setcsrftoken('{{ session['_csrf_token'] }}');
$('[data-toggle="tooltip"]').tooltip({ 'trigger': 'hover' });
});
</script>
{% endif %}
......
......@@ -186,7 +186,12 @@ $('#embedcodebtn').popover(
{% macro moderator_editor (path,value) %}
{% if ismod() %}
<span class="moderator_editor" data-path="{{path|join('.')}}" ><a class="moderator_editor_sign btn btn-default" tabindex="0" style="padding: 3px; margin-right: 5px;"><span class="glyphicon glyphicon-pencil"></span></a><span class="moderator_editor_value">{{ value|safe }}</span></span>
<span class="moderator_editor" data-path="{{path|join('.')}}" >
<a class="moderator_editor_sign btn btn-default" title="{{path|join('.')}}" data-toggle="tooltip" tabindex="0" style="padding: 3px; margin-right: 5px;">
<span class="glyphicon glyphicon-pencil"></span>
</a>
<span class="moderator_editor_value">{{ value|safe }}</span>
</span>
{% else %}
{{value|fixnl|safe}}
{% endif %}
......@@ -194,7 +199,7 @@ $('#embedcodebtn').popover(
{% macro moderator_checkbox (path,value) %}
{% if ismod() %}
<input type="checkbox" data-path="{{path|join('.')}}" {% if value %} checked {% endif %} onchange="moderator.editor.changeboxclick(this)"/>
<input title="{{path|join('.')}}" data-toggle="tooltip" type="checkbox" data-path="{{path|join('.')}}" {% if value %} checked {% endif %} onchange="moderator.editor.changeboxclick(this)"/>
{% endif %}
{% endmacro %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment