aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
Diffstat (limited to 'view')
-rw-r--r--view/js/main.js8
-rw-r--r--view/theme/redbasic/css/style.css2
2 files changed, 6 insertions, 4 deletions
diff --git a/view/js/main.js b/view/js/main.js
index ce7a1a07e..cdba8a25d 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -699,9 +699,11 @@ function updateConvItems(mode,data) {
// auto-scroll to a particular comment in a thread (designated by mid) when in single-thread mode
// use the same method to generate the submid as we use in ThreadItem,
// base64_encode + replace(['+','='],['','']);
- var submid = bParam_mid;
- var submid_encoded = ((submid.length) ? submid : 'abcdefg');
- submid_encoded = window.btoa(submid_encoded);
+
+ var submid = ((bParam_mid.length) ? bParam_mid : 'abcdefg');
+ var encoded = ((submid.substr(0,4) == 'b64.') ? true : false);
+ var submid_encoded = ((encoded) ? submid.substr(4) : window.btoa(submid));
+
submid_encoded = submid_encoded.replace(/[\+\=]/g,'');
if($('.item_' + submid_encoded).length && !$('.item_' + submid_encoded).hasClass('toplevel_item') && mode == 'replace') {
if($('.collapsed-comments').length) {
diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css
index b508b2576..3e457c621 100644
--- a/view/theme/redbasic/css/style.css
+++ b/view/theme/redbasic/css/style.css
@@ -137,7 +137,6 @@ input, optgroup, select, textarea {
pre code {
border: none;
padding: 1em 1.5em;
- border-radius: $radius;
}
code {
@@ -149,6 +148,7 @@ pre {
background: #F5F5F5;
color: #333;
border:1px solid #ccc;
+ border-radius: $radius;
}
.heart {