From: Calin Crisan Date: Sat, 27 Sep 2014 08:34:38 +0000 (+0300) Subject: removed reboot button as it's pointless X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=8888319c6c508d464eb08a6205dce72c8e18d473;p=motioneye-debian removed reboot button as it's pointless --- diff --git a/src/handlers.py b/src/handlers.py index f01f253..f65ce0c 100644 --- a/src/handlers.py +++ b/src/handlers.py @@ -956,9 +956,6 @@ class PowerHandler(BaseHandler): def post(self, op): if op == 'shutdown': powerctl.shut_down() - - elif op == 'reboot': - powerctl.reboot() class VersionHandler(BaseHandler): diff --git a/src/server.py b/src/server.py index ec35fbb..8df6d92 100644 --- a/src/server.py +++ b/src/server.py @@ -49,7 +49,7 @@ application = Application( (r'^/movie/(?P\d+)/(?Plist)/?$', handlers.MovieHandler), (r'^/movie/(?P\d+)/(?Pdownload|preview)/(?P.+)/?$', handlers.MovieHandler), (r'^/update/?$', handlers.UpdateHandler), - (r'^/power/(?Pshutdown|reboot)/?$', handlers.PowerHandler), + (r'^/power/(?Pshutdown)/?$', handlers.PowerHandler), (r'^/version/?$', handlers.VersionHandler), (r'^.*$', handlers.NotFoundHandler), ], diff --git a/static/css/main.css b/static/css/main.css index abe2a14..e1e43ef 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -339,31 +339,24 @@ img.apply-progress { } div.update-button, -div.shut-down-button, -div.reboot-button { +div.shut-down-button { position: relative; height: 1.5em; line-height: 1.5em; text-align: center; margin: 2px 0px; color: white; - font-size: 1em; + font-size: 0.9em; border-radius: 3px; transition: all 0.1s linear; + width: 7em; } div.update-button { - width: 4em; background: #317CAD; } div.shut-down-button { - width: 8em; - background: #c0392b; -} - -div.reboot-button { - width: 8em; background: #c0392b; } @@ -375,10 +368,6 @@ div.shut-down-button:HOVER { background: #D43F2F; } -div.reboot-button:HOVER { - background: #D43F2F; -} - div.update-button:ACTIVE { background: #317CAD; } @@ -387,10 +376,6 @@ div.shut-down-button:ACTIVE { background: #B03427; } -div.reboot-button:ACTIVE { - background: #B03427; -} - div.settings-top-bar.open #cameraSelect { display: inline; } diff --git a/static/js/main.js b/static/js/main.js index 950ce12..441efa9 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -371,11 +371,6 @@ function initUI() { doShutDown(); }); - /* reboot button */ - $('#rebootButton').click(function () { - doReboot(); - }); - /* whenever the window is resized, * if a modal dialog is visible, it should be repositioned */ $(window).resize(updateModalDialogPosition); @@ -1229,12 +1224,6 @@ function doShutDown() { }); } -function doReboot() { - runConfirmDialog('Really reboot?', function () { - ajax('POST', '/power/reboot/'); - }); -} - function doRemCamera() { if (Object.keys(pushConfigs).length) { return runAlertDialog('Please apply the modified settings first!'); diff --git a/templates/main.html b/templates/main.html index 9f5d3ee..035c932 100644 --- a/templates/main.html +++ b/templates/main.html @@ -97,11 +97,6 @@
Shut Down
? - - -
Reboot
- ? -
Wireless Network