forked from leftypol/leftypol
bugfix and work with other stylesheets
This commit is contained in:
parent
91e973fd6e
commit
41a3f9be25
2 changed files with 26 additions and 10 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue