Shutdown/restart question fixes

This commit is contained in:
Ruud
2012-04-22 00:03:29 +02:00
parent dcc61f740b
commit 00175cd283
2 changed files with 7 additions and 5 deletions
+6 -4
View File
@@ -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);
} }
} }
}, { }, {
+1 -1
View File
@@ -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 {