1
0
Fork 0

fixed issue #735. A click on the app img opens the app in a new tab now

This commit is contained in:
Max Kerp 2014-05-02 18:59:24 +02:00
parent 593d277b6f
commit 7e014039f9
1 changed files with 10 additions and 3 deletions

View File

@ -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(