Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
65aa2043
Commit
65aa2043
authored
11 years ago
by
Raghu Nayyar
Committed by
Arthur Schiwon
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Enhancement : Toggle Add Group on Click, @blizzz have a look here.
parent
17e640af
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
settings/css/settings.css
+5
-0
5 additions, 0 deletions
settings/css/settings.css
settings/js/users/groups.js
+17
-1
17 additions, 1 deletion
settings/js/users/groups.js
settings/templates/users/part.grouplist.php
+7
-2
7 additions, 2 deletions
settings/templates/users/part.grouplist.php
with
29 additions
and
3 deletions
settings/css/settings.css
+
5
−
0
View file @
65aa2043
...
@@ -51,6 +51,11 @@ table.nostyle label { margin-right: 2em; }
...
@@ -51,6 +51,11 @@ table.nostyle label { margin-right: 2em; }
table
.nostyle
td
{
padding
:
0.2em
0
;
}
table
.nostyle
td
{
padding
:
0.2em
0
;
}
/* USERS */
/* USERS */
#newgroup-init
a
span
{
margin-left
:
20px
;
}
#newgroup-init
a
span
:before
{
position
:
absolute
;
left
:
12px
;
top
:
-2px
;
content
:
'+'
;
font-weight
:
bold
;
font-size
:
150%
;
}
.usercount
{
float
:
left
;
margin
:
5px
;
}
.usercount
{
float
:
left
;
margin
:
5px
;
}
li
.active
span
.utils
.delete
{
li
.active
span
.utils
.delete
{
float
:
left
;
position
:
relative
;
opacity
:
0.5
;
float
:
left
;
position
:
relative
;
opacity
:
0.5
;
...
...
This diff is collapsed.
Click to expand it.
settings/js/users/groups.js
+
17
−
1
View file @
65aa2043
...
@@ -64,7 +64,23 @@ $(document).ready( function () {
...
@@ -64,7 +64,23 @@ $(document).ready( function () {
// Call function for handling delete/undo on Groups
// Call function for handling delete/undo on Groups
GroupList
.
delete_group
(
gid
);
GroupList
.
delete_group
(
gid
);
});
});
$
(
'
#newgroup
'
).
submit
(
function
(
event
)
{
// Display or hide of Create Group List Element
$
(
'
#newgroup-form
'
).
hide
();
$
(
'
#newgroup-init
'
).
on
(
'
click
'
,
function
(
e
)
{
e
.
stopPropagation
();
$
(
'
#newgroup-form
'
).
show
();
$
(
'
#newgroup-init
'
).
hide
();
$
(
document
).
click
(
function
(
e
)
{
if
(
e
.
target
.
id
!==
'
newgroup-form
'
)
{
$
(
"
#newgroup-form
"
).
hide
();
$
(
"
#newgroup-init
"
).
show
();
}
});
});
// Responsible for Creating Groups.
$
(
'
#newgroup-form form
'
).
submit
(
function
(
event
)
{
event
.
preventDefault
();
event
.
preventDefault
();
var
groupname
=
$
(
'
#newgroupname
'
).
val
();
var
groupname
=
$
(
'
#newgroupname
'
).
val
();
if
(
$
.
trim
(
groupname
)
===
''
)
{
if
(
$
.
trim
(
groupname
)
===
''
)
{
...
...
This diff is collapsed.
Click to expand it.
settings/templates/users/part.grouplist.php
+
7
−
2
View file @
65aa2043
<ul>
<ul>
<!-- Add new group -->
<!-- Add new group -->
<li>
<li
id=
"newgroup-init"
>
<form
id=
"newgroup"
>
<a
href=
"#"
>
<span>
<?php
p
(
$l
->
t
(
'Add Group'
))
?>
</span>
</a>
</li>
<li
id=
"newgroup-form"
>
<form>
<input
type=
"text"
id=
"newgroupname"
placeholder=
"
<?php
p
(
$l
->
t
(
'Group'
));
?>
..."
/>
<input
type=
"text"
id=
"newgroupname"
placeholder=
"
<?php
p
(
$l
->
t
(
'Group'
));
?>
..."
/>
<input
type=
"submit"
class=
"button"
value=
"
<?php
p
(
$l
->
t
(
'Add Group'
))
?>
"
/>
<input
type=
"submit"
class=
"button"
value=
"
<?php
p
(
$l
->
t
(
'Add Group'
))
?>
"
/>
</form>
</form>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment