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

pull/2642/head^2
BaiJiangJie 6 years ago committed by 老广
parent 35a0ca1875
commit cf2455c084

@ -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