Code standards update for mathjax add-on changes (5118)
This commit is contained in:
parent
b5fe8d61dd
commit
fd894984cf
2 changed files with 8 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
|||
Addon_registerHook("postprocess","mathjax_postprocess_liveupdate");
|
||||
Addon_registerHook("postprocess_liveupdate", "mathjax_postprocess_liveupdate");
|
||||
function mathjax_postprocess_liveupdate()
|
||||
{
|
||||
MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
|
||||
|
|
|
@ -20,16 +20,17 @@ function mathjax_install() {
|
|||
logger('installed js_math addon');
|
||||
}
|
||||
|
||||
function mathjax_template_vars($a, &$arr) {
|
||||
$arr['vars']['addon_hooks'][] = "mathjax";
|
||||
}
|
||||
|
||||
function mathjax_uninstall() {
|
||||
Addon::unregisterHook('page_header', 'addon/mathjax/mathjax.php', 'mathjax_page_header');
|
||||
Addon::unregisterHook('addon_settings', 'addon/mathjax/mathjax.php', 'mathjax_settings');
|
||||
Addon::unregisterHook('addon_settings_post', 'addon/mathjax/mathjax.php', 'mathjax_settings_post');
|
||||
Addon::unregisterHook('template_vars','addon/mathjax/mathjax.php', 'mathjax_template_vars');
|
||||
}
|
||||
|
||||
function mathjax_template_vars($a, &$arr) {
|
||||
$arr['vars']['addon_hooks'][] = "mathjax";
|
||||
}
|
||||
|
||||
function mathjax_settings_post ($a, $post) {
|
||||
if (! local_user())
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue