1
0
Fork 0

Disable open button when there's nothing to open

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

View File

@ -13,7 +13,7 @@
<div class="header">
<div class="header_left">
<img src="foxxes/thumbnail/<%=attributes.app %>" class="icon" alt="Icon for App">
<input type="button" class="open button-success" value="Open">
<input type="button" class="open button-success" disabled="true" value="Open">
<input type="button" class="delete button-danger" value="Delete">
</div>
<div class="header_right">

View File

@ -14,6 +14,11 @@ window.ApplicationDetailView = Backbone.View.extend({
render: function() {
$(this.el).html(this.template.render(this.model));
$.get(this.appUrl()).success(function () {
$('.open', this.el).prop('disabled', false);
}, this);
return $(this.el);
},