Skip to content

Commit

Permalink
Fixed style for image_select field
Browse files Browse the repository at this point in the history
  • Loading branch information
rilwis committed Mar 2, 2018
1 parent 3526630 commit 03f3823
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions css/image-select.css
Expand Up @@ -16,6 +16,6 @@
.rwmb-image-select.rwmb-active {
border-color: #0074a2;
}
.rwmb-image-select input {
.rwmb-image_select.rwmb-image_select {
display: none;
}
}
2 changes: 1 addition & 1 deletion inc/fields/image-select.php
Expand Up @@ -26,7 +26,7 @@ public static function admin_enqueue_scripts() {
*/
public static function html( $meta, $field ) {
$html = array();
$tpl = '<label class="rwmb-image-select"><img src="%s"><input type="%s" class="rwmb-image_select hidden" name="%s" value="%s"%s></label>';
$tpl = '<label class="rwmb-image-select"><img src="%s"><input type="%s" class="rwmb-image_select" name="%s" value="%s"%s></label>';

$meta = (array) $meta;
foreach ( $field['options'] as $value => $image ) {
Expand Down

0 comments on commit 03f3823

Please sign in to comment.