--> add/remove camera: apply button still there
-
-> http clients don't die: max_clients limit reached, request queued. 10 active, 217 queued requests.
--> remote adding ui could be improved (cleanup fields on ok/on load, no error message until everything is ok)
-> add an autoupdate mechanism
}
function showProgress() {
+ refreshDisabled++;
+
if (!$('div.settings-container').is(':visible')) {
return; /* settings panel is not open */
}
applyButton.addClass('progress');
$('div.camera-progress').css('opacity', '0.5');
-
- refreshDisabled++;
}
function hideApply() {
}
function endProgress() {
+ refreshDisabled--;
+
if (Object.keys(pushConfigs).length === 0) {
hideApply();
}
}
$('div.camera-progress').css('opacity', '0');
-
- refreshDisabled--;
}
function isProgress() {
this.validate();
});
- if (uiValid() && deviceSelect.val() == 'remote') {
+ if (content.is(':visible') && uiValid() && deviceSelect.val() == 'remote') {
fetchRemoteCameras();
}
}
ajax('GET', '/config/list/', data, function (data) {
if (data == null || data.error) {
progress.remove();
- showErrorMessage(data && data.error);
+ if (passwordEntry.val()) { /* only show an error message when a password is supplied */
+ showErrorMessage(data && data.error);
+ }
+
return;
}
updateUi();
showModalDialog('<div class="modal-progress"></div>');
-
+
/* fetch the available devices */
ajax('GET', '/config/list_devices/', null, function (data) {
if (data == null || data.error) {