From: Calin Crisan Date: Sat, 28 Sep 2013 15:07:08 +0000 (+0300) Subject: better apply progress X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=19df41f9d087a815d42d81fa2d0c3d02ba00cdf7;p=motioneye-debian better apply progress --- diff --git a/doc/todo.txt b/doc/todo.txt index c5af23a..05005c7 100644 --- a/doc/todo.txt +++ b/doc/todo.txt @@ -1,8 +1,9 @@ -> group @config rules to top --> what do we do with working schedule -> browser compatibility test -> hint text next to section titles +-> clickable hints -> authentication +-> better ajax error handling -> proxy for slave motioneyes -> add a view log functionality -> click to zoom on cameras diff --git a/static/css/base-site.css b/static/css/base-site.css index 92ffcb0..c104b06 100644 --- a/static/css/base-site.css +++ b/static/css/base-site.css @@ -196,7 +196,11 @@ div.apply-button:ACTIVE { } div.apply-button.progress { - background-color: #FF9340; + background-color: #FF6F00; +} + +img.apply-progress { + margin-top: 3px; } div.settings-top-bar.open select.video-device { diff --git a/static/img/progress.gif b/static/img/progress.gif index 12ccd9b..610f733 100644 Binary files a/static/img/progress.gif and b/static/img/progress.gif differ diff --git a/static/js/base-site.js b/static/js/base-site.js index 378a4cf..61a9787 100644 --- a/static/js/base-site.js +++ b/static/js/base-site.js @@ -11,7 +11,7 @@ function ajax(method, url, data, callback) { data: data, cache: false, success: callback, - failure: function (request, options, error) { + error: function (request, options, error) { alert('Request failed with code: ' + request.status); if (callback) { callback(); @@ -492,7 +492,7 @@ function showProgress() { return; /* progress already visible */ } - applyButton.html(''); + applyButton.html(''); applyButton.css('display', 'inline-block'); applyButton.animate({'opacity': '1'}, 100); applyButton.addClass('progress'); @@ -551,6 +551,11 @@ function doApply() { finishedCount++; testReady(); }); + + /* update the camera name in the device select */ + if (config.key !== 'main') { + $('#videoDeviceSelect').find('option[value=' + config.key + ']').html(config.config.name); + } } pushConfigs = {};