From 741e6e02af746b7b66278b97a1c0aebc123600e3 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 21 Sep 2015 20:27:07 +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;