Revert "Fixed bug where it appears like you can upgrade libraries without content."

Source was elsewhere.

This reverts commit 72d38fd977.
namespaces
Frode Petterson 2014-08-25 15:18:29 +02:00
parent 4f4ea4e350
commit 96b75f7d73
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ var H5PLibraryList= H5PLibraryList || {};
if (library.upgradeUrl === null) { if (library.upgradeUrl === null) {
$('.h5p-admin-upgrade-library', $libraryRow).remove(); $('.h5p-admin-upgrade-library', $libraryRow).remove();
} }
else if (library.upgradeUrl === false || library.numContent === '0') { else if (library.upgradeUrl === false || library.numContent === 0) {
$('.h5p-admin-upgrade-library', $libraryRow).attr('disabled', true); $('.h5p-admin-upgrade-library', $libraryRow).attr('disabled', true);
} }
else { else {