PATH:
home
/
lab2454c
/
foreclass.com
/
wp-content
/
plugins
/
ocean-elementor-widgets
/
assets
/
js
( function( $ ) { jQuery( window ).on( 'elementor:init', function() { var ControlQueryPostSearch = elementor.modules.controls.BaseData.extend( { isPostSearchReady: false, getPostTitlesbyID: function() { var self = this, ids = this.getControlValue(); if ( ! ids ) { return; } if ( ! _.isArray( ids ) ) { ids = [ ids ]; } self.addControlSpinner(); $.ajax ({ url: ajaxurl, type:'POST', data: { action: 'oew_get_posts_title_by_id', id: ids }, success:function(results) { self.isPostSearchReady = true; self.model.set( 'options', results ); self.render(); } }); }, addControlSpinner: function() { this.ui.select.prop( 'disabled', true ); this.$el.find( '.elementor-control-title' ).after( '<span class="elementor-control-spinner"> <i class="fa fa-spinner fa-spin"></i> </span>' ); }, onReady: function() { var self = this; this.ui.select.select2({ placeholder: 'Search', allowClear: true, minimumInputLength: 2, ajax: { url: ajaxurl, dataType: 'json', method: 'post', delay: 250, data: function (params) { return { q: params.term, // search term post_type: self.model.get( 'post_type' ), action: 'oew_get_posts_by_query' }; }, processResults: function (data) { return { results: data }; }, cache: true }, }); if ( ! this.isPostSearchReady ) { this.getPostTitlesbyID(); } }, onBeforeDestroy: function() { if ( this.ui.select.data( 'select2' ) ) { this.ui.select.select2( 'destroy' ); } this.$el.remove(); } } ); elementor.addControlView( 'oew-query-posts', ControlQueryPostSearch ); } ); } )( jQuery );
[-] scroll-up.js
[edit]
[-] appear.js
[edit]
[-] off-canvas.js
[edit]
[-] member.min.js
[edit]
[-] alert.min.js
[edit]
[-] typed.min.js
[edit]
[-] navbar.js
[edit]
[-] hotspots.js
[edit]
[-] asPieProgress.min.js
[edit]
[-] blog-grid.js
[edit]
[-] hotspots.min.js
[edit]
[+]
..
[-] modal.js
[edit]
[-] blog-grid.min.js
[edit]
[-] instagram.js
[edit]
[-] twentytwenty.js
[edit]
[-] countdown.min.js
[edit]
[-] woo-slider.min.js
[edit]
[-] modal.min.js
[edit]
[-] google-map.min.js
[edit]
[-] image-comparison.js
[edit]
[-] blog-carousel.js
[edit]
[-] search.min.js
[edit]
[-] image-comparison.min.js
[edit]
[-] skillbar.js
[edit]
[-] event.move.js
[edit]
[-] instagram.min.js
[edit]
[-] skillbar.min.js
[edit]
[-] toggle.js
[edit]
[-] tabs.js
[edit]
[-] circle-progress.min.js
[edit]
[-] accordion.js
[edit]
[-] accordion.min.js
[edit]
[-] morphext.min.js
[edit]
[-] alert.js
[edit]
[-] navbar.min.js
[edit]
[-] morphext.js
[edit]
[-] search.js
[edit]
[-] countdown.js
[edit]
[-] image-gallery.js
[edit]
[-] off-canvas.min.js
[edit]
[-] appear.min.js
[edit]
[-] isotope.min.js
[edit]
[-] tooltip.min.js
[edit]
[-] newsletter.min.js
[edit]
[-] query-post.js
[edit]
[-] event.move.min.js
[edit]
[-] query-post.min.js
[edit]
[-] member.js
[edit]
[-] search-icon.js
[edit]
[-] slick.js
[edit]
[-] woo-slider.js
[edit]
[-] isotope.js
[edit]
[-] blog-carousel.min.js
[edit]
[-] tabs.min.js
[edit]
[-] asPieProgress.js
[edit]
[-] circle-progress.js
[edit]
[-] image-gallery.min.js
[edit]
[-] twentytwenty.min.js
[edit]
[-] search-icon.min.js
[edit]
[-] toggle.min.js
[edit]
[-] google-map.js
[edit]
[-] scroll-up.min.js
[edit]
[-] typed.js
[edit]
[-] newsletter.js
[edit]
[-] tooltip.js
[edit]