修改音视频配置切换问题
This commit is contained in:
@@ -18,9 +18,9 @@ $(function(){
|
||||
if($("#oldAction").val()==1){
|
||||
$("#level").show();
|
||||
}else{
|
||||
$("input[name$='level']").val("");
|
||||
$("#level").hide();
|
||||
}
|
||||
$(".action").on("change",function(){
|
||||
$("input[name~=action]").on("change",function(){
|
||||
$("#serviceId").val($(this).attr("serviceId"));
|
||||
if($(".action:checked").val()==1){
|
||||
$("#level").show();
|
||||
@@ -30,6 +30,9 @@ $(function(){
|
||||
if($("#level").is(":hidden")){
|
||||
$("input[name$='level']").val("");
|
||||
}
|
||||
if($(".action:checked").attr("id")=="actionOff"){
|
||||
$("#level").hide();
|
||||
}
|
||||
});
|
||||
$("#serviceId").val($(".action:checked").attr("serviceId"));
|
||||
$("#save").click(function(){
|
||||
@@ -148,7 +151,7 @@ $(function(){
|
||||
</c:forEach>
|
||||
<input id="actionOff" serviceId="${_cfg.serviceId }"
|
||||
isValid="${_cfg.isValid}"
|
||||
type="radio" name="action" class="radio-inline action radio-off" value="0" <c:if test="${_cfg.isValid == 0}">checked</c:if>> <spring:message code="off"/>
|
||||
type="radio" name="action" class="radio-inline action radio-off" value="${_cfg.action }" <c:if test="${_cfg.isValid == 0}">checked</c:if>> <spring:message code="off"/>
|
||||
</div>
|
||||
<div for="action"></div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user