Switch from multi select to jquery-ui selectable

This commit is contained in:
Markus Ankenbrand 2017-02-21 00:02:41 +01:00
parent 12933e3b48
commit 37cd5f9498
2 changed files with 7 additions and 6 deletions

View file

@ -32,7 +32,7 @@
<?php the_content(); ?>
<select name="travelers" id="travelers-select" multiple></select>
<ul id="travelers-select"></ul>
<div class="button" style="color:white" id="travelers-filter-button" onclick="filterByTravelerClick();">Filter</div>
<?php wp_link_pages('before=<div class="clear"></div><p class="page-links">' . __( 'Pages:', 'hitchcock' ) . ' &after=</p>&seperator= <span class="sep">/</span> '); ?>
@ -78,7 +78,7 @@
}
}
endwhile;
wp_enqueue_script('page_pins_map', get_stylesheet_directory_uri() . '/js/page-pins-map.js', array('jquery'));
wp_enqueue_script('page_pins_map', get_stylesheet_directory_uri() . '/js/page-pins-map.js', array('jquery', 'jquery-ui-selectable'));
wp_localize_script('page_pins_map', 'page_pins_map', array('places' => $locations, 'traveler' => array_values($traveler)));
?>