From 8f181b7b51dc25d8d3d8f919891d054de16d145f Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 17 Apr 2015 17:05:09 +0100 Subject: [PATCH] refine --- static/js/licenseDialog.js | 4 ++-- static/js/utils.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/licenseDialog.js b/static/js/licenseDialog.js index f9c8bf75a..3a5dcd452 100644 --- a/static/js/licenseDialog.js +++ b/static/js/licenseDialog.js @@ -18,10 +18,10 @@ pandora.ui.licenseDialog = function() { content: Ox._( 'This installation of pan.do/ra is unlicensed. ' + 'Please contact your vendor for more information on ' - + 'how to acquire a license, or renew an expired one.' + + 'how to acquire a license or renew an expired one.' ), keys: {enter: 'close', escape: 'close'}, title: Ox._('License') }); - + return that; }; diff --git a/static/js/utils.js b/static/js/utils.js index 247dbea07..7a82a9361 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -1955,7 +1955,7 @@ pandora.isEmbedURL = function(url) { }; pandora.isLicensed = function() { - return pandora.site.license && pandora.site.license < +new Date(); + return !pandora.site.license || pandora.site.license > +new Date(); }; pandora.isPrintURL = function(url) {