Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo-1
Commits
d787b0c2
Unverified
Commit
d787b0c2
authored
Sep 25, 2018
by
Van
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
#12503
parent
85c3dfae
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
33 deletions
+5
-33
src/main/webapp/js/common.js
src/main/webapp/js/common.js
+3
-31
src/main/webapp/js/common.min.js
src/main/webapp/js/common.min.js
+1
-1
src/main/webapp/skins
src/main/webapp/skins
+1
-1
No files found.
src/main/webapp/js/common.js
View file @
d787b0c2
...
...
@@ -33,7 +33,7 @@ var Util = {
div
.
innerHTML
=
decodeURIComponent
(
code
)
return
div
.
innerText
},
_
isArticlePage
:
function
(
href
)
{
isArticlePage
:
function
(
href
)
{
var
isArticle
=
true
;
if
(
href
.
indexOf
(
latkeConfig
.
servePath
+
'
/tags/
'
)
>
-
1
)
{
isArticle
=
false
;
...
...
@@ -64,9 +64,8 @@ var Util = {
/**
* 初始化 Pjax
* @param cb 除文章和自定义页面外的其他页面加载回调
* @param articelCB 文章页面加载后的回调
*/
initPjax
:
function
(
cb
,
articelCB
)
{
initPjax
:
function
(
cb
)
{
if
(
$
(
'
#pjax
'
).
length
===
1
)
{
$
.
pjax
({
selector
:
'
a
'
,
...
...
@@ -79,7 +78,7 @@ var Util = {
if
(
href
.
indexOf
(
'
data:image
'
)
>
-
1
)
{
return
true
}
return
Util
.
_isArticlePage
(
href
);
return
false
},
callback
:
function
()
{
cb
()
...
...
@@ -94,33 +93,6 @@ var Util = {
});
return
;
}
if
(
$
(
'
#pjaxArticle
'
).
length
===
1
)
{
$
.
pjax
({
selector
:
'
a
'
,
container
:
'
#pjaxArticle
'
,
show
:
''
,
cache
:
false
,
storage
:
true
,
titleSuffix
:
''
,
filter
:
function
(
href
){
if
(
href
.
indexOf
(
'
data:image
'
)
>
-
1
)
{
return
true
}
return
!
Util
.
_isArticlePage
(
href
);
},
callback
:
function
()
{
articelCB
();
}
});
NProgress
.
configure
({
showSpinner
:
false
});
$
(
'
#pjaxArticle
'
).
bind
(
'
pjax.start
'
,
function
(){
NProgress
.
start
();
});
$
(
'
#pjaxArticle
'
).
bind
(
'
pjax.end
'
,
function
(){
NProgress
.
done
();
});
return
;
}
},
/**
* 按需加载 MathJax 及 flow
...
...
src/main/webapp/js/common.min.js
View file @
d787b0c2
This diff is collapsed.
Click to expand it.
skins
@
73c125c9
Subproject commit 7
51599e758c80c71894f03bb83b1c866aa3efdb2
Subproject commit 7
3c125c9f0548479585b61f90e5510a90f2ab0cb
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment