mirror of https://gitee.com/bigwinds/arangodb
Disable open button when there's nothing to open
This commit is contained in:
parent
3154c1ae1b
commit
cb5374e293
|
@ -13,7 +13,7 @@
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="header_left">
|
<div class="header_left">
|
||||||
<img src="foxxes/thumbnail/<%=attributes.app %>" class="icon" alt="Icon for App">
|
<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">
|
<input type="button" class="delete button-danger" value="Delete">
|
||||||
</div>
|
</div>
|
||||||
<div class="header_right">
|
<div class="header_right">
|
||||||
|
|
|
@ -14,6 +14,11 @@ window.ApplicationDetailView = Backbone.View.extend({
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
$(this.el).html(this.template.render(this.model));
|
$(this.el).html(this.template.render(this.model));
|
||||||
|
|
||||||
|
$.get(this.appUrl()).success(function () {
|
||||||
|
$('.open', this.el).prop('disabled', false);
|
||||||
|
}, this);
|
||||||
|
|
||||||
return $(this.el);
|
return $(this.el);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue