WordPress.org

Plugin Directory

Changeset 581801


Ignore:
Timestamp:
08/04/12 18:27:26 (21 months ago)
Author:
c3mdigital
Message:

missing js dir

Location:
wp-coda-slider/tags/0.3.6.1/lib
Files:
4 added
1 edited

Legend:

Unmodified
Added
Removed
  • wp-coda-slider/tags/0.3.6.1/lib/coda-slider-options.php

    r581779 r581801  
    3535    var $group = 'coda_settings_group'; 
    3636 
     37    var $coda_hook; 
    3738 
    3839    var $section = 'coda_settings_section'; 
     
    126127 
    127128    function get_p_types() { 
    128         $custom = ''; 
     129        $custom = array(); 
    129130        foreach ( get_post_types( array ( '_builtin' => false, 'can_export' => true, 'show_ui' => true ), 'objects' ) as $post_type ) { 
    130131            if ( $post_type ) 
     
    135136 
    136137    function admin_menu() { 
    137         add_options_page( $this->title, $this->title, $this->cap, $this->page_slug, array( $this, 'coda_options_page' ) ); 
     138        $this->coda_hook = add_options_page( $this->title, $this->title, $this->cap, $this->page_slug, array( $this, 'coda_options_page' ) ); 
    138139    } 
    139140 
     
    147148    } 
    148149    function admin_js( $hook ) { 
    149         //if ( 'coda_slider' == $hook ) 
    150             wp_enqueue_script( 'coda-admin', plugins_url( 'js/coda.admin.js', __FILE__ ), array( 'jquery') ); 
     150        if ( $hook != $this->coda_hook ) 
     151            return; 
     152        wp_enqueue_script( 'coda-admin', plugins_url( 'js/coda.admin.js', __FILE__ ), array( 'jquery') ); 
    151153    } 
    152154 
Note: See TracChangeset for help on using the changeset viewer.