Fixed correct disabling of delete button.

namespaces
Frode Petterson 2014-08-27 09:52:15 +02:00
parent 68e7c00145
commit 67da268c44
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ var H5PLibraryList= H5PLibraryList || {};
}); });
var $deleteButton = $('.h5p-admin-delete-library', $libraryRow); var $deleteButton = $('.h5p-admin-delete-library', $libraryRow);
if (library.numContent !== '0' || library.numContentDependencies !== '' || library.numLibraryDependencies !== '') { if (libraries.notCached !== undefined || library.numContent !== 0 || (library.numContentDependencies !== '' && library.numContentDependencies !== 0) || (library.numLibraryDependencies !== '' && library.numLibraryDependencies !== 0)) {
// Disabled delete if content. // Disabled delete if content.
$deleteButton.attr('disabled', true); $deleteButton.attr('disabled', true);
} }