Skip to content
This repository has been archived by the owner on Jul 19, 2020. It is now read-only.

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 89bda36 commit 9763875
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions shingetsu/gateway.py
@@ -1,7 +1,7 @@
"""Saku Gateway base module.
"""
#
# Copyright (c) 2005-2012 shinGETsu Project.
# Copyright (c) 2005-2013 shinGETsu Project.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -315,7 +315,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 @@ -328,7 +328,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
4 changes: 2 additions & 2 deletions www/20resanchor.js
@@ -1,5 +1,5 @@
/* Popup Res Anchor.
* Copyright (C) 2005-2012 shinGETsu Project.
* Copyright (C) 2005-2013 shinGETsu Project.
*/

shingetsu.initialize(function () {
Expand Down 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 9763875

Please sign in to comment.