Jump to content

injectBlockFramework


Testweb
 Share

Recommended Posts

* Injects javascript into the page for block templates

 

This method is called automatically be IP.Content as necessary and should not normally need to be called manually. The purpose of this method is to add the necessary javascript and CSS calls for use with block templates. The output HTML is passed as the first parameter. If the second parameter is set to true, the javascript to inject is returned, otherwise it is automatically inserted into the output before the closing HTML tag. If the last parameter is set to true and the second parameter is false, the javascript code is instead returned (similar to if the second parameter is set to true), however it is broken up in such a way that it can be inserted into the page outside of the

tag.

 

https://www.invisionpower.com/support/guides/_/advanced-and-developers/ipcontent/library-ccsfunctions-r227

Link to comment
Share on other sites

 есть функция "injectBlockFramework" 

Проблемная функция, которая должна вставлять javascript с подключением jquery, compiled.js и compiled.css один раз а вставляет по количеству созданных на страничке блоков))))))

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...