From 69a54baec4ed607889cad50e5e5b00575c93d000 Mon Sep 17 00:00:00 2001 From: Seth Call Date: Thu, 25 Apr 2013 20:25:47 -0500 Subject: [PATCH 1/2] * adding what version is reported by backend to javascrpt log --- app/assets/javascripts/clientUpdate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/clientUpdate.js b/app/assets/javascripts/clientUpdate.js index 5a6d873e8..efd374804 100644 --- a/app/assets/javascripts/clientUpdate.js +++ b/app/assets/javascripts/clientUpdate.js @@ -112,7 +112,7 @@ if(currentVersion == null || currentVersion.indexOf("Compiled") > -1) { // this is a developer build; it doesn't make much sense to do an packaged update, so skip - logger.debug("skipping client update check because this is a development build") + logger.debug("skipping client update check because this is a development build ('" + currentVersion + "')") return; } From 77f400972eef077df07dda6c4fc5880f2d16f8e1 Mon Sep 17 00:00:00 2001 From: Seth Call Date: Thu, 25 Apr 2013 23:30:32 -0500 Subject: [PATCH 2/2] * stripping extra quotes from client version, if found --- app/assets/javascripts/clientUpdate.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/assets/javascripts/clientUpdate.js b/app/assets/javascripts/clientUpdate.js index efd374804..437cbfff7 100644 --- a/app/assets/javascripts/clientUpdate.js +++ b/app/assets/javascripts/clientUpdate.js @@ -116,6 +116,12 @@ return; } + // # strange client oddity: remove quotes, if found, from start and finish of version. + if(currentVersion.indexOf('"') == 0 && currentVersion.lastIndexOf('"') == currentVersion.length -1 ) { + currentVersion = currentVersion.substring(1, currentVersion.length - 1); + } + + $.ajax({ type: "GET", url: "/api/versioncheck?product=" + product + "&os=" + os,