docs: #272 hiding action buttons while switching the history option
This commit is contained in:
parent
6e41b2ae5c
commit
f1de4dbd6b
@ -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>
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user