Browse Source

Remove redundant Posting Mode banner

Also replace JS code that uses them to determine the page type.
main
discomrade 2 years ago
committed by -
parent
commit
0e332ca2fa
  1. 4
      js/quick-reply.js
  2. 2
      js/show-op.js
  3. 2
      templates/thread.html

4
js/quick-reply.js

@ -125,7 +125,7 @@
};
var show_quick_reply = function(){
if($('div.banner').length == 0)
if(active_page != 'thread')
return;
if($('#quick-reply').length != 0)
return;
@ -421,7 +421,7 @@
if (settings.get('floating_link', false)) {
$(window).ready(function() {
if($('div.banner').length == 0)
if(active_page != 'thread')
return;
$('<style type="text/css">\
a.quick-reply-btn {\

2
js/show-op.js

@ -18,7 +18,7 @@ $(document).ready(function(){
var showOPLinks = function() {
var OP;
if ($('div.banner').length == 0) {
if (active_page = 'thread') {
OP = parseInt($(this).parent().find('div.post.op a.post_no:eq(1)').text());
} else {
OP = parseInt($('div.post.op a.post_no:eq(1)').text());

2
templates/thread.html

@ -48,8 +48,6 @@
{% include 'attention_bar.html' %}
<div class="banner">{% trans %}Posting mode: Reply{% endtrans %}</div>
{{ config.ad.top }}
{% include 'post_form.html' %}

Loading…
Cancel
Save