X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/16c1f6ba31642aa189c514d21dcdc1b27e1dcd4e..d8006182f05f235f38fd7ca1c74a808ffac71a31:/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..ee332c33 100644 --- a/project/templates/explorer/file_xml.html +++ b/project/templates/explorer/file_xml.html @@ -48,13 +48,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,20 +96,27 @@ {% block breadcrumbs %}Platforma Redakcyjna ❯ plik {{ hash }}{% endblock breadcrumbs %} {% block maincontent %} -
    -
  1. -

    Nagłówki

    -
      +
      +
        +
      1. Nagłówki
      2. +
      3. Struktr. i mastery
      4. +
      5. Dramat wiersz.
      6. +
      7. Elementy początk.
      8. +
      9. Akapity i dł. cyt.
      10. +
      11. Style znakowe
      12. +
      13. Polecenia
      14. +
      15. Wersy
      16. +
      +
       
      +
      + - -
    1. -

      Struktr. i mastery

      -
        + - -
      1. -

        Dramat wiersz.

        -
          + - -
        1. -

          Elementy początk.

          -
            + - - {#
          1. Akapity i dł. cyt.
          2. #} - {#
          3. Style znakowe
          4. #} - -
             
            -
          + + + + +
           
          +
    2. +