Validation fixes from leftjustified. fixes #2909

git-svn-id: http://svn.automattic.com/wordpress/trunk@3998 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-07-06 02:45:17 +00:00
parent 681c4b9129
commit 22f451a9d0
1 changed files with 5 additions and 3 deletions

View File

@ -135,6 +135,7 @@ function kubrick_theme_page_head() {
?> ?>
<script type="text/javascript" src="../wp-includes/js/colorpicker.js"></script> <script type="text/javascript" src="../wp-includes/js/colorpicker.js"></script>
<script type='text/javascript'> <script type='text/javascript'>
// <![CDATA[
function pickColor(color) { function pickColor(color) {
ColorPicker_targetInput.value = color; ColorPicker_targetInput.value = color;
kUpdate(ColorPicker_targetInput.id); kUpdate(ColorPicker_targetInput.id);
@ -239,6 +240,7 @@ function kubrick_theme_page_head() {
document.getElementById('nonJsForm').style.display = 'none'; document.getElementById('nonJsForm').style.display = 'none';
} }
addLoadEvent(kInit); addLoadEvent(kInit);
// ]]>
</script> </script>
<style type='text/css'> <style type='text/css'>
#headwrap { #headwrap {
@ -351,13 +353,13 @@ function kubrick_theme_page() {
</div> </div>
<br /> <br />
<div id="nonJsForm"> <div id="nonJsForm">
<form method="POST"> <form method="post" action="">
<div class="zerosize"><input type="submit" name="defaultsubmit" value="Save" /></div> <div class="zerosize"><input type="submit" name="defaultsubmit" value="Save" /></div>
<label for="njfontcolor">Font Color:</label><input type="text" name="njfontcolor" id="njfontcolor" value="<?php echo kubrick_header_color(); ?>" /> Any CSS color (<code>red</code> or <code>#FF0000</code> or <code>rgb(255, 0, 0)</code>)<br /> <label for="njfontcolor">Font Color:</label><input type="text" name="njfontcolor" id="njfontcolor" value="<?php echo kubrick_header_color(); ?>" /> Any CSS color (<code>red</code> or <code>#FF0000</code> or <code>rgb(255, 0, 0)</code>)<br />
<label for="njuppercolor">Upper Color:</label><input type="text" name="njuppercolor" id="njuppercolor" value="#<?php echo kubrick_upper_color(); ?>" /> HEX only (<code>#FF0000</code> or <code>#F00</code>)<br /> <label for="njuppercolor">Upper Color:</label><input type="text" name="njuppercolor" id="njuppercolor" value="#<?php echo kubrick_upper_color(); ?>" /> HEX only (<code>#FF0000</code> or <code>#F00</code>)<br />
<label for="njlowercolor">Lower Color:</label><input type="text" name="njlowercolor" id="njlowercolor" value="#<?php echo kubrick_lower_color(); ?>" /> HEX only (<code>#FF0000</code> or <code>#F00</code>)<br /> <label for="njlowercolor">Lower Color:</label><input type="text" name="njlowercolor" id="njlowercolor" value="#<?php echo kubrick_lower_color(); ?>" /> HEX only (<code>#FF0000</code> or <code>#F00</code>)<br />
<input type="hidden" name="hi" id="hi" value="<?php echo kubrick_header_image(); ?>" /> <input type="hidden" name="hi" id="hi" value="<?php echo kubrick_header_image(); ?>" />
<label> </label><input type="submit" name="toggledisplay" id="toggledisplay" value="Toggle Text" /> <input type="submit" name="toggledisplay" id="toggledisplay" value="Toggle Text" />
<input type="submit" name="defaults" value="Use Defaults" /> <input type="submit" name="defaults" value="Use Defaults" />
<input type="submit" class="defbutton" name="submitform" value="&nbsp;&nbsp;Save&nbsp;&nbsp;" /> <input type="submit" class="defbutton" name="submitform" value="&nbsp;&nbsp;Save&nbsp;&nbsp;" />
<input type="hidden" name="action" value="save" /> <input type="hidden" name="action" value="save" />
@ -381,7 +383,7 @@ function kubrick_theme_page() {
</form> </form>
<div id="colorPickerDiv" style="z-index: 100;background:#eee;border:1px solid #ccc;position:absolute;visibility:hidden;"> </div> <div id="colorPickerDiv" style="z-index: 100;background:#eee;border:1px solid #ccc;position:absolute;visibility:hidden;"> </div>
<div id="advanced"> <div id="advanced">
<form id="jsAdvanced" style="display:none;"> <form id="jsAdvanced" style="display:none;" action="">
<label for="advfontcolor">Font Color (CSS): </label><input type="text" id="advfontcolor" onchange="advUpdate(this.value, 'fontcolor')" value="<?php echo kubrick_header_color(); ?>" /><br /> <label for="advfontcolor">Font Color (CSS): </label><input type="text" id="advfontcolor" onchange="advUpdate(this.value, 'fontcolor')" value="<?php echo kubrick_header_color(); ?>" /><br />
<label for="advuppercolor">Upper Color (HEX): </label><input type="text" id="advuppercolor" onchange="advUpdate(this.value, 'uppercolor')" value="#<?php echo kubrick_upper_color(); ?>" /><br /> <label for="advuppercolor">Upper Color (HEX): </label><input type="text" id="advuppercolor" onchange="advUpdate(this.value, 'uppercolor')" value="#<?php echo kubrick_upper_color(); ?>" /><br />
<label for="advlowercolor">Lower Color (HEX): </label><input type="text" id="advlowercolor" onchange="advUpdate(this.value, 'lowercolor')" value="#<?php echo kubrick_lower_color(); ?>" /><br /> <label for="advlowercolor">Lower Color (HEX): </label><input type="text" id="advlowercolor" onchange="advUpdate(this.value, 'lowercolor')" value="#<?php echo kubrick_lower_color(); ?>" /><br />