Revert "Fixed bug where it appears like you can upgrade libraries without content."
Source was elsewhere.
This reverts commit 72d38fd977
.
namespaces
parent
4f4ea4e350
commit
96b75f7d73
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue