docs: #272 hiding action buttons while switching the history option

This commit is contained in:
Hamid Reza Mohammadi 2022-01-13 15:45:09 +03:30
parent 6e41b2ae5c
commit f1de4dbd6b
2 changed files with 20 additions and 4 deletions

View File

@ -41,11 +41,15 @@ else
return;
}
document.getElementById('switch-tracking-button').style.visibility = 'hidden';
document.getElementById('processing').innerHTML = 'در حال پردازش ...';
$.ajax({
type: "POST",
url: '?handler=StopTracking',
error: function() {
alert('خطا رخ داد.');
location.reload();
},
success: function () {
location.reload();
@ -54,11 +58,15 @@ else
return;
}
document.getElementById('switch-tracking-button').style.visibility = 'hidden';
document.getElementById('processing').innerHTML = 'در حال پردازش ...';
$.ajax({
type: "POST",
url: '?handler=StartTracking',
error: function() {
alert('خطا رخ داد.');
location.reload();
},
success: function () {
location.reload();
@ -87,7 +95,11 @@ else
</p>
<p>
<a role="button" style="color: red" onclick="switchTracking(false)" class="actionlink">توقف ذخیرهٔ تاریخچه</a>
<a role="button" style="color: red" onclick="switchTracking(false)" id="switch-tracking-button" class="actionlink">توقف ذخیرهٔ تاریخچه</a>
</p>
<p id="processing">
</p>
<p>
@ -102,7 +114,11 @@ else
</p>
<p>
<a role="button" style="color: green" onclick="switchTracking(true)" class="actionlink">فعالسازی ذخیرهٔ تاریخچه</a>
<a role="button" style="color: green" onclick="switchTracking(true)" id="switch-tracking-button" class="actionlink">فعالسازی ذخیرهٔ تاریخچه</a>
</p>
<p id="processing">
</p>
<p>

View File

@ -8,8 +8,8 @@
},
"AllowedHosts": "*",
"GoogleAnalyticsCode": "",
"APIRoot": "http://localhost:3439",
"GlobalAPIRoot": "http://localhost:3439",
"APIRoot": "https://api.ganjoor.net",
"GlobalAPIRoot": "https://api.ganjoor.net",
"SiteUrl": "http://localhost:33081",
"AggressiveCacheEnabled": "False",
"ReadOnlyMode": "False",