Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
106769aa
authored
Mar 07, 2014
by
Oláh István Gergely
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: create group with ajax
parent
8db2683a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletions
+18
-1
circle/dashboard/static/dashboard/dashboard.js
+17
-0
circle/dashboard/templates/dashboard/group-create.html
+1
-1
No files found.
circle/dashboard/static/dashboard/dashboard.js
View file @
106769aa
...
@@ -36,6 +36,23 @@ $(function () {
...
@@ -36,6 +36,23 @@ $(function () {
});
});
return
false
;
return
false
;
});
});
$
(
'.group-create'
).
click
(
function
(
e
)
{
$
.
ajax
({
type
:
'GET'
,
url
:
'/dashboard/group/create/'
,
success
:
function
(
data
)
{
$
(
'body'
).
append
(
data
);
addSliderMiscs
();
$
(
'#create-modal'
).
modal
(
'show'
);
$
(
'#create-modal'
).
on
(
'hidden.bs.modal'
,
function
()
{
$
(
'#create-modal'
).
remove
();
});
}
});
return
false
;
});
$
(
'[href=#index-graph-view]'
).
click
(
function
(
e
)
{
$
(
'[href=#index-graph-view]'
).
click
(
function
(
e
)
{
var
box
=
$
(
this
).
data
(
'index-box'
);
var
box
=
$
(
this
).
data
(
'index-box'
);
$
(
"#"
+
box
+
"-list-view"
).
hide
();
$
(
"#"
+
box
+
"-list-view"
).
hide
();
...
...
circle/dashboard/templates/dashboard/group-create.html
View file @
106769aa
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
}
}
</style>
</style>
<form
method=
"POST"
action=
""
>
<form
method=
"POST"
action=
"
/dashboard/group/create/
"
>
{% csrf_token %}
{% csrf_token %}
{% crispy form %}
{% crispy form %}
</form>
</form>
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