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

pull/2618/head
BaiJiangJie 6 years ago committed by 老广
parent f235e20153
commit 33a00f043b

@ -252,7 +252,7 @@ $(document).ready(function() {
var name = $(id_field).attr('name'); var name = $(id_field).attr('name');
data[name] = $(id_field).val(); 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' %}"; var msg = "{% trans 'Endpoint need contain protocol, ex: http' %}";
$("#endpoint_error").html(msg); $("#endpoint_error").html(msg);
submitBtn.removeClass('disabled'); submitBtn.removeClass('disabled');

Loading…
Cancel
Save