From 7e014039f984aa585ed98837c4731f3f722f3dc4 Mon Sep 17 00:00:00 2001 From: Max Kerp Date: Fri, 2 May 2014 18:59:24 +0200 Subject: [PATCH] fixed issue #735. A click on the app img opens the app in a new tab now --- .../aardvark/frontend/js/views/foxxActiveView.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/js/apps/system/aardvark/frontend/js/views/foxxActiveView.js b/js/apps/system/aardvark/frontend/js/views/foxxActiveView.js index a08cbef5e8..dcc4409e8e 100644 --- a/js/apps/system/aardvark/frontend/js/views/foxxActiveView.js +++ b/js/apps/system/aardvark/frontend/js/views/foxxActiveView.js @@ -21,7 +21,8 @@ events: { 'click .icon_arangodb_info' : 'showDocu', - 'click' : 'editFoxxDialog' + 'click .icon_arangodb_settings2' : 'editFoxxDialog', + 'click' : 'openAppInNewTab' }, initialize: function(){ @@ -149,14 +150,20 @@ } }, + openAppInNewTab: function() { + var url = window.location.origin + "/_db/_system" + this.model.get("mount"); + var windowRef = window.open(url, this.model.get("title")); + windowRef.focus(); + }, + uninstall: function () { - if (!this.model.get("isSystem")) { + if (!this.model.get("isSystem")) { this.model.destroy({ wait: true }); window.modalView.hide(); this.appsView.reload(); } }, - + showDocu: function(event) { event.stopPropagation(); window.App.navigate(