From b1b8206d05abf32a61489468d11d6f9617157504 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 25 May 2015 17:05:06 +0000 Subject: [PATCH] Use restore_count variable instead of non-existing length attribute, maybe helps with framework loading. --- phpgwapi/js/framework/fw_base.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/js/framework/fw_base.js b/phpgwapi/js/framework/fw_base.js index e82e32d863..8d6b880e1d 100644 --- a/phpgwapi/js/framework/fw_base.js +++ b/phpgwapi/js/framework/fw_base.js @@ -114,7 +114,7 @@ var fw_base = Class.extend({ } //If this entry is the default entry, show it using the click callback - if (app.isDefault && (app.isDefault === true) && (restore.length == 0)) + if (app.isDefault && (app.isDefault === true) && (restore_count === 0)) { defaultApp = this.appData; } @@ -137,7 +137,7 @@ var fw_base = Class.extend({ } // else display the default application - if (defaultApp && restore_count == 0) + if (defaultApp && restore_count === 0) { restore[defaultApp.appName] = mkRestoreEntry(defaultApp, 0, null, 1); }