From 96b75f7d73347009a41470175af0ca7636f129fb Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Mon, 25 Aug 2014 15:18:29 +0200 Subject: [PATCH] Revert "Fixed bug where it appears like you can upgrade libraries without content." Source was elsewhere. This reverts commit 72d38fd977e058ec07ae9ad7847378a80227187b. --- js/h5p-library-list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/h5p-library-list.js b/js/h5p-library-list.js index ba6d0ab..aeba889 100644 --- a/js/h5p-library-list.js +++ b/js/h5p-library-list.js @@ -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 {