2017-05-19 01:50:56 +08:00
|
|
|
function submitCamera( element ) {
|
|
|
|
var form = element.form;
|
|
|
|
form.target = opener.name;
|
|
|
|
form.view.value = 'monitor';
|
|
|
|
form.submit();
|
|
|
|
closeWindow.delay( 250 );
|
2014-07-15 02:59:36 +08:00
|
|
|
}
|
|
|
|
|
2017-05-19 01:50:56 +08:00
|
|
|
function gotoStep1( element ) {
|
|
|
|
var form = element.form;
|
|
|
|
form.target = self.name;
|
|
|
|
form.view.value = 'onvifprobe';
|
|
|
|
form.step.value = '1';
|
|
|
|
form.submit();
|
2014-07-15 02:59:36 +08:00
|
|
|
}
|
|
|
|
|
2017-05-19 01:50:56 +08:00
|
|
|
function gotoStep2( element ) {
|
|
|
|
var form = element.form;
|
|
|
|
form.target = self.name;
|
|
|
|
form.view.value = 'onvifprobe';
|
|
|
|
form.step.value = '2';
|
|
|
|
form.submit();
|
2014-07-15 02:59:36 +08:00
|
|
|
}
|
|
|
|
|
2019-09-11 21:18:03 +08:00
|
|
|
function configureButtons(element) {
|
2017-05-19 01:50:56 +08:00
|
|
|
var form = element.form;
|
2019-09-11 21:18:03 +08:00
|
|
|
if (form.elements.namedItem('nextBtn')) {
|
2017-05-19 01:50:56 +08:00
|
|
|
form.nextBtn.disabled = (form.probe.selectedIndex==0) ||
|
2019-09-11 21:18:03 +08:00
|
|
|
(form.Username == '') || (form.Username == null) ||
|
|
|
|
(form.Password == '') || (form.Password == null);
|
2017-05-19 01:50:56 +08:00
|
|
|
}
|
2019-09-11 21:18:03 +08:00
|
|
|
if (form.elements.namedItem('saveBtn')) {
|
2017-05-19 01:50:56 +08:00
|
|
|
form.saveBtn.disabled = (form.probe.selectedIndex==0);
|
|
|
|
}
|
2014-07-15 02:59:36 +08:00
|
|
|
}
|