From 00175cd28378acc844bdc072f7c393893ebcae5d Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 22 Apr 2012 00:03:29 +0200 Subject: [PATCH] Shutdown/restart question fixes --- couchpotato/static/scripts/couchpotato.js | 10 ++++++---- couchpotato/static/style/main.css | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/couchpotato/static/scripts/couchpotato.js b/couchpotato/static/scripts/couchpotato.js index 0f8fcd99..8f412eea 100644 --- a/couchpotato/static/scripts/couchpotato.js +++ b/couchpotato/static/scripts/couchpotato.js @@ -161,16 +161,17 @@ var CouchPotato = new Class({ self.checkAvailable(1000); }, - shutdownQA: function(){ + shutdownQA: function(e){ 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', 'class': 'shutdown red', 'events': { 'click': function(e){ (e).preventDefault(); self.shutdown(); + q.close.delay(100, q); } } }, { @@ -187,16 +188,17 @@ var CouchPotato = new Class({ self.checkAvailable(1000); }, - restartQA: function(message, title){ + restartQA: function(e, message, title){ 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', 'class': 'restart orange', 'events': { 'click': function(e){ (e).preventDefault(); self.restart(message, title); + q.close.delay(100, q); } } }, { diff --git a/couchpotato/static/style/main.css b/couchpotato/static/style/main.css index 467e1f8b..dfc3878d 100644 --- a/couchpotato/static/style/main.css +++ b/couchpotato/static/style/main.css @@ -491,7 +491,7 @@ body > .spinner, .mask{ width: auto; } .question .answer:hover { - background: #f1f1f1; + background: #000; } .question .answer.delete {