Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
b27aad2f
Commit
b27aad2f
authored
Jan 09, 2016
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow multiple ssh tabs to the same node. Lets see how this goes.
parent
5f7b715f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
www/aptui/js/status.js
www/aptui/js/status.js
+9
-3
No files found.
www/aptui/js/status.js
View file @
b27aad2f
...
...
@@ -1014,13 +1014,14 @@ function (_, sup, moment, marked, UriTemplate, ShowImagingModal,
var
jsonauth
=
$
.
parseJSON
(
authobject
);
var
callback
=
function
(
stuff
)
{
console
.
info
(
stuff
);
var
split
=
stuff
.
split
(
'
:
'
);
var
session
=
split
[
0
];
var
port
=
split
[
1
];
var
url
=
jsonauth
.
baseurl
+
'
:
'
+
port
+
'
/
'
+
'
#
'
+
encodeURIComponent
(
document
.
location
.
href
)
+
'
,
'
+
session
;
//
console.info(url);
console
.
info
(
url
);
var
iwidth
=
"
100%
"
;
var
iheight
=
400
;
...
...
@@ -1045,7 +1046,8 @@ function (_, sup, moment, marked, UriTemplate, ShowImagingModal,
}
var
xmlthing
=
$
.
ajax
({
// the URL for the request
url
:
jsonauth
.
baseurl
+
'
/d77e8041d1ad
'
,
url
:
jsonauth
.
baseurl
+
'
/d77e8041d1ad
'
,
//url: jsonauth.baseurl + '/myshbox',
// the data to send (will be converted to a query string)
data
:
{
...
...
@@ -1066,6 +1068,8 @@ function (_, sup, moment, marked, UriTemplate, ShowImagingModal,
// the ssh tab with a panel in it, and then call StartSSH above
// to get things going.
//
var
sshtabcounter
=
0
;
function
NewSSHTab
(
hostport
,
client_id
)
{
var
pair
=
hostport
.
split
(
"
:
"
);
...
...
@@ -1076,7 +1080,9 @@ function (_, sup, moment, marked, UriTemplate, ShowImagingModal,
// Need to create the tab before we can create the topo, since
// we need to know the dimensions of the tab.
//
var
tabname
=
client_id
+
"
_tab
"
;
var
tabname
=
client_id
+
"
_
"
+
sshtabcounter
++
+
"
_tab
"
;
console
.
info
(
tabname
);
if
(
!
$
(
"
#
"
+
tabname
).
length
)
{
// The tab.
var
html
=
"
<li><a href='#
"
+
tabname
+
"
' data-toggle='tab'>
"
+
...
...
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