Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
TokenVaultManagement
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jasonwai
TokenVaultManagement
Commits
1b4f8e58
Commit
1b4f8e58
authored
Jul 12, 2023
by
nickchen
🎨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v2.37
parent
8c5dcc2c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
ListKeys.cshtml
...oken Vault Management/backstage/Views/Key/ListKeys.cshtml
+7
-4
_Layout.cshtml
...en Vault Management/backstage/Views/Shared/_Layout.cshtml
+1
-1
No files found.
Merchant Token Vault Management/backstage/Views/Key/ListKeys.cshtml
View file @
1b4f8e58
...
...
@@ -574,7 +574,8 @@
if (state == true){
let kId = $(this).data('k_id');
let thisEnable = $(this);
console.log(thisEnable.parents('tr'));
thisEnable.bootstrapSwitch('disabled', true);
//console.log(thisEnable.parents('tr'));
// 使用 AJAX 發送請求,處理狀態變更事件
$.ajax({
url: '/Key/EnableKey',
...
...
@@ -588,19 +589,21 @@
//ui控制
if (response.isSuccess){
$('.isEnable').bootstrapSwitch('disabled', false);
$('.isEnable').
not(thisEnable).
bootstrapSwitch('disabled', false);
$('.isEnable').not(thisEnable).bootstrapSwitch('state', false);
thisEnable.bootstrapSwitch('disabled', true);
//$('.deletable').removeAttr("hidden");
//thisEnable.parents('tr').find('.deletable').attr("hidden", true);
}else{
thisEnable.bootstrapSwitch('disabled', false);
thisEnable.bootstrapSwitch('state', false);
}
},
error: function (xhr) {
thisEnable.bootstrapSwitch('disabled', false);
thisEnable.bootstrapSwitch('state', false);
showAlert(false, xhr.responseText)
console.log(xhr);
}
...
...
Merchant Token Vault Management/backstage/Views/Shared/_Layout.cshtml
View file @
1b4f8e58
...
...
@@ -93,7 +93,7 @@
</a>
<div
class=
"dropdown-divider"
></div>
<div
class=
"versionNo"
>
@Localizer["version"]: v2.3
6
@Localizer["version"]: v2.3
7
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment