Commit d70799d7 authored by Van's avatar Van

🐛 page and admin title

parent e56cee7f
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta http-equiv="Window-target" content="_top"> <meta http-equiv="Window-target" content="_top">
<meta name="robots" content="none" /> <meta name="robots" content="none" />
<title>${blogTitle} - ${adminConsoleLabel}</title> <title>${adminConsoleLabel} - ${blogTitle}</title>
<link type="text/css" rel="stylesheet" href="${staticServePath}/css/default-base${miniPostfix}.css?${staticResourceVersion}" /> <link type="text/css" rel="stylesheet" href="${staticServePath}/css/default-base${miniPostfix}.css?${staticResourceVersion}" />
<link type="text/css" rel="stylesheet" href="${staticServePath}/css/default-admin${miniPostfix}.css?${staticResourceVersion}" /> <link type="text/css" rel="stylesheet" href="${staticServePath}/css/default-admin${miniPostfix}.css?${staticResourceVersion}" />
<link type="text/css" rel="stylesheet" href="${staticServePath}/js/lib/CodeMirrorEditor/codemirror.min.css?${staticResourceVersion}" /> <link type="text/css" rel="stylesheet" href="${staticServePath}/js/lib/CodeMirrorEditor/codemirror.min.css?${staticResourceVersion}" />
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
* *
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a> * @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a> * @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.4.0.2, Dec 1, 2018 * @version 1.4.1.3, Dec 7, 2018
*/ */
var Page = function (tips) { var Page = function (tips) {
this.currentCommentId = ""; this.currentCommentId = "";
...@@ -44,7 +44,7 @@ $.extend(Page.prototype, { ...@@ -44,7 +44,7 @@ $.extend(Page.prototype, {
textValue = $comment[0].value; textValue = $comment[0].value;
textValue = textValue.substring(0, endPosition) + key + textValue.substring(endPosition, textValue.length); textValue = textValue.substring(0, endPosition) + key + textValue.substring(endPosition, textValue.length);
$("#comment" + name).val(textValue); $("#comment" + name).val(textValue);
if ($.browser.msie) { if (!!window.ActiveXObject || "ActiveXObject" in window) {
endPosition -= textValue.split('\n').length - 1; endPosition -= textValue.split('\n').length - 1;
var oR = $comment[0].createTextRange(); var oR = $comment[0].createTextRange();
oR.collapse(true); oR.collapse(true);
...@@ -372,7 +372,7 @@ $.extend(Page.prototype, { ...@@ -372,7 +372,7 @@ $.extend(Page.prototype, {
if (document.createStyleSheet) { if (document.createStyleSheet) {
document.createStyleSheet(latkeConfig.staticServePath + "/js/lib/highlight.js-9.6.0/styles/default.css"); document.createStyleSheet(latkeConfig.staticServePath + "/js/lib/highlight.js-9.6.0/styles/default.css");
} else { } else {
$("head").append($("<link rel='stylesheet' href='" + latkeConfig.staticServePath + "/js/lib/highlight.js-9.6.0/styles/github.css'>")); $("head").append($("<link rel='stylesheet' href='" + latkeConfig.staticServePath + "/js/lib/highlight.js-9.6.0/styles/" + ((obj && obj.theme) || 'github') + ".css'>"));
} }
$.ajax({ $.ajax({
url: latkeConfig.staticServePath + "/js/lib/highlight.js-9.6.0/highlight.pack.js", url: latkeConfig.staticServePath + "/js/lib/highlight.js-9.6.0/highlight.pack.js",
......
This diff is collapsed.
Subproject commit dbb3b29bda4205f42ab8125361cbc74ad48bfc67 Subproject commit 683bf9e19aed80a84fa20cf6c645695bfec592b7
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment