mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -07:00
Format code and disable button once clicked
This commit is contained in:
parent
8f4034540c
commit
22a4478a06
2 changed files with 29 additions and 16 deletions
|
@ -639,6 +639,7 @@ DOCUMENTATION :: END
|
|||
|
||||
$('#confirm-modal').modal();
|
||||
$('#confirm-modal').one('click', '#confirm-update', function () {
|
||||
$(this).prop('disabled', true);
|
||||
var msg = "<i class='fa fa-refresh fa-spin'></i> Updating database..."
|
||||
showMsg(msg, false, false, 0)
|
||||
|
||||
|
@ -648,7 +649,7 @@ DOCUMENTATION :: END
|
|||
new_rating_key: new_rating_key,
|
||||
media_type: "${query['media_type']}"
|
||||
},
|
||||
async: false,
|
||||
async: true,
|
||||
success: function (data) {
|
||||
window.location.href = new_href;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue