Change [Reply] -> [Open] since there wasnt a link to just the thread page, and the number already quotes. Also hide it on the thread page itself now since it doesnt quote the post. closes #285

merge-requests/208/head
Thomas Lynch 4 years ago
parent a47c4e3991
commit 46bb8870e9
  1. 2
      gulp/res/js/quote.js
  2. 6
      views/mixins/post.pug
  3. 3
      views/pages/editpost.pug

@ -54,7 +54,7 @@ window.addEventListener('DOMContentLoaded', (event) => {
}
const quote = function(e) {
const quoteNum = this.textContent.replace('[Reply]', '').split(' ')[0].trim();
const quoteNum = this.textContent.trim();
if (isThread && !e.ctrlKey) {
addQuote(quoteNum);
} else {

@ -49,10 +49,10 @@ mixin post(post, truncate, manage=false, globalmanage=false, ban=false)
a.noselect.no-decoration(href=`${postURL}#${post.postId}`) No.
span.post-quoters
a.no-decoration(href=`${postURL}#postform`) #{post.postId}
if !post.thread
|
span.noselect: a(href=`${postURL}#postform`) [Reply]
|
if !post.thread && (truncate || manage || globalmanage)
|
span.noselect: a(href=`${postURL}`) [Open]
select.jsonly.postmenu
option(value='single') Hide
if post.userId

@ -41,9 +41,6 @@ block content
a.noselect.no-decoration(href=`${postURL}#${post.postId}`) No.
span.post-quoters
a.no-decoration(href=`${postURL}#postform`) #{post.postId}
if !post.thread
|
span.noselect: a(href=`${postURL}#postform`) [Reply]
.post-data
pre.post-message
textarea.edit.fw(name='message' rows='15' placeholder='Message') #{post.nomarkup}

Loading…
Cancel
Save