});
});
+ /* various change handlers */
+
$('#storageDeviceSelect').change(function () {
$('#rootDirectoryEntry').val('/');
});
}
});
- /* fetch & push handlers */
- $('#cameraSelect').focus(function () {
- /* remember the previously selected index */
- this._prevSelectedIndex = this.selectedIndex;
-
- }).change(function () {
- if ($('#cameraSelect').val() === 'add') {
- runAddCameraDialog();
- this.selectedIndex = this._prevSelectedIndex;
- }
- else {
- this._prevSelectedIndex = this.selectedIndex;
- beginProgress([$(this).val()]);
- fetchCurrentCameraConfig(endProgress);
- }
- });
- $('input.main-config, select.main-config, textarea.main-config').change(function () {
- pushMainConfig($(this).parents('tr:eq(0)').attr('reboot') == 'true');
- });
- $('input.camera-config, select.camera-config, textarea.camera-config').change(function () {
- pushCameraConfig($(this).parents('tr:eq(0)').attr('reboot') == 'true');
- });
-
/* streaming framerate must be >= device framerate */
$('#framerateSlider').change(function () {
var value = Number($('#framerateSlider').val());
updateConfigUI();
});
+ /* fetch & push handlers */
+ $('#cameraSelect').focus(function () {
+ /* remember the previously selected index */
+ this._prevSelectedIndex = this.selectedIndex;
+
+ }).change(function () {
+ if ($('#cameraSelect').val() === 'add') {
+ runAddCameraDialog();
+ this.selectedIndex = this._prevSelectedIndex;
+ }
+ else {
+ this._prevSelectedIndex = this.selectedIndex;
+ beginProgress([$(this).val()]);
+ fetchCurrentCameraConfig(endProgress);
+ }
+ });
+ $('input.main-config, select.main-config, textarea.main-config').change(function () {
+ pushMainConfig($(this).parents('tr:eq(0)').attr('reboot') == 'true');
+ });
+ $('input.camera-config, select.camera-config, textarea.camera-config').change(function () {
+ pushCameraConfig($(this).parents('tr:eq(0)').attr('reboot') == 'true');
+ });
+
/* preview controls */
$('#brightnessSlider').change(function () {pushPreview('brightness');});
$('#contrastSlider').change(function () {pushPreview('contrast');});