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
Jérome Perrin
gitlab-ce
Commits
1f3a0d52
Commit
1f3a0d52
authored
Aug 18, 2016
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use `gl` namespace and explicitly check that string is empty
parent
64d45a87
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+3
-3
app/assets/javascripts/member_expiration_date.js
app/assets/javascripts/member_expiration_date.js
+2
-2
No files found.
app/assets/javascripts/dispatcher.js
View file @
1f3a0d52
...
@@ -126,12 +126,12 @@
...
@@ -126,12 +126,12 @@
new
NotificationsDropdown
();
new
NotificationsDropdown
();
break
;
break
;
case
'
groups:group_members:index
'
:
case
'
groups:group_members:index
'
:
new
MemberExpirationDate
();
new
gl
.
MemberExpirationDate
();
new
GroupMembers
();
new
GroupMembers
();
new
UsersSelect
();
new
UsersSelect
();
break
;
break
;
case
'
projects:project_members:index
'
:
case
'
projects:project_members:index
'
:
new
MemberExpirationDate
();
new
gl
.
MemberExpirationDate
();
new
ProjectMembers
();
new
ProjectMembers
();
new
UsersSelect
();
new
UsersSelect
();
break
;
break
;
...
@@ -173,7 +173,7 @@
...
@@ -173,7 +173,7 @@
new
BuildArtifacts
();
new
BuildArtifacts
();
break
;
break
;
case
'
projects:group_links:index
'
:
case
'
projects:group_links:index
'
:
new
MemberExpirationDate
();
new
gl
.
MemberExpirationDate
();
new
GroupsSelect
();
new
GroupsSelect
();
break
;
break
;
case
'
search:show
'
:
case
'
search:show
'
:
...
...
app/assets/javascripts/member_expiration_date.js
View file @
1f3a0d52
...
@@ -4,14 +4,14 @@
...
@@ -4,14 +4,14 @@
// `js-clear-input` element, then show that element when there is a value in the
// `js-clear-input` element, then show that element when there is a value in the
// datepicker, and make clicking on that element clear the field.
// datepicker, and make clicking on that element clear the field.
//
//
this
.
MemberExpirationDate
=
function
()
{
gl
.
MemberExpirationDate
=
function
()
{
$
(
'
.js-access-expiration-date
'
).
each
(
function
(
i
,
element
)
{
$
(
'
.js-access-expiration-date
'
).
each
(
function
(
i
,
element
)
{
var
expirationDateInput
=
$
(
element
);
var
expirationDateInput
=
$
(
element
);
if
(
expirationDateInput
.
hasClass
(
'
hasDatepicker
'
))
{
return
;
}
if
(
expirationDateInput
.
hasClass
(
'
hasDatepicker
'
))
{
return
;
}
function
toggleClearInput
()
{
function
toggleClearInput
()
{
expirationDateInput
.
parent
().
toggleClass
(
'
has-value
'
,
!!
expirationDateInput
.
val
()
);
expirationDateInput
.
closest
(
'
.clearable-input
'
).
toggleClass
(
'
has-value
'
,
expirationDateInput
.
val
()
!==
''
);
}
}
expirationDateInput
.
datepicker
({
expirationDateInput
.
datepicker
({
...
...
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