https://bugzilla.wikimedia.org/show_bug.cgi?id=19252


Alex Z. <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]




--- Comment #1 from Alex Z. <[email protected]>  2009-06-17 05:38:37 UTC ---
To include other scripts:

importScript('User:.../main.js');



To restrict scripts to certain actions:

if (wgAction == "edit") {
  importScript('User:.../edit.js');
}


JavaScript isn't parsed before its loaded, so any wikitext features like
transclusion can't work as scripts are just loaded into pages with action=raw.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to