mirror of https://gitee.com/bigwinds/arangodb
fixed issue #735. A click on the app img opens the app in a new tab now
This commit is contained in:
parent
593d277b6f
commit
7e014039f9
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue