From 53ec81a1014b3e3fcaacef3abd1c1946699a03fc Mon Sep 17 00:00:00 2001 From: Lucas Dohmen Date: Sat, 13 Dec 2014 20:43:45 +0100 Subject: [PATCH] Enable button if the app is neither devel nor system --- .../aardvark/frontend/js/views/applicationDetailView.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/apps/system/aardvark/frontend/js/views/applicationDetailView.js b/js/apps/system/aardvark/frontend/js/views/applicationDetailView.js index 110b5d939d..45fcc9859d 100644 --- a/js/apps/system/aardvark/frontend/js/views/applicationDetailView.js +++ b/js/apps/system/aardvark/frontend/js/views/applicationDetailView.js @@ -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);