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(){},
|
action: function(){},
|
||||||
|
|
||||||
events: {
|
events: {
|
||||||
"click .progress-action button": "performAction"
|
"click .progress-action button": "performAction",
|
||||||
},
|
},
|
||||||
|
|
||||||
performAction: function() {
|
performAction: function() {
|
||||||
this.action();
|
//this.action();
|
||||||
|
window.progressView.hide();
|
||||||
},
|
},
|
||||||
|
|
||||||
initialize: function() {
|
initialize: function() {
|
||||||
|
@ -43,9 +44,10 @@
|
||||||
show: function(msg, action, button) {
|
show: function(msg, action, button) {
|
||||||
$(this.el).html(this.template.render({}));
|
$(this.el).html(this.template.render({}));
|
||||||
$(".progress-text").text(msg);
|
$(".progress-text").text(msg);
|
||||||
$(".progress-action").html(button);
|
$(".progress-action").html('<button class="button-danger">Cancel</button>');
|
||||||
|
this.action = this.hide();
|
||||||
this.action = action;
|
//$(".progress-action").html(button);
|
||||||
|
//this.action = action;
|
||||||
|
|
||||||
$(this.el).show();
|
$(this.el).show();
|
||||||
//$(this.el2).html('<i class="fa fa-spinner fa-spin"></i>');
|
//$(this.el2).html('<i class="fa fa-spinner fa-spin"></i>');
|
||||||
|
|
Loading…
Reference in New Issue