add quick reply (initial)
This commit is contained in:
parent
eeb57e3ae6
commit
b83b75338c
11
contrib/static/overchan.js
Normal file
11
contrib/static/overchan.js
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
function quickreply(shorthash, longhash, url) {
|
||||
if (!window.location.pathname.startsWith("/t/"))
|
||||
{
|
||||
window.location.href = url;
|
||||
return;
|
||||
}
|
||||
var elem = document.getElementById("comment");
|
||||
if(!elem) return;
|
||||
elem.value += ">>" + shorthash + "\n";
|
||||
}
|
@ -18,6 +18,8 @@
|
||||
<title>{{board.Board}}</title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<link rel="stylesheet" href="/static/krane.css" />
|
||||
<script type="text/javascript" src="/static/overchan.js">
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
{{{board.Navbar}}}
|
||||
|
@ -27,8 +27,8 @@
|
||||
{{#post.Attachments}}
|
||||
<a href="{{Source}}" class="image_link" target="_blank" title="{{Filename}}"><img src="{{Thumbnail}}" class="image" /></a>
|
||||
{{/post.Attachments}}
|
||||
<a name="{{post.PostHash}}"></a><span class="topicline"><b>{{post.subject}}</b> {{post.Name}} <span class="published">{{post.Date}}</span> <a href="{{post.PostURL}}" onclick="return '>>{{post.ShortHash}}';">№</a>
|
||||
<a href="{{post.PostURL}}" onclick="return quickreply('${articlehash}', '${articlehash_full}');"> {{post.ShortHash}}</a>
|
||||
<a name="{{post.PostHash}}"></a><span class="topicline"><b>{{post.subject}}</b> {{post.Name}} <span class="published">{{post.Date}}</span> <a href="{{post.PostURL}}">№</a>
|
||||
<a href="#" onclick="return quickreply('{{post.ShortHash}}', '{{post.PostHash}}', '{{post.PostURL}}');"> {{post.ShortHash}}</a>
|
||||
</span>
|
||||
<br /><br />
|
||||
<span class="message_span">{{{post.RenderBody}}}</span>
|
||||
|
@ -22,7 +22,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Comment</th>
|
||||
<td><textarea name="message" class="postarea"></textarea></td>
|
||||
<td><textarea id="comment" name="message" class="postarea"></textarea></td>
|
||||
</tr>
|
||||
{{#files}}
|
||||
<tr>
|
||||
|
@ -17,6 +17,7 @@
|
||||
<title>{{board.Board}}</title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<link rel="stylesheet" href="/static/krane.css" />
|
||||
<script type="text/javascript" src="/static/overchan.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
{{{thread.Navbar}}}
|
||||
|
Reference in New Issue
Block a user