Fix new highlightReply in Gecko

This commit is contained in:
8chan 2014-12-15 17:52:31 -08:00
parent f8c1d7c80f
commit cccc1bff79

View File

@ -1,5 +1,4 @@
{% raw %}
/* gettext-compatible _ function, example of usage:
*
* > // Loading pl_PL.json here (containing polish translation strings generated by tools/i18n_compile.php)
@ -258,7 +257,7 @@ function highlightReply(id) {
if (typeof window.event != "undefined") {
// don't highlight on middle click
if (event.which == 2) return true;
window.event.preventDefault();
if (active_page == 'thread' && typeof window.event.preventDefault != "undefined") window.event.preventDefault();
}
var divs = document.getElementsByTagName('div');
@ -434,6 +433,9 @@ function ready() {
var post_date = "{{ config.post_date }}";
var max_images = {{ config.max_images }};
if (typeof active_page === "undefined") {
active_page = "page";
}
{% if config.google_analytics %}{% raw %}