diff OrthancExplorer/explorer.js @ 1591:cd9d99fe32e9

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 27 Aug 2015 10:54:52 +0200
parents b8dc2f855a83
children 5cdea1cd2071
line wrap: on
line diff
--- a/OrthancExplorer/explorer.js	Wed Aug 26 17:51:03 2015 +0200
+++ b/OrthancExplorer/explorer.js	Thu Aug 27 10:54:52 2015 +0200
@@ -61,7 +61,9 @@
   
   currentPage = $.mobile.pageData.active;
   currentUuid = $.mobile.pageData.uuid;
-  if (currentPage.length > 0 && 
+  if (!(typeof currentPage === 'undefined') &&
+      !(typeof currentUuid === 'undefined') &&
+      currentPage.length > 0 && 
       currentUuid.length > 0)
   {
     Refresh();