WordPress.org

Plugin Directory


Ignore:
Timestamp:
06/30/17 13:06:18 (5 months ago)
Author:
bastho
Message:

Initial work on datepicker for search form

File:
1 edited

Legend:

Unmodified
Added
Removed
  • event-post/trunk/eventpost.php

    r1684297 r1688293  
    461461     * Enqueue JS files in admin 
    462462     */ 
    463     public function admin_scripts($deps = array('jquery')) { 
     463    public function admin_scripts($deps = array('jquery'), $force=false) { 
    464464        $page = basename($_SERVER['SCRIPT_NAME']); 
    465         if( $page!='post-new.php' && !($page=='post.php' && filter_input(INPUT_GET, 'action')=='edit') && !($page=='options-general.php' && filter_input(INPUT_GET, 'page')=='event-settings') ){ 
     465        if(!$force && $page!='post-new.php' && !($page=='post.php' && filter_input(INPUT_GET, 'action')=='edit') && !($page=='options-general.php' && filter_input(INPUT_GET, 'page')=='event-settings')){ 
    466466            return; 
    467467        } 
     
    17551755 
    17561756        // Search form 
     1757        $this->admin_scripts(null, true); 
    17571758        include (plugin_dir_path(__FILE__) . 'views/search-form.php'); 
    17581759 
Note: See TracChangeset for help on using the changeset viewer.