2017-05-18 17:50:56 +00:00
|
|
|
function updateLabel() {
|
2018-05-16 15:13:59 +00:00
|
|
|
var form = $('contentForm');
|
|
|
|
var preset_ddm = form.elements['preset'];
|
|
|
|
|
|
|
|
var presetIndex = preset_ddm[preset_ddm.selectedIndex].value;
|
2017-05-18 17:50:56 +00:00
|
|
|
if ( labels[presetIndex] ) {
|
2018-05-16 15:13:59 +00:00
|
|
|
form.newLabel.value = labels[presetIndex];
|
2017-05-18 17:50:56 +00:00
|
|
|
} else {
|
2018-05-16 15:13:59 +00:00
|
|
|
form.newLabel.value = '';
|
2017-05-18 17:50:56 +00:00
|
|
|
}
|
2008-07-14 13:54:50 +00:00
|
|
|
}
|
2019-01-21 16:14:32 +00:00
|
|
|
window.addEventListener('DOMContentLoaded', updateLabel);
|