Client Scripts for Preview Page

Please add “Client Script” and “Startup Script” section for the “Preview Page”, as well as for “View Page”.

The main reason for this, since we often to write the Javascript/jQuery code based on client’s events (such as on click or double click) in a row of table of Preview page.

Currently, we have to add the code into the generated “{table}preview.php” file, and this should be handled from the project side.

Thank you.

To run jQuery code in Preview page, use the “preview” event in Startup Script, e.g.

$(document).on(“preview”, function(e, args) {
args.$tabpane.find(“my-selector”).myEvent(myEventHandler);
});

All right, then.