Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
f0dc00d4
Commit
f0dc00d4
authored
Mar 02, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bye-bye-unused-deps' into 'master'
Removed some unused JS deps See merge request !9652
parents
2429a109
a933b592
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
58 deletions
+0
-58
app/assets/javascripts/application.js
app/assets/javascripts/application.js
+0
-5
vendor/assets/javascripts/jquery.highlight.js
vendor/assets/javascripts/jquery.highlight.js
+0
-53
No files found.
app/assets/javascripts/application.js
View file @
f0dc00d4
...
@@ -9,7 +9,6 @@
...
@@ -9,7 +9,6 @@
window
.
$
=
window
.
jQuery
=
require
(
'
jquery
'
);
window
.
$
=
window
.
jQuery
=
require
(
'
jquery
'
);
require
(
'
jquery-ujs
'
);
require
(
'
jquery-ujs
'
);
require
(
'
vendor/jquery.endless-scroll
'
);
require
(
'
vendor/jquery.endless-scroll
'
);
require
(
'
vendor/jquery.highlight
'
);
require
(
'
vendor/jquery.waitforimages
'
);
require
(
'
vendor/jquery.waitforimages
'
);
require
(
'
vendor/jquery.caret
'
);
require
(
'
vendor/jquery.caret
'
);
require
(
'
vendor/jquery.atwho
'
);
require
(
'
vendor/jquery.atwho
'
);
...
@@ -18,15 +17,11 @@ window.Cookies = require('js-cookie');
...
@@ -18,15 +17,11 @@ window.Cookies = require('js-cookie');
require
(
'
./autosave
'
);
require
(
'
./autosave
'
);
require
(
'
bootstrap/js/affix
'
);
require
(
'
bootstrap/js/affix
'
);
require
(
'
bootstrap/js/alert
'
);
require
(
'
bootstrap/js/alert
'
);
require
(
'
bootstrap/js/button
'
);
require
(
'
bootstrap/js/collapse
'
);
require
(
'
bootstrap/js/dropdown
'
);
require
(
'
bootstrap/js/dropdown
'
);
require
(
'
bootstrap/js/modal
'
);
require
(
'
bootstrap/js/modal
'
);
require
(
'
bootstrap/js/scrollspy
'
);
require
(
'
bootstrap/js/tab
'
);
require
(
'
bootstrap/js/tab
'
);
require
(
'
bootstrap/js/transition
'
);
require
(
'
bootstrap/js/transition
'
);
require
(
'
bootstrap/js/tooltip
'
);
require
(
'
bootstrap/js/tooltip
'
);
require
(
'
bootstrap/js/popover
'
);
require
(
'
select2/select2.js
'
);
require
(
'
select2/select2.js
'
);
window
.
Pikaday
=
require
(
'
pikaday
'
);
window
.
Pikaday
=
require
(
'
pikaday
'
);
window
.
_
=
require
(
'
underscore
'
);
window
.
_
=
require
(
'
underscore
'
);
...
...
vendor/assets/javascripts/jquery.highlight.js
deleted
100644 → 0
View file @
2429a109
/*
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