mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 07:23:39 +02:00
Merge pull request #12470 from birarda/bug/content-settings-fixes
disable click on restore during a restore or for corrupted
This commit is contained in:
commit
13b15ced89
1 changed files with 6 additions and 1 deletions
|
@ -271,10 +271,15 @@ $(document).ready(function(){
|
||||||
}
|
}
|
||||||
|
|
||||||
// handle click in table to restore a given content backup
|
// handle click in table to restore a given content backup
|
||||||
$('body').on('click', '.' + BACKUP_RESTORE_LINK_CLASS, function(e){
|
$('body').on('click', '.' + BACKUP_RESTORE_LINK_CLASS, function(e) {
|
||||||
// stop the default behaviour
|
// stop the default behaviour
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
|
// if this is a disabled link, don't proceed with the restore
|
||||||
|
if ($(this).parent().hasClass('disabled')) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// grab the name of this backup so we can show it in alerts
|
// grab the name of this backup so we can show it in alerts
|
||||||
var backupName = $(this).closest('tr').attr('data-backup-name');
|
var backupName = $(this).closest('tr').attr('data-backup-name');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue