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
4a79e9d3
Commit
4a79e9d3
authored
Nov 14, 2014
by
ThorbenQuast
Browse files
editor: show start time for job execution, feature #1987
parent
539acfdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
vispa/extensions/codeeditor/static/js/output.js
View file @
4a79e9d3
...
...
@@ -51,10 +51,11 @@ var CodeEditorOutput = Emitter.extend({
self
.
running
=
!!
res
.
runningjob
;
self
.
updateExeButtons
();
});
// register events
this
.
view
.
onSocket
(
"
start
"
,
function
(
data
)
{
self
.
append
(
self
.
getDate
()
+
"
:
\n
"
+
"
executing
\"
"
+
data
.
command
+
"
\"\n
"
+
"
--------------------
\n
"
+
"
OUTPUT:
\n\n
"
);
...
...
@@ -96,6 +97,12 @@ var CodeEditorOutput = Emitter.extend({
return
s
;
},
getDate
:
function
()
{
var
d
=
new
Date
();
return
d
.
toLocaleString
();
},
// execution
execute
:
function
()
{
var
self
=
this
;
...
...
@@ -168,8 +175,8 @@ var CodeEditorOutput = Emitter.extend({
}
this
.
initialClear
();
var
textarray
=
text
.
split
(
"
\n
"
);
var
maxlines
=
this
.
view
.
getPreference
(
"
maxLines
"
)
<
textarray
.
length
?
this
.
view
.
getPreference
(
"
maxLines
"
)
:
textarray
.
length
;
var
maxlines
=
this
.
view
.
getPreference
(
"
maxLines
"
)
<
textarray
.
length
?
this
.
view
.
getPreference
(
"
maxLines
"
)
:
textarray
.
length
;
var
cleantext
=
textarray
.
slice
(
-
maxlines
).
join
(
"
\n
"
);
this
.
preNode
.
text
(
cleantext
);
return
this
;
...
...
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