diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-15 10:29:35 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-15 10:29:35 +1000 |
| commit | 41a3f9be258c0ec5668e9f1b923f39e08a9caca2 (patch) | |
| tree | a01b20243e2ce5efaa0793a4dc92a1866d1f7daf /templates | |
| parent | 91e973fd6e63cf2a81ec8618f360a79d56ee99b3 (diff) | |
bugfix and work with other stylesheets
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/main.js | 5 |
1 files changed, 4 insertions, 1 deletions
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(); } |
