1
0
Fork 0

added remove prog view button

This commit is contained in:
Heiko Kernbach 2014-11-07 16:05:47 +01:00
parent e7132b2009
commit 3c13953b23
1 changed files with 7 additions and 5 deletions

View File

@ -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>');