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

15 lines
303 B
JavaScript
Raw Normal View History

function updateLabel()
{
var presetIndex = $('contentForm').preset.getValue();
if ( labels[presetIndex] )
{
$('contentForm').newLabel.value = labels[presetIndex];
}
else
{
$('contentForm').newLabel.value = "";
}
}
window.addEvent( 'domready', updateLabel );