WordPress.org

Plugin Directory

Changeset 1412437


Ignore:
Timestamp:
05/08/16 06:08:38 (14 months ago)
Author:
perezlabs
Message:

Slight tweak to the employee form in admin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-hrms/trunk/includes/class-wp-hrms.php

    r1411841 r1412437  
    4949     */ 
    5050    public function enqueue_styles() { 
     51        global $wp_scripts; 
     52 
    5153        $screen = get_current_screen(); 
    5254        if ( ! in_array( $screen->post_type, $this->post_types ) ) { 
    5355            return; 
    5456        } 
     57 
     58        $jquery_version = isset( $wp_scripts->registered['jquery-ui-core']->ver ) ? $wp_scripts->registered['jquery-ui-core']->ver : '1.9.2'; 
     59 
     60        wp_enqueue_style(  
     61            'jquery-ui-style',  
     62            '//code.jquery.com/ui/' . $jquery_version . '/themes/smoothness/jquery-ui.css',  
     63            array(),  
     64            $jquery_version  
     65        ); 
    5566 
    5667        wp_enqueue_style( 
     
    7990            'wp-hrms-admin', 
    8091            WP_HRMS_PLUGIN_URL . '/assets/js/admin.js', 
    81             array( 'jquery' ), 
     92            array( 'jquery', 'jquery-ui-datepicker' ), 
    8293            WP_HRMS_VERSION 
    8394        ); 
Note: See TracChangeset for help on using the changeset viewer.