Skip to content

Commit

Permalink
link res link to other thread record
Browse files Browse the repository at this point in the history
  • Loading branch information
fuktommy committed May 29, 2013
1 parent bcc8f86 commit 6f9bc7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions shingetsu/gateway.py
Expand Up @@ -323,7 +323,7 @@ def bracket_link(self, link, appli, absuri=False):
uri = prefix + self.thread_cgi + self.sep + \
self.str_encode(m.group(2)) + \
'/' + m.group(3)
return '<a href="' + uri + '">[[' + link + ']]</a>'
return '<a href="' + uri + '" class="reclink">[[' + link + ']]</a>'

m = re.search(r"^/(thread)/([^/]+)$", link)
if m is not None:
Expand All @@ -336,7 +336,7 @@ def bracket_link(self, link, appli, absuri=False):
uri = prefix + appli + self.sep + \
self.str_encode(m.group(1)) + \
'/' + m.group(2)
return '<a href="' + uri + '">[[' + link + ']]</a>'
return '<a href="' + uri + '" class="reclink">[[' + link + ']]</a>'

m = re.search(r"^([^/]+)$", link)
if m is not None:
Expand Down
2 changes: 1 addition & 1 deletion www/20resanchor.js
Expand Up @@ -60,7 +60,7 @@ shingetsu.initialize(function () {
}

$('a').each(function (i, anchor) {
if (anchor.className != 'innerlink') {
if (anchor.className != 'innerlink' && anchor.className != 'reclink') {
return;
}
if (anchor.href.search(/([0-9a-f]{8})/) <= 0) {
Expand Down

0 comments on commit 6f9bc7d

Please sign in to comment.