remove obsolete controlpreset js files

This commit is contained in:
Andrew Bauer 2021-01-04 13:18:05 -06:00
parent 75e2f526ae
commit 0cdc2b448d
2 changed files with 0 additions and 24 deletions

View File

@ -1,13 +0,0 @@
function initPage() {
var form = document.getElementById('contentForm');
var preset_ddm = form.elements['preset'];
var presetIndex = preset_ddm[preset_ddm.selectedIndex].value;
if ( labels[presetIndex] ) {
form.newLabel.value = labels[presetIndex];
} else {
form.newLabel.value = '';
}
}
$j(document).ready(initPage );

View File

@ -1,11 +0,0 @@
<?php
global $labels;
?>
var labels = new Array();
<?php
foreach ( $labels as $index=>$label ) {
?>
labels[<?php echo validInt($index) ?>] = '<?php echo validJsStr($label) ?>';
<?php
}
?>