Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-10947

Toggling legal terms don't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • System
    • False
    • None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started

      This is a piece of legacy code that probably nobody uses and was broken unnoticed long ago.

      Reason: toggle is a custom function that hide/shows an element. However that is not the intent here, for toggle is also a jQuery function that calls 2 handlers alternatively as the element is clicked (see https://api.jquery.com/toggle-event/)

      • Sites::LegalTermsHelper#insert_legal_terms_snippet_button
      • app/views/shared/_legal_terms.html.erb
      • doc/liquid/snippets/legal_terms.md

              Unassigned Unassigned
              jgallaso Jose Miguel Gallas Olmedo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: