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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
99d75a27
Commit
99d75a27
authored
Feb 29, 2016
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete unnecesary script
parent
cc9f93f9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
62 deletions
+0
-62
app/assets/javascripts/application.js.coffee
app/assets/javascripts/application.js.coffee
+0
-1
vendor/assets/javascripts/jquery.stickytabs.js
vendor/assets/javascripts/jquery.stickytabs.js
+0
-61
No files found.
app/assets/javascripts/application.js.coffee
View file @
99d75a27
...
@@ -17,7 +17,6 @@
...
@@ -17,7 +17,6 @@
#= require jquery.atwho
#= require jquery.atwho
#= require jquery.scrollTo
#= require jquery.scrollTo
#= require jquery.turbolinks
#= require jquery.turbolinks
#= require jquery.stickytabs
#= require d3
#= require d3
#= require cal-heatmap
#= require cal-heatmap
#= require turbolinks
#= require turbolinks
...
...
vendor/assets/javascripts/jquery.stickytabs.js
deleted
100644 → 0
View file @
cc9f93f9
/**
* jQuery Plugin: Sticky Tabs
*
* @author Aidan Lister <aidan@php.net>
* @version 1.2.0
*/
(
function
(
$
)
{
$
.
fn
.
stickyTabs
=
function
(
options
)
{
var
context
=
this
var
settings
=
$
.
extend
({
getHashCallback
:
function
(
hash
,
btn
)
{
return
hash
},
selectorAttribute
:
"
href
"
,
backToTop
:
false
,
initialTab
:
$
(
'
li.active > a
'
,
context
)
},
options
);
// Show the tab corresponding with the hash in the URL, or the first tab.
var
showTabFromHash
=
function
()
{
var
hash
=
settings
.
selectorAttribute
==
"
href
"
?
window
.
location
.
hash
:
window
.
location
.
hash
.
substring
(
1
);
var
selector
=
hash
?
'
a[
'
+
settings
.
selectorAttribute
+
'
="
'
+
hash
+
'
"]
'
:
settings
.
initialTab
;
$
(
selector
,
context
).
tab
(
'
show
'
);
setTimeout
(
backToTop
,
1
);
}
// We use pushState if it's available so the page won't jump, otherwise a shim.
var
changeHash
=
function
(
hash
)
{
if
(
history
&&
history
.
pushState
)
{
history
.
pushState
(
null
,
null
,
window
.
location
.
pathname
+
window
.
location
.
search
+
'
#
'
+
hash
);
}
else
{
scrollV
=
document
.
body
.
scrollTop
;
scrollH
=
document
.
body
.
scrollLeft
;
window
.
location
.
hash
=
hash
;
document
.
body
.
scrollTop
=
scrollV
;
document
.
body
.
scrollLeft
=
scrollH
;
}
}
var
backToTop
=
function
()
{
if
(
settings
.
backToTop
===
true
)
{
window
.
scrollTo
(
0
,
0
);
}
}
// Set the correct tab when the page loads
showTabFromHash
();
// Set the correct tab when a user uses their back/forward button
$
(
window
).
on
(
'
hashchange
'
,
showTabFromHash
);
// Change the URL when tabs are clicked
$
(
'
a
'
,
context
).
on
(
'
click
'
,
function
(
e
)
{
var
hash
=
this
.
href
.
split
(
'
#
'
)[
1
];
var
adjustedhash
=
settings
.
getHashCallback
(
hash
,
this
);
changeHash
(
adjustedhash
);
setTimeout
(
backToTop
,
1
);
});
return
this
;
};
}(
jQuery
));
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