Commit 1b4f8e58 authored by nickchen's avatar nickchen 🎨

v2.37

parent 8c5dcc2c
...@@ -574,7 +574,8 @@ ...@@ -574,7 +574,8 @@
if (state == true){ if (state == true){
let kId = $(this).data('k_id'); let kId = $(this).data('k_id');
let thisEnable = $(this); let thisEnable = $(this);
console.log(thisEnable.parents('tr')); thisEnable.bootstrapSwitch('disabled', true);
//console.log(thisEnable.parents('tr'));
// 使用 AJAX 發送請求,處理狀態變更事件 // 使用 AJAX 發送請求,處理狀態變更事件
$.ajax({ $.ajax({
url: '/Key/EnableKey', url: '/Key/EnableKey',
...@@ -588,19 +589,21 @@ ...@@ -588,19 +589,21 @@
//ui控制 //ui控制
if (response.isSuccess){ if (response.isSuccess){
$('.isEnable').bootstrapSwitch('disabled', false); $('.isEnable').not(thisEnable).bootstrapSwitch('disabled', false);
$('.isEnable').not(thisEnable).bootstrapSwitch('state', false); $('.isEnable').not(thisEnable).bootstrapSwitch('state', false);
thisEnable.bootstrapSwitch('disabled', true);
//$('.deletable').removeAttr("hidden"); //$('.deletable').removeAttr("hidden");
//thisEnable.parents('tr').find('.deletable').attr("hidden", true); //thisEnable.parents('tr').find('.deletable').attr("hidden", true);
}else{ }else{
thisEnable.bootstrapSwitch('disabled', false);
thisEnable.bootstrapSwitch('state', false); thisEnable.bootstrapSwitch('state', false);
} }
}, },
error: function (xhr) { error: function (xhr) {
thisEnable.bootstrapSwitch('disabled', false);
thisEnable.bootstrapSwitch('state', false); thisEnable.bootstrapSwitch('state', false);
showAlert(false, xhr.responseText) showAlert(false, xhr.responseText)
console.log(xhr); console.log(xhr);
} }
......
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
</a> </a>
<div class="dropdown-divider"></div> <div class="dropdown-divider"></div>
<div class="versionNo"> <div class="versionNo">
@Localizer["version"]: v2.36 @Localizer["version"]: v2.37
</div> </div>
</div> </div>
......
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