diff --git a/apps/common/templates/common/replay_storage_create.html b/apps/common/templates/common/replay_storage_create.html index af56c210d..f26d924d2 100644 --- a/apps/common/templates/common/replay_storage_create.html +++ b/apps/common/templates/common/replay_storage_create.html @@ -108,15 +108,18 @@
+
+ OSS: 格式 http://{REGION_NAME}.aliyuncs.com
+ 如: http://oss-cn-hangzhou.aliyuncs.com +
+ S3: http://s3.amazonaws.com
+ S3中国: http://s3.amazonaws.com.cn
+
@@ -166,7 +176,6 @@ function hiddenField(field){ } function getFieldByType(type){ - if(type === 'server'){ return need_get_field_of_server } @@ -211,15 +220,17 @@ $(document).ready(function() { field_of_all = [name_id, host_id, port_id, bucket_id, access_key_id, secret_key_id, container_name_id, account_name_id, account_key_id, endpoint_id, endpoint_suffix_id, region_id]; need_get_field_of_server = [name_id]; - need_get_field_of_s3 = [name_id, bucket_id, access_key_id, secret_key_id, region_id]; + need_get_field_of_s3 = [name_id, bucket_id, access_key_id, secret_key_id, region_id, endpoint_id]; need_get_field_of_oss = [name_id, bucket_id, access_key_id, secret_key_id, endpoint_id]; need_get_field_of_azure = [name_id, container_name_id, account_name_id, account_key_id, endpoint_suffix_id]; need_get_field_of_ceph = [name_id, host_id, port_id, bucket_id, access_key_id, secret_key_id, region_id]; }) .on('change', '.selector', function(){ var type = $('.selector').val(); - console.log(type); + $("." + type).show(); hiddenField(field_of_all); + $('.help-block').children().hide(); + $('.help-block ' + '.' + type).show(); var field = getFieldByType(type); showField(field) })