1
0
Fork 0

Open an app

This commit is contained in:
Lucas Dohmen 2014-12-12 23:17:19 +01:00 committed by Michael Hackstein
parent 03a827cf12
commit 3154c1ae1b
1 changed files with 8 additions and 2 deletions

View File

@ -18,10 +18,16 @@ window.ApplicationDetailView = Backbone.View.extend({
},
openApp: function() {
alert('Open!');
window.open(this.appUrl(), this.model.get('title')).focus();
},
deleteApp: function() {
alert('Delete!');
}
},
appUrl: function () {
return window.location.origin + '/_db/' +
encodeURIComponent(arangoHelper.currentDatabase()) +
this.model.get('mount');
},
});