Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-7647

The comment_form_switch script should be part of the demo skin and not coded in hard in the comment-form-script template of Ametys

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.2.0
    • 4.0.0
    • Démo
    • None
    • 4.2 M8

      function comment_form_switch_<xsl:value-of select="$uniqueId"/>()
      				{
      					var form = document.getElementById('comment-<xsl:value-of select="$uniqueId"/>');
      					form.style.display = (form.style.display == 'none') ? '' : 'none';
      				}
      				comment_form_switch_<xsl:value-of select="$uniqueId"/>();

      That code should be a part of the demo skin. If we want the comment form always opened and not open it on the click, we are forced to override all the comment-form-script template. That is too bad.

      Or at least, we should to split this template.

            lbouchet Loïc Bouchet
            llopez Laure Lopez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: