remove obsolete controlpreset js files
This commit is contained in:
parent
590d65671c
commit
69268f79a4
|
@ -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 );
|
|
|
@ -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
|
|
||||||
}
|
|
||||||
?>
|
|
Loading…
Reference in New Issue