mirror of https://github.com/mindoc-org/mindoc.git
[bug] fix kancloud js & firefox show style & fix search highlight (#926)
Co-authored-by: admin <you@example.com>pull/931/head
parent
e64bee1e1e
commit
5504c4350b
|
@ -439,7 +439,7 @@ table>tbody>tr:hover {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.m-manual .markdown-body .search-highlight {
|
.m-manual .search-highlight {
|
||||||
background-color: #FFFF00 !important;
|
background-color: #FFFF00 !important;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
|
@ -445,7 +445,7 @@ body .scrollbar-track-color {
|
||||||
line-height: 100%;
|
line-height: 100%;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin-top: -10px;
|
margin-top: -10px;
|
||||||
margin-left: -45px;
|
margin-left: -44px;
|
||||||
border: 0;
|
border: 0;
|
||||||
background-color: transparent
|
background-color: transparent
|
||||||
}
|
}
|
||||||
|
|
|
@ -189,16 +189,13 @@ function loadDocument($url, $id, $callback) {
|
||||||
},
|
},
|
||||||
success: function ($res) {
|
success: function ($res) {
|
||||||
if ($res.errcode === 0) {
|
if ($res.errcode === 0) {
|
||||||
renderPage($res.data);
|
var data = $res.data;
|
||||||
|
|
||||||
$body = $res.data.body;
|
|
||||||
if (typeof $callback === "function") {
|
if (typeof $callback === "function") {
|
||||||
$body = $callback(body);
|
data.body = $callback(data.body);
|
||||||
}
|
}
|
||||||
|
renderPage(data);
|
||||||
loadCopySnippets();
|
loadCopySnippets();
|
||||||
|
events.data($id, data);
|
||||||
events.data($id, $res.data);
|
|
||||||
|
|
||||||
events.trigger('article.open', { $url: $url, $id: $id });
|
events.trigger('article.open', { $url: $url, $id: $id });
|
||||||
} else if ($res.errcode === 6000) {
|
} else if ($res.errcode === 6000) {
|
||||||
window.location.href = "/";
|
window.location.href = "/";
|
||||||
|
|
Loading…
Reference in New Issue