Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gutyán Gábor
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
33c0bab9
authored
Aug 22, 2014
by
Csók Tamás
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setCookie got an argument for path changeability
parent
e7e81a1c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
circle/dashboard/static/dashboard/dashboard.js
+3
-3
No files found.
circle/dashboard/static/dashboard/dashboard.js
View file @
33c0bab9
...
@@ -596,7 +596,7 @@ function addOnClickToInput(id, func, param) {
...
@@ -596,7 +596,7 @@ function addOnClickToInput(id, func, param) {
}
}
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
;
$
(
'#confirmation-modal'
).
modal
(
"hide"
);
$
(
'#confirmation-modal'
).
modal
(
"hide"
);
}
}
...
@@ -623,13 +623,13 @@ function getCookie(name) {
...
@@ -623,13 +623,13 @@ function getCookie(name) {
return
cookieValue
;
return
cookieValue
;
}
}
function
setCookie
(
name
,
value
,
seconds
)
{
function
setCookie
(
name
,
value
,
seconds
,
path
)
{
if
(
seconds
!=
null
)
{
if
(
seconds
!=
null
)
{
var
today
=
new
Date
();
var
today
=
new
Date
();
var
expire
=
new
Date
();
var
expire
=
new
Date
();
expire
.
setTime
(
today
.
getTime
()
+
seconds
);
expire
.
setTime
(
today
.
getTime
()
+
seconds
);
}
}
document
.
cookie
=
name
+
"="
+
escape
(
value
)
+
";
expires="
+
expire
.
toUTCString
()
;
document
.
cookie
=
name
+
"="
+
escape
(
value
)
+
";
expires="
+
expire
.
toUTCString
()
+
"; path="
+
path
;
}
}
/* no js compatibility */
/* no js compatibility */
...
...
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