Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
webssh
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郑天保
webssh
Commits
fdcf1718
Commit
fdcf1718
authored
Sep 29, 2018
by
Sheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set default port to 22
parent
0f542ed2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
main.js
webssh/static/js/main.js
+5
-1
index.html
webssh/templates/index.html
+1
-1
No files found.
webssh/static/js/main.js
View file @
fdcf1718
...
@@ -387,7 +387,11 @@ jQuery(function($){
...
@@ -387,7 +387,11 @@ jQuery(function($){
attr
=
attrs
[
i
];
attr
=
attrs
[
i
];
val
=
data
.
get
(
attr
);
val
=
data
.
get
(
attr
);
if
(
typeof
val
===
'string'
)
{
if
(
typeof
val
===
'string'
)
{
data
.
set
(
attr
,
val
.
trim
());
val
=
val
.
trim
();
if
(
attr
===
'port'
&&
val
===
''
)
{
val
=
22
;
}
data
.
set
(
attr
,
val
);
}
}
}
}
}
}
...
...
webssh/templates/index.html
View file @
fdcf1718
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
</div>
</div>
<div
class=
"col"
>
<div
class=
"col"
>
<label
for=
"Port"
>
Port
</label>
<label
for=
"Port"
>
Port
</label>
<input
class=
"form-control"
type=
"number"
id=
"port"
name=
"port"
value=
""
min=
1
max=
65535
required
>
<input
class=
"form-control"
type=
"number"
id=
"port"
name=
"port"
placeholder=
"22"
value=
""
min=
1
max=
65535
>
</div>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"row"
>
...
...
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