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

namespaces
Frode Petterson 2014-08-25 11:35:14 +02:00
parent ffaad3b20b
commit 72d38fd977
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ var H5PLibraryList= H5PLibraryList || {};
if (library.upgradeUrl === null) {
$('.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);
}
else {