From 41a3f9be258c0ec5668e9f1b923f39e08a9caca2 Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Sun, 15 Sep 2013 10:29:35 +1000 Subject: bugfix and work with other stylesheets --- templates/main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/main.js b/templates/main.js index a395852a..984b1976 100644 --- a/templates/main.js +++ b/templates/main.js @@ -67,6 +67,9 @@ function changeStyle(styleName, link) { if (link) { link.className = 'selected'; } + + if (typeof $ != 'undefined') + $(window).trigger('stylesheet', styleName); } @@ -198,7 +201,7 @@ function citeReply(id, with_link) { // ??? body.value += '>>' + id + '\n'; } - if ($) { + if (typeof $ != 'undefined') { $(window).trigger('cite', [id, with_link]); $(body).change(); } -- cgit v1.3