From 8599f2381d7ae0d8d7c18e2197d38606c5047e34 Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Wed, 11 Jun 2014 15:37:34 +0200 Subject: [PATCH] Fixed not cached bug in library list. --- js/h5p-library-list.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/h5p-library-list.js b/js/h5p-library-list.js index 79bc400..a238d39 100644 --- a/js/h5p-library-list.js +++ b/js/h5p-library-list.js @@ -47,7 +47,7 @@ var H5PLibraryList= H5PLibraryList || {}; ' ]); - if (library.upgradeUrl !== null && library.numContent !== '0') { + if (library.upgradeUrl !== null && library.numContent !== 0) { $('.h5p-admin-upgrade-library', $libraryRow).attr('title', t.upgradeLibrary).click(function () { window.location.href = library.upgradeUrl; }); @@ -62,7 +62,7 @@ var H5PLibraryList= H5PLibraryList || {}; }); var $deleteButton = $('.h5p-admin-delete-library', $libraryRow); - if (library.numContent !== '0' || library.numContentDependencies !== '0' || library.numLibraryDependencies !== '0') { + if (library.numContent !== 0 || library.numContentDependencies !== 0 || library.numLibraryDependencies !== 0) { // Disabled delete if content. $deleteButton.attr('disabled', true).attr('title', t.deleteLibrary); }