mirror of https://gitee.com/bigwinds/arangodb
added remove prog view button
This commit is contained in:
parent
e7132b2009
commit
3c13953b23
|
@ -19,11 +19,12 @@
|
|||
action: function(){},
|
||||
|
||||
events: {
|
||||
"click .progress-action button": "performAction"
|
||||
"click .progress-action button": "performAction",
|
||||
},
|
||||
|
||||
performAction: function() {
|
||||
this.action();
|
||||
//this.action();
|
||||
window.progressView.hide();
|
||||
},
|
||||
|
||||
initialize: function() {
|
||||
|
@ -43,9 +44,10 @@
|
|||
show: function(msg, action, button) {
|
||||
$(this.el).html(this.template.render({}));
|
||||
$(".progress-text").text(msg);
|
||||
$(".progress-action").html(button);
|
||||
|
||||
this.action = action;
|
||||
$(".progress-action").html('<button class="button-danger">Cancel</button>');
|
||||
this.action = this.hide();
|
||||
//$(".progress-action").html(button);
|
||||
//this.action = action;
|
||||
|
||||
$(this.el).show();
|
||||
//$(this.el2).html('<i class="fa fa-spinner fa-spin"></i>');
|
||||
|
|
Loading…
Reference in New Issue