From 51f97361bbbcff7df41565af18060c1592ccf715 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 8 Feb 2012 15:34:14 -0500 Subject: [PATCH] CC-3289: Widgets should have a version string so users can make sure widgets are up to date - cleaned up the code, removed comment and added a period to throw message --- widgets/js/jquery.showinfo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widgets/js/jquery.showinfo.js b/widgets/js/jquery.showinfo.js index 049d65304..6023a097a 100644 --- a/widgets/js/jquery.showinfo.js +++ b/widgets/js/jquery.showinfo.js @@ -405,10 +405,10 @@ function convertDateToPosixTime(s){ */ function checkWidgetVersion(data){ var widgetVersion = data['widgetVersion']; - //console.log(widgetVersion); + if (undefined === widgetVersion || widgetVersion > 1) throw 'The widgets you are using are out of date, please get the latest jquery.showinfo.js file.'; else if (widgetVersion < 1) - throw 'The version of airtime that you are using should be upgraded to work with this widget'; + throw 'The version of airtime that you are using should be upgraded to work with this widget.'; }