This topic contains 8 replies, has 0 voices, and was last updated by William Bailey 15 years, 7 months ago.

  • Author
    Posts
  • #4386

    richard.allan

    I have installed a bundle from a test account to a production. There are two script files, one for the SS and one for the clientside. However, when i hide the CS file in the file cabinet for a bundle, the CS scripts do not work. Does a CS file have to be visible for a bundle? I would hope not.

    Thanks
    This is a cached copy. Click here to see the original post.

  • #4387

    tramos@je8.com.br

    RE: Client side scripts not firing when file is hidden in bundle

    Iยดve notice this too. it happens only in the Client-side scripts.

    I didnยดt find any thing about it into docs.

  • #4388

    evan_goldberg

    RE: Client side scripts not firing when file is hidden in bundle

    Client side scripts can’t be hidden, because they must be available to the browser for purposes of running as part of the web page. And in fact the nature of HTML and web browsers is that any javascript that runs on the page can be accessed via “view source”.

    Thanks,

    -e

  • #4389

    William Bailey

    RE: Client side scripts not firing when file is hidden in bundle

    We will probably remove the “hide in suitebundles” checkbox from javascript files in the file cabinet if they are used by any client side scripts in order to avoid this confusion moving forward.

  • #4390

    richard.allan

    RE: Client side scripts not firing when file is hidden in bundle

    Just documenting it would be fine. Now I know, there are no problems!

    Thanks

  • #4391

    jflanagan

    RE: Client side scripts not firing when file is hidden in bundle

    I’ve updated the online documentation. The changes will be online on Monday night.

    Thanks,

    Jason

  • #4392

    richard.allan

    awesome, thanks!

  • #4393

    mshuman

    RE: Client side scripts not firing when file is hidden in bundle

    According to the SuiteBundle documentation:

    you can check the Hide in Bundle box on the script record if you want to prevent those who download your bundle from viewing your script files. Client SuiteScript cannot be hidden.

    Where does the “Hide in Bundle” checkbox reside? I’ve looked all over for it to no avail.

  • #4394

    William Bailey

    RE: Client side scripts not firing when file is hidden in bundle

    It is not on the script record by the javascript file record. Except an injection in last week’s release is causing it to be hidden for everyone. The intent was to hide for all but admins. It will be fixed this week.

You must be logged in to reply to this topic.