Commit 33a00f04 authored by BaiJiangJie's avatar BaiJiangJie Committed by 老广

[Bugfix] 修复创建azure类型的录像存储时前端的bug (#2617)

parent f235e201
......@@ -252,7 +252,7 @@ $(document).ready(function() {
var name = $(id_field).attr('name');
data[name] = $(id_field).val();
});
if (data['ENDPOINT'] !== '' && data['ENDPOINT'].indexOf('http') === -1) {
if (data['ENDPOINT'] && data['ENDPOINT'].indexOf('http') === -1) {
var msg = "{% trans 'Endpoint need contain protocol, ex: http' %}";
$("#endpoint_error").html(msg);
submitBtn.removeClass('disabled');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment