BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
39306fe3
Commit
39306fe3
authored
Mar 02, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed some unused JS deps
We dont use them anywhere, so why have them around?
parent
e8a5d79c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
57 deletions
+0
-57
application.js
app/assets/javascripts/application.js
+0
-4
jquery.highlight.js
vendor/assets/javascripts/jquery.highlight.js
+0
-53
No files found.
app/assets/javascripts/application.js
View file @
39306fe3
...
...
@@ -9,7 +9,6 @@
window
.
$
=
window
.
jQuery
=
require
(
'jquery'
);
require
(
'jquery-ujs'
);
require
(
'vendor/jquery.endless-scroll'
);
require
(
'vendor/jquery.highlight'
);
require
(
'vendor/jquery.waitforimages'
);
require
(
'vendor/jquery.caret'
);
require
(
'vendor/jquery.atwho'
);
...
...
@@ -18,15 +17,12 @@ window.Cookies = require('js-cookie');
require
(
'./autosave'
);
require
(
'bootstrap/js/affix'
);
require
(
'bootstrap/js/alert'
);
require
(
'bootstrap/js/button'
);
require
(
'bootstrap/js/collapse'
);
require
(
'bootstrap/js/dropdown'
);
require
(
'bootstrap/js/modal'
);
require
(
'bootstrap/js/scrollspy'
);
require
(
'bootstrap/js/tab'
);
require
(
'bootstrap/js/transition'
);
require
(
'bootstrap/js/tooltip'
);
require
(
'bootstrap/js/popover'
);
require
(
'select2/select2.js'
);
window
.
Pikaday
=
require
(
'pikaday'
);
window
.
_
=
require
(
'underscore'
);
...
...
vendor/assets/javascripts/jquery.highlight.js
deleted
100644 → 0
View file @
e8a5d79c
/*
highlight v3
Highlights arbitrary terms.
<http://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html>
MIT license.
Johann Burkard
<http://johannburkard.de>
<mailto:jb@eaio.com>
*/
jQuery
.
fn
.
highlight
=
function
(
pat
)
{
function
innerHighlight
(
node
,
pat
)
{
var
skip
=
0
;
if
(
node
.
nodeType
==
3
)
{
var
pos
=
node
.
data
.
toUpperCase
().
indexOf
(
pat
);
if
(
pos
>=
0
)
{
var
spannode
=
document
.
createElement
(
'span'
);
spannode
.
className
=
'highlight_word'
;
var
middlebit
=
node
.
splitText
(
pos
);
var
endbit
=
middlebit
.
splitText
(
pat
.
length
);
var
middleclone
=
middlebit
.
cloneNode
(
true
);
spannode
.
appendChild
(
middleclone
);
middlebit
.
parentNode
.
replaceChild
(
spannode
,
middlebit
);
skip
=
1
;
}
}
else
if
(
node
.
nodeType
==
1
&&
node
.
childNodes
&&
!
/
(
script|style
)
/i
.
test
(
node
.
tagName
))
{
for
(
var
i
=
0
;
i
<
node
.
childNodes
.
length
;
++
i
)
{
i
+=
innerHighlight
(
node
.
childNodes
[
i
],
pat
);
}
}
return
skip
;
}
return
this
.
each
(
function
()
{
innerHighlight
(
this
,
pat
.
toUpperCase
());
});
};
jQuery
.
fn
.
removeHighlight
=
function
()
{
return
this
.
find
(
"span.highlight"
).
each
(
function
()
{
this
.
parentNode
.
firstChild
.
nodeName
;
with
(
this
.
parentNode
)
{
replaceChild
(
this
.
firstChild
,
this
);
normalize
();
}
}).
end
();
};
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