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
adec6248
Commit
adec6248
authored
Nov 07, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolved application.js conflicts
parent
b1e3a13c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
38 deletions
+0
-38
app/assets/javascripts/application.js
app/assets/javascripts/application.js
+0
-38
No files found.
app/assets/javascripts/application.js
View file @
adec6248
...
...
@@ -60,45 +60,7 @@
document
.
addEventListener
(
'
page:fetch
'
,
gl
.
utils
.
cleanupBeforeFetch
);
window
.
addEventListener
(
'
hashchange
'
,
gl
.
utils
.
shiftWindow
);
<<<<<<<
HEAD
// Disable button if any input field with given selector is empty
window
.
disableButtonIfAnyEmptyField
=
function
(
form
,
form_selector
,
button_selector
)
{
var
closest_submit
,
updateButtons
;
closest_submit
=
form
.
find
(
button_selector
);
updateButtons
=
function
()
{
var
filled
;
filled
=
true
;
form
.
find
(
'
input
'
).
filter
(
form_selector
).
each
(
function
()
{
return
filled
=
rstrip
(
$
(
this
).
val
())
!==
""
||
!
$
(
this
).
attr
(
'
required
'
);
});
if
(
filled
)
{
return
closest_submit
.
enable
();
}
else
{
return
closest_submit
.
disable
();
}
};
updateButtons
();
return
form
.
keyup
(
updateButtons
);
};
window
.
sanitize
=
function
(
str
)
{
return
str
.
replace
(
/<
(?:
.|
\n)
*
?
>/gm
,
''
);
};
window
.
shiftWindow
=
function
()
{
return
scrollBy
(
0
,
-
100
);
};
document
.
addEventListener
(
"
page:fetch
"
,
gl
.
utils
.
cleanupBeforeFetch
);
window
.
addEventListener
(
"
hashchange
"
,
shiftWindow
);
$
.
timeago
.
settings
.
allowFuture
=
true
;
window
.
onload
=
function
()
{
=======
window
.
onload
=
function
()
{
>>>>>>>
c392b0cc24ba40e3fed920c6c693cb24665193af
// Scroll the window to avoid the topnav bar
// https://github.com/twitter/bootstrap/issues/1768
if
(
location
.
hash
)
{
...
...
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