| @@ -1,5 +1,5 @@ | ||
| 1 | -<script type="text/x-template" id="learn-press-modal-search-items"> | |
| 1 | +<script type="text/template" id="learn-press-modal-search-items"> | |
| 2 | 2 | <div id="modal-search-items" class="learn-press-modal"> |
| 3 | 3 | <div class="modal-overlay"> |
| 4 | 4 | |
| 5 | 5 | </div> |
| @@ -6,27 +6,25 @@ | ||
| 6 | 6 | <div class="modal-wrapper"> |
| 7 | 7 | <div class="modal-container"> |
| 8 | 8 | <header><?php echo wp_kses_post( $this->_options['title'] ); ?></header> |
| 9 | 9 | <article> |
| 10 | - <input type="text" name="search" @keyup="doSearch" ref="term" value="" placeholder="<?php esc_html_e( 'Search items', 'learnpress' ); ?>" autocomplete="off"/> | |
| 11 | - <ul class="search-results" @click="selectItem"></ul> | |
| 10 | + <input type="text" name="search" value="" placeholder="<?php esc_html_e( 'Search items', 'learnpress' ); ?>" autocomplete="off"/> | |
| 11 | + <ul class="search-results"></ul> | |
| 12 | 12 | </article> |
| 13 | 13 | <footer> |
| 14 | - <div class="search-nav" @click="loadPage" v-if="hasItems"> | |
| 14 | + <div class="search-nav"> | |
| 15 | 15 | </div> |
| 16 | - <button class="button" | |
| 17 | - @click="close"><?php echo wp_kses_post( $this->_options['close_button'] ); ?></button> | |
| 18 | - <button class="button button-primary" | |
| 19 | - @click="addItems" | |
| 20 | - v-if="selected.length"><?php echo wp_kses_post( $this->_options['add_button'] ); ?></button> | |
| 16 | + <button class="button close"><?php echo wp_kses_post( $this->_options['close_button'] ); ?></button> | |
| 17 | + <button class="button button-primary add" style="display:none"><?php echo wp_kses_post( $this->_options['add_button'] ); ?></button> | |
| 21 | 18 | </footer> |
| 22 | 19 | </div> |
| 23 | 20 | </div> |
| 24 | 21 | </div> |
| 25 | 22 | </script> |
| 26 | -<div id="vue-modal-search-items" style="position: relative;z-index: 10000;"> | |
| 27 | - <learn-press-modal-search-items v-if="show" :post-type="postType" :term="term" :context="context" | |
| 28 | - :context-id="contextId" :show="show" :callbacks="callbacks" | |
| 29 | - :exclude="exclude" | |
| 30 | - v-on:close="close"> | |
| 31 | - </learn-press-modal-search-items> | |
| 23 | +<?php | |
| 24 | + | |
| 25 | +?> | |
| 26 | +<div id="container-modal-search-items" style="position: relative;z-index: 10000;"> | |
| 32 | 27 | </div> |
| 28 | + | |
| 29 | + | |
| 30 | + | |