Fixed bug where it appears like you can upgrade libraries without content.
parent
ffaad3b20b
commit
72d38fd977
|
@ -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