Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
3pia
VISPA
VISPA web
Commits
b2852a9a
Commit
b2852a9a
authored
Dec 15, 2014
by
ThorbenQuast
Browse files
set cookie expiration to seven days
parent
74fdf545
Changes
1
Show whitespace changes
Inline
Side-by-side
vispa/extensions/codeeditor/static/js/commandline.js
View file @
b2852a9a
...
...
@@ -51,10 +51,10 @@ var CommandLine = Emitter.extend({
},
setMenuFunctionality
:
function
()
{
this
.
menuNode
.
find
(
"
#submit
"
).
click
(
function
(){
this
.
menuNode
.
find
(
"
#submit
"
).
click
(
function
()
{
console
.
log
(
"
submit from editor not implemented yet
"
);
});
this
.
menuNode
.
find
(
"
#quick-submit
"
).
click
(
function
(){
this
.
menuNode
.
find
(
"
#quick-submit
"
).
click
(
function
()
{
console
.
log
(
"
quick-submit from editor not implemented yet
"
);
});
},
...
...
@@ -94,7 +94,9 @@ var CommandLine = Emitter.extend({
return
;
var
key
=
this
.
getCookieKey
();
this
.
commandCookie
[
key
]
=
cmd
;
$
.
cookie
(
"
commands
"
,
JSON
.
stringify
(
this
.
commandCookie
));
$
.
cookie
(
"
commands
"
,
JSON
.
stringify
(
this
.
commandCookie
),
{
expires
:
7
});
//expiry after seven days
},
//key == file name
...
...
Write
Preview
Supports
Markdown
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