Permalink
Browse files

fix selector

  • Loading branch information...
1 parent ff4c3b5 commit 6175a28fb7424361fdece77a33448f947eac0d46 @bueltge committed Sep 7, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 inc/theme-options.js
  2. +2 −2 inc/theme-options.php
@@ -20,7 +20,7 @@ var farbtastic;
pickColor( $(colorpicker).val() );
- $('#text-color-example').click( function(e) {
+ $('.text-pickcolor').click( function(e) {
$(colorpickerdiv).show();
e.preventDefault();
});
@@ -258,7 +258,7 @@ public function settings_field_text_color() {
$options = $this->options;
?>
<input type="text" name="<?php echo $this->option_key; ?>[text_color]" id="text-color" value="<?php echo $options['text_color']; ?>" />
- <a href="#" class="pickcolor hide-if-no-js" id="text-color-example"></a>
+ <a href="#" class="text-pickcolor hide-if-no-js" id="text-color-example"></a>
<input type="button" class="text-pickcolor button hide-if-no-js" value="<?php esc_attr_e( 'Select a Color', 'documentation' ); ?>" />
<div id="text-colorPickerDiv" class="colorPickerDiv"></div>
<br />
@@ -280,7 +280,7 @@ public function settings_field_link_color() {
$options = $this->options;
?>
<input type="text" name="<?php echo $this->option_key; ?>[link_color]" id="link-color" value="<?php echo $options['link_color']; ?>" />
- <a href="#" class="pickcolor hide-if-no-js" id="link-color-example"></a>
+ <a href="#" class="link-pickcolor hide-if-no-js" id="link-color-example"></a>
<input type="button" class="link-pickcolor button hide-if-no-js" value="<?php esc_attr_e( 'Select a Color', 'documentation' ); ?>" />
<div id="link-colorPickerDiv" class="colorPickerDiv"></div>
<br />

0 comments on commit 6175a28

Please sign in to comment.