0 Replies Latest reply on Aug 5, 2013 11:39 AM by dritsema

    JavaScript in FTL templates

    dritsema

      I have a plugin for Jive 6 that renders its own edit widget properties page. The template loads fine but anything inside these tags for javascript does not:

      <@resource.javascript>...</@resource.javascript>
      

       

      Is there anything that would prevent the javascript from loading on the page? JS loads fine in a similar plugin and I just can't understand why it wouldn't for this one.

       

      If you're curious, I'm loading a couple dwr files and hiding some nav options to start:

      <@resource.dwr file="DeleteContent" />
      <@resource.dwr file="ReorderContent" />
      <@resource.javascript>
          $j(document).ready(function() {
           setArrows();
          })
      
          function setArrows() {
          $j('a#lowerContent, a#raiseContent').show();
          $j("#lowerContent", ".featured-admin-table tbody > :first").hide();
          $j("#raiseContent", ".featured-admin-table tbody > :last").hide();
          }
      </@resource.javascript>
      

       

      But no JS will load here what-so-ever, its all getting filtered. Thanks for any suggestions!