1
0
Fork 0

Enable button if the app is neither devel nor system

This commit is contained in:
Lucas Dohmen 2014-12-13 20:43:45 +01:00 committed by Michael Hackstein
parent 0c5ca609da
commit 53ec81a101
1 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,10 @@ window.ApplicationDetailView = Backbone.View.extend({
render: function() {
$(this.el).html(this.template.render(this.model));
if (!this.model.get('development') && !this.model.get('isSystem')) {
$('.delete', this.el).prop('disabled', false);
}
$.get(this.appUrl()).success(function () {
$('.open', this.el).prop('disabled', false);
}, this);