Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
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
1684f2d3
authored
Aug 25, 2014
by
Csók Tamás
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modifications based on merge request
parent
b02629f8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
7 deletions
+1
-7
circle/dashboard/static/dashboard/dashboard.js
+0
-5
circle/dashboard/views.py
+1
-2
No files found.
circle/dashboard/static/dashboard/dashboard.js
View file @
1684f2d3
...
@@ -590,11 +590,6 @@ function addModalConfirmation(func, data) {
...
@@ -590,11 +590,6 @@ function addModalConfirmation(func, data) {
});
});
}
}
function
addOnClickToInput
(
id
,
func
,
param
)
{
$
(
'input,select'
).
not
(
'textarea'
).
keypress
(
function
(
event
)
{
if
(
event
.
keyCode
==
13
)
{
event
.
preventDefault
();}})
$
(
'#'
+
id
).
click
(
function
(){
func
(
param
);
return
false
;})
}
function
clientInstalledAction
(
location
)
{
function
clientInstalledAction
(
location
)
{
setCookie
(
'downloaded_client'
,
true
,
365
*
24
*
60
*
60
,
"/"
);
setCookie
(
'downloaded_client'
,
true
,
365
*
24
*
60
*
60
,
"/"
);
window
.
location
.
href
=
location
;
window
.
location
.
href
=
location
;
...
...
circle/dashboard/views.py
View file @
1684f2d3
...
@@ -1353,8 +1353,7 @@ class ClientCheck(LoginRequiredMixin, TemplateView):
...
@@ -1353,8 +1353,7 @@ class ClientCheck(LoginRequiredMixin, TemplateView):
instance
=
get_object_or_404
(
Instance
,
pk
=
request
.
POST
.
get
(
'vm'
))
instance
=
get_object_or_404
(
Instance
,
pk
=
request
.
POST
.
get
(
'vm'
))
if
not
instance
.
has_level
(
request
.
user
,
'operator'
):
if
not
instance
.
has_level
(
request
.
user
,
'operator'
):
raise
PermissionDenied
()
raise
PermissionDenied
()
response
=
HttpResponseRedirect
(
reverse
(
response
=
HttpResponseRedirect
(
instance
.
get_absolute_url
())
'dashboard.views.detail'
,
args
=
[
instance
.
pk
]))
response
.
set_cookie
(
'downloaded_client'
,
'True'
,
365
*
24
*
60
*
60
)
response
.
set_cookie
(
'downloaded_client'
,
'True'
,
365
*
24
*
60
*
60
)
return
response
return
response
...
...
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