2020-10-04 10:32:07 +08:00
|
|
|
var form = $j('#monitorPresetForm');
|
2020-10-04 10:30:48 +08:00
|
|
|
|
2017-05-19 01:50:56 +08:00
|
|
|
function submitPreset( element ) {
|
|
|
|
form.target = opener.name;
|
|
|
|
form.view.value = 'monitor';
|
|
|
|
form.submit();
|
|
|
|
closeWindow.delay( 250 );
|
2008-07-14 21:54:50 +08:00
|
|
|
}
|
|
|
|
|
2020-10-04 10:30:48 +08:00
|
|
|
function configureButtons() {
|
2017-05-19 01:50:56 +08:00
|
|
|
form.saveBtn.disabled = (form.preset.selectedIndex==0);
|
2008-07-14 21:54:50 +08:00
|
|
|
}
|
2020-10-04 10:30:48 +08:00
|
|
|
|
|
|
|
function initPage() {
|
|
|
|
$j('#preset').change(configureButtons);
|
|
|
|
}
|
|
|
|
|
|
|
|
$j(document).ready(initPage);
|