From 30c7669588582123cbce06380080521c7e0ce021 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 21 Sep 2015 22:34:45 +0000 Subject: [PATCH] Return Deferred promise when app handles the link, avoids error Cannot read property 'promise' of undefined --- phpgwapi/js/framework/fw_browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/js/framework/fw_browser.js b/phpgwapi/js/framework/fw_browser.js index 258f2573fa..015240bc37 100644 --- a/phpgwapi/js/framework/fw_browser.js +++ b/phpgwapi/js/framework/fw_browser.js @@ -136,7 +136,7 @@ var fw_browser = Class.extend({ { var ret = window.app[this.app.appName].linkHandler.call(window.app[this.app.appName], _url); { - if (ret === true) return; + if (ret === true) return this.loadingDeferred.promise(); if (typeof ret === 'string') { _url = ret;