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
e7e81a1c
authored
Aug 22, 2014
by
Csók Tamás
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
function layout modifications
parent
dd735e00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
circle/dashboard/static/dashboard/dashboard.js
+12
-12
No files found.
circle/dashboard/static/dashboard/dashboard.js
View file @
e7e81a1c
...
...
@@ -382,6 +382,13 @@ $(function () {
$
(
'.notification-messages'
).
load
(
"/dashboard/notifications/"
);
$
(
'#notification-button a span[class*="badge-pulse"]'
).
remove
();
});
/* on the client confirmation button fire the clientInstalledAction */
$
(
document
).
on
(
"click"
,
"#client-check-button"
,
function
(
event
)
{
var
connectUri
=
$
(
'#connect-uri'
).
val
();
clientInstalledAction
(
connectUri
);
return
false
;
});
});
function
generateVmHTML
(
pk
,
name
,
host
,
icon
,
_status
,
fav
,
is_last
)
{
...
...
@@ -584,23 +591,16 @@ 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
;})
$
(
'input,select'
).
not
(
'textarea'
).
keypress
(
function
(
event
)
{
if
(
event
.
keyCode
==
13
)
{
event
.
preventDefault
();}})
$
(
'#'
+
id
).
click
(
function
(){
func
(
param
);
return
false
;})
}
function
clientInstalledAction
(
location
)
{
setCookie
(
'downloaded_client'
,
true
,
365
*
24
*
60
*
60
);
window
.
location
.
href
=
location
;
$
(
'#confirmation-modal'
).
modal
(
"hide"
);
setCookie
(
'downloaded_client'
,
true
,
365
*
24
*
60
*
60
);
window
.
location
.
href
=
location
;
$
(
'#confirmation-modal'
).
modal
(
"hide"
);
}
$
(
function
()
{
$
(
document
).
on
(
"click"
,
"#client-check-button"
,
function
(
event
)
{
var
connectUri
=
$
(
'#connect-uri'
).
val
();
clientInstalledAction
(
connectUri
);
return
false
;
});
});
// for AJAX calls
/**
* Getter for user cookies
...
...
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