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
Hide whitespace changes
Inline
Side-by-side
vispa/extensions/codeeditor/static/js/commandline.js
View file @
b2852a9a
...
@@ -47,14 +47,14 @@ var CommandLine = Emitter.extend({
...
@@ -47,14 +47,14 @@ var CommandLine = Emitter.extend({
self
.
setDefault
();
self
.
setDefault
();
self
.
renderHistory
();
self
.
renderHistory
();
});
});
this
.
setMenuFunctionality
();
//sets up the buttons in the submit menu
this
.
setMenuFunctionality
();
//sets up the buttons in the submit menu
},
},
setMenuFunctionality
:
function
()
{
setMenuFunctionality
:
function
()
{
this
.
menuNode
.
find
(
"
#submit
"
).
click
(
function
(){
this
.
menuNode
.
find
(
"
#submit
"
).
click
(
function
()
{
console
.
log
(
"
submit from editor not implemented yet
"
);
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
"
);
console
.
log
(
"
quick-submit from editor not implemented yet
"
);
});
});
},
},
...
@@ -94,7 +94,9 @@ var CommandLine = Emitter.extend({
...
@@ -94,7 +94,9 @@ var CommandLine = Emitter.extend({
return
;
return
;
var
key
=
this
.
getCookieKey
();
var
key
=
this
.
getCookieKey
();
this
.
commandCookie
[
key
]
=
cmd
;
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
//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