zoneminder/web/skins/classic/views/js/donate.js

14 lines
264 B
JavaScript
Raw Normal View History

2017-05-19 01:50:56 +08:00
function submitForm( element ) {
var form = element.form;
if ( form.option.selectedIndex == 0 ) {
2017-05-19 01:50:56 +08:00
form.view.value = currentView;
} else {
2017-05-19 01:50:56 +08:00
form.view.value = 'none';
}
2017-05-19 01:50:56 +08:00
form.submit();
}
2017-05-19 01:50:56 +08:00
if ( action == "donate" && option == "go" ) {
zmWindow();
}