Shutdown/restart question fixes
This commit is contained in:
@@ -161,16 +161,17 @@ var CouchPotato = new Class({
|
|||||||
self.checkAvailable(1000);
|
self.checkAvailable(1000);
|
||||||
},
|
},
|
||||||
|
|
||||||
shutdownQA: function(){
|
shutdownQA: function(e){
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
new Question('Are you sure you want to shutdown CouchPotato?', '', [{
|
var q = new Question('Are you sure you want to shutdown CouchPotato?', '', [{
|
||||||
'text': 'Shutdown',
|
'text': 'Shutdown',
|
||||||
'class': 'shutdown red',
|
'class': 'shutdown red',
|
||||||
'events': {
|
'events': {
|
||||||
'click': function(e){
|
'click': function(e){
|
||||||
(e).preventDefault();
|
(e).preventDefault();
|
||||||
self.shutdown();
|
self.shutdown();
|
||||||
|
q.close.delay(100, q);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
@@ -187,16 +188,17 @@ var CouchPotato = new Class({
|
|||||||
self.checkAvailable(1000);
|
self.checkAvailable(1000);
|
||||||
},
|
},
|
||||||
|
|
||||||
restartQA: function(message, title){
|
restartQA: function(e, message, title){
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
new Question('Are you sure you want to restart CouchPotato?', '', [{
|
var q = new Question('Are you sure you want to restart CouchPotato?', '', [{
|
||||||
'text': 'Restart',
|
'text': 'Restart',
|
||||||
'class': 'restart orange',
|
'class': 'restart orange',
|
||||||
'events': {
|
'events': {
|
||||||
'click': function(e){
|
'click': function(e){
|
||||||
(e).preventDefault();
|
(e).preventDefault();
|
||||||
self.restart(message, title);
|
self.restart(message, title);
|
||||||
|
q.close.delay(100, q);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
@@ -491,7 +491,7 @@ body > .spinner, .mask{
|
|||||||
width: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
.question .answer:hover {
|
.question .answer:hover {
|
||||||
background: #f1f1f1;
|
background: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.question .answer.delete {
|
.question .answer.delete {
|
||||||
|
|||||||
Reference in New Issue
Block a user