X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/16c1f6ba31642aa189c514d21dcdc1b27e1dcd4e..650cb7e30e5ed7def79c14f6ae63353bbf4441f4:/project/templates/explorer/file_xml.html?ds=sidebyside diff --git a/project/templates/explorer/file_xml.html b/project/templates/explorer/file_xml.html index 2d502cd9..1f074fc0 100644 --- a/project/templates/explorer/file_xml.html +++ b/project/templates/explorer/file_xml.html @@ -1,4 +1,5 @@ {% extends "base.html" %} +{% load toolbar_tags %} {% block extrahead %} @@ -48,13 +49,19 @@ $('#images').enableAutoscroll(); }) - $('#toolbar li p').click(function() { - $('#toolbar ol:visible').hide(); - $(this).next('ol').show('fast'); + // Toolbar + $('#toolbar-tabs li').click(function() { + var id = $(this).attr('p:button-list'); + $('#toolbar-tabs li').removeClass('active'); + $(this).addClass('active'); + if (!$('#' + id).is(':visible')) { + $('#toolbar-buttons ol').not('#' + id).hide(); + $('#' + id).show(); + } }) var keys = {}; - $('#toolbar ol li').each(function() { + $('#toolbar-buttons li').each(function() { var tag = $(this).attr('p:tag'); var handler = function() { var text = editor.selection(); @@ -90,65 +97,7 @@ {% block breadcrumbs %}Platforma Redakcyjna ⯠plik {{ hash }}{% endblock breadcrumbs %} {% block maincontent %} -
NagÅówki
- -Struktr. i mastery
- -Dramat wiersz.
- -Elementy poczÄ tk.
- -