function showStatus(status) {
                    if (status) {
                        $scope.spinner = status === mmCoreDownloading;
                        downloadBtn.hidden = status !== mmCoreNotDownloaded;
                        // Always show refresh button if a book is downloaded because revision and timemodified aren't reliable.
                        refreshBtn.hidden = status !== mmCoreOutdated && status !== mmCoreDownloaded;
                    }
                }
// Show buttons according to module status.
Show buttons according to module status.
Show buttons according to module status .
function showStatus(status) {
                    if (status) {
                        $scope.spinner = status === mmCoreDownloading;
                        downloadBtn.hidden = status !== mmCoreNotDownloaded;
                        refreshBtn.hidden = status !== mmCoreOutdated && status !== mmCoreDownloaded;
                    }
                }
function showStatus ( status ) { if ( status ) { $scope . spinner = status === mmCoreDownloading ; downloadBtn . hidden = status !== mmCoreNotDownloaded ; refreshBtn . hidden = status !== mmCoreOutdated && tatus  ==  mCoreDownloaded; } }
Show buttons according to module status.
Show buttons according to module status .
// Always show refresh button if a book is downloaded because revision and timemodified aren't reliable.