Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
node-slate
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Nguyễn Hải Sơn
node-slate
Commits
8ab0ed7b
Commit
8ab0ed7b
authored
Jun 03, 2015
by
Robert Lord
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #265 from realityking/unusedjs
Remove some unused JS.
parents
1f4e6b91
a38011b4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
_lang.js
source/javascripts/app/_lang.js
+1
-2
_search.js
source/javascripts/app/_search.js
+4
-7
No files found.
source/javascripts/app/_lang.js
View file @
8ab0ed7b
...
...
@@ -54,7 +54,6 @@ under the License.
}
function
setupLanguages
(
l
)
{
var
currentLanguage
=
l
[
0
];
var
defaultLanguage
=
localStorage
.
getItem
(
"language"
);
languages
=
l
;
...
...
@@ -81,7 +80,7 @@ under the License.
activateLanguage
(
language
);
return
false
;
});
window
.
onpopstate
=
function
(
event
)
{
window
.
onpopstate
=
function
()
{
activateLanguage
(
window
.
location
.
search
.
substr
(
1
));
};
});
...
...
source/javascripts/app/_search.js
View file @
8ab0ed7b
//= require ../lib/_lunr
//= require ../lib/_jquery.highlight
(
function
(
global
)
{
(
function
()
{
'use strict'
;
var
$global
=
$
(
global
);
var
content
,
darkBox
,
searchResults
;
var
content
,
searchResults
;
var
highlightOpts
=
{
element
:
'span'
,
className
:
'search-highlight'
};
var
index
=
new
lunr
.
Index
();
...
...
@@ -31,7 +30,6 @@
function
bind
()
{
content
=
$
(
'.content'
);
darkBox
=
$
(
'.dark-box'
);
searchResults
=
$
(
'.search-results'
);
$
(
'#input-search'
).
on
(
'keyup'
,
search
);
...
...
@@ -73,5 +71,4 @@
function
unhighlight
()
{
content
.
unhighlight
(
highlightOpts
);
}
})(
window
);
})();
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