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

[Demo skin] On BO,"read more" links on carousel view open a new window

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.4
    • None
    • Skins
    • None

      How to reproduce

      • Insert the content aggregation service
      • Choose the carousel view
      • Clic on a "read more" link on back-office

      Behavior on FF

      • A blank page or tab is opened. Each time you try to go back to CMS tab, another page/tab is opened. You have to close FF.

      Behavior on IE

      • A blank page or tab is opened. Each time you go back to CMS tab, another page/tab is also opened but you can access to CMS tab.

          [CMS-3752] [Demo skin] On BO,"read more" links on carousel view open a new window

          Laurence Aumeunier added a comment - - edited

          The javascript responsible is located at list-carousel_3.3.xsl line 82):

          $j('#carousel-<xsl:value-of select="$uniqueId"/>').next().find("a")[parseInt(index / 2)].click();
          

          This line has been added to fix issue CMS-3669.
          For now, the line will be cancelled in BO mode to fix this major issue.

          <xsl:if test="$rendering-context != 'back'">
          $j('#carousel-<xsl:value-of select="$uniqueId"/>').next().find("a")[parseInt(index / 2)].click();
          </xsl:if>
          

          Laurence Aumeunier added a comment - - edited The javascript responsible is located at list-carousel_3.3.xsl line 82): $j( '#carousel-<xsl:value-of select= "$uniqueId" />' ).next().find( "a" )[parseInt(index / 2)].click(); This line has been added to fix issue CMS-3669 . For now, the line will be cancelled in BO mode to fix this major issue. <xsl: if test= "$rendering-context != 'back' " > $j( '#carousel-<xsl:value-of select= "$uniqueId" />' ).next().find( "a" )[parseInt(index / 2)].click(); </xsl: if >

          Works on Chrome

          Laurence Aumeunier added a comment - Works on Chrome

          Laurence Aumeunier added a comment - - edited

          The href seems good ...

          <a href="javascript:parent.org.ametys.uitool.ToolsManager.getInstance().openTool('uitool-page', {id:'page://d9a8934a-e3d8-49c9-a425-d617377f47f6'});">Lire la suite</a>
          

          The same link on a "Feature List" view works well

          Laurence Aumeunier added a comment - - edited The href seems good ... <a href= "javascript:parent.org.ametys.uitool.ToolsManager.getInstance().openTool( 'uitool-page' , {id: 'page://d9a8934a-e3d8-49c9-a425-d617377f47f6' });" > Lire la suite </a> The same link on a "Feature List" view works well

            Unassigned Unassigned
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: