2017-05-19 01:50:56 +08:00
|
|
|
function updateLabel() {
|
|
|
|
var presetIndex = $('contentForm').preset.getValue();
|
|
|
|
if ( labels[presetIndex] ) {
|
|
|
|
$('contentForm').newLabel.value = labels[presetIndex];
|
|
|
|
} else {
|
|
|
|
$('contentForm').newLabel.value = "";
|
|
|
|
}
|
2008-07-14 21:54:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
window.addEvent( 'domready', updateLabel );
|