Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DMDesign
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Amanda Ghassaei
DMDesign
Commits
26d81ff8
Commit
26d81ff8
authored
9 years ago
by
Amanda Ghassaei
Browse files
Options
Downloads
Patches
Plain Diff
small changes
parent
8a2c6d68
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
js/SerialMonitor/SerialMonitorController.js
+5
-1
5 additions, 1 deletion
js/SerialMonitor/SerialMonitorController.js
js/SerialMonitor/SerialMonitorView.js
+5
-0
5 additions, 0 deletions
js/SerialMonitor/SerialMonitorView.js
js/SerialMonitor/main.js
+1
-0
1 addition, 0 deletions
js/SerialMonitor/main.js
with
11 additions
and
1 deletion
js/SerialMonitor/SerialMonitorController.js
+
5
−
1
View file @
26d81ff8
...
...
@@ -33,8 +33,12 @@ define(['jquery', 'underscore', 'backbone'], function($, _, Backbone){
onClose
:
function
(){
var
self
=
this
;
setTimeout
(
function
(){
if
(
self
.
popup
.
closed
)
self
.
popup
=
null
;
if
(
self
.
popup
.
closed
)
self
.
dumpPopup
()
;
},
100
);
//todo this is stupid, find an event that fires with window.closed == true
},
dumpPopup
:
function
(){
this
.
popup
=
null
;
}
});
...
...
This diff is collapsed.
Click to expand it.
js/SerialMonitor/SerialMonitorView.js
+
5
−
0
View file @
26d81ff8
...
...
@@ -23,6 +23,7 @@ define(['jquery', 'underscore', 'commParentMenu', 'serialComm', 'text!SerialMoni
_
.
bindAll
(
this
,
"
_onKeyUp
"
);
$
(
document
).
bind
(
'
keyup
'
,
{},
this
.
_onKeyUp
);
this
.
listenTo
(
serialComm
,
"
change:lastMessageSent
"
,
this
.
_updateOutgoingMessage
);
this
.
listenTo
(
serialComm
,
"
change:baudRate change:portName
"
,
this
.
render
);
this
.
listenTo
(
serialComm
,
"
change:connected
"
,
function
(){
...
...
@@ -38,6 +39,9 @@ define(['jquery', 'underscore', 'commParentMenu', 'serialComm', 'text!SerialMoni
if
(
e
.
keyCode
==
38
)
$output
.
val
(
this
.
model
.
getPrevHistElem
());
else
if
(
e
.
keyCode
==
40
)
$output
.
val
(
this
.
model
.
getNewerHistElem
());
else
if
(
e
.
keyCode
==
13
)
this
.
_sendMessage
(
e
);
}
else
{
}
},
...
...
@@ -101,6 +105,7 @@ define(['jquery', 'underscore', 'commParentMenu', 'serialComm', 'text!SerialMoni
},
_close
:
function
(){
this
.
userInitedReload
=
false
;
window
.
close
();
},
...
...
This diff is collapsed.
Click to expand it.
js/SerialMonitor/main.js
+
1
−
0
View file @
26d81ff8
...
...
@@ -39,6 +39,7 @@ require.config({
require
([
'
serialMonitorView
'
,
'
serialMonitor
'
,
'
positionControlPanelView
'
,
'
serialComm
'
],
function
(
SerialMonitorView
,
serialMonitor
,
PositionControlPanelView
,
serialComm
){
new
SerialMonitorView
({
model
:
serialMonitor
});
new
PositionControlPanelView
({
model
:
serialComm
});
});
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment