Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
adb16950
authored
Feb 09, 2013
by
Dányi Bence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webui: group management js interactions added
parent
f4aad11e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
one/static/cloud.js
+29
-0
No files found.
one/static/cloud.js
View file @
adb16950
...
@@ -168,6 +168,35 @@ $(function() {
...
@@ -168,6 +168,35 @@ $(function() {
}
}
$
(
'#new-member'
).
click
(
function
()
{
$
(
'#new-member'
).
click
(
function
()
{
$
(
'#new-member-form'
).
toggle
();
$
(
'#new-member-form'
).
toggle
();
});
$
(
'#new-member-form input'
).
click
(
function
(
e
){
e
.
stopPropagation
();
});
$
(
'#new-member-form input[type=submit]'
).
click
(
function
(){
var
neptun
=
$
(
this
).
prev
().
val
();
$
.
ajax
({
type
:
'POST'
,
url
:
'/ajax/group/'
+
$
(
this
).
data
(
'id'
)
+
'/add/'
,
data
:
'neptun='
+
neptun
,
dataType
:
'json'
,
success
:
function
(
data
){
window
.
location
.
reload
();
}
}).
error
(
function
(
data
){
//TODO: fancy modal alert
alert
(
JSON
.
parse
(
data
.
responseText
).
status
);
})
});
$
(
'#group-members .remove'
).
click
(
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
$
.
ajax
({
type
:
'POST'
,
url
:
'/ajax/group/'
+
$
(
this
).
data
(
'gid'
)
+
'/remove/'
,
data
:
'neptun='
+
$
(
this
).
data
(
'neptun'
),
success
:
function
(
data
){
window
.
location
.
reload
();
}
});
})
})
/**
/**
...
...
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