Created
October 30, 2013 21:29
-
-
Save jazbek/7240619 to your computer and use it in GitHub Desktop.
Fix datepicker for satellite7 theme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_action('admin_print_scripts', 'fix_satellite7_datepicker', 21); | |
| function fix_satellite7_datepicker() { | |
| global $typenow; | |
| if ( class_exists('TribeEvents') && $typenow == TribeEvents::POSTTYPE ) { | |
| ?> | |
| <script type="text/javascript"> | |
| jQuery(document).ready(function($){ | |
| $('.datepicker').datepicker('destroy'); | |
| }); | |
| </script> | |
| <?php | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment