Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
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
ops
jumpserver
Commits
f97bfa7b
Commit
f97bfa7b
authored
Mar 27, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 修复s3创建时端点不含协议的提示
parent
ace028fa
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
django.mo
apps/locale/zh/LC_MESSAGES/django.mo
+0
-0
django.po
apps/locale/zh/LC_MESSAGES/django.po
+0
-0
replay_storage_create.html
apps/settings/templates/settings/replay_storage_create.html
+8
-0
No files found.
apps/locale/zh/LC_MESSAGES/django.mo
View file @
f97bfa7b
No preview for this file type
apps/locale/zh/LC_MESSAGES/django.po
View file @
f97bfa7b
This diff is collapsed.
Click to expand it.
apps/settings/templates/settings/replay_storage_create.html
View file @
f97bfa7b
...
...
@@ -108,6 +108,7 @@
<label
class=
"col-md-2 control-label"
for=
"id_endpoint"
>
{% trans "Endpoint" %}
</label>
<div
class=
"col-md-9"
>
<input
id=
"id_endpoint"
class=
"form-control"
type=
"text"
name=
"ENDPOINT"
value=
""
placeholder=
"Endpoint"
>
<div
id=
"endpoint_error"
style=
"color: red;"
></div>
<div
class=
"help-block"
>
<span
class=
"oss"
>
{% trans 'OSS: http://{REGION_NAME}.aliyuncs.com' %}
...
...
@@ -251,6 +252,13 @@ $(document).ready(function() {
var
name
=
$
(
id_field
).
attr
(
'name'
);
data
[
name
]
=
$
(
id_field
).
val
();
});
if
(
data
[
'ENDPOINT'
]
!==
''
&&
data
[
'ENDPOINT'
].
indexOf
(
'http'
)
===
-
1
)
{
var
msg
=
"{% trans 'Endpoint need contain protocol, ex: http' %}"
;
$
(
"#endpoint_error"
).
html
(
msg
);
submitBtn
.
removeClass
(
'disabled'
);
submitBtn
.
html
(
origin_text
);
return
}
var
url
=
"{% url 'api-settings:replay-storage-create' %}"
;
var
success
=
function
(
data
,
textStatus
)
{
location
=
"{% url 'settings:terminal-setting' %}"
;
...
...
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