/**
  * Enqueues scripts for when the admin page is a slideshow edit page.
  *
  * @since 2.1.11
  */
 static function enqueueAdminScripts()
 {
     // Return if function doesn't exist
     if (!function_exists('get_current_screen')) {
         return;
     }
     // Return when not on a slideshow edit page.
     $currentScreen = get_current_screen();
     if ($currentScreen->post_type != self::$postType) {
         return;
     }
     // Enqueue associating script
     wp_enqueue_script('post-type-handler', SlideshowPluginMain::getPluginUrl() . '/js/' . __CLASS__ . '/post-type-handler.js', array('jquery'), SlideshowPluginMain::$version);
     // TODO: These scripts have been moved here from the footer. They need to be always printed in the header
     // TODO: a solution for this needs to be found.
     // Enqueue scripts required for sorting the slides list
     wp_enqueue_script('jquery-ui-sortable');
     // Enqueue JSColor
     wp_enqueue_script('jscolor-colorpicker', SlideshowPluginMain::getPluginUrl() . '/js/SlideshowPluginPostType/jscolor/jscolor.js', null, SlideshowPluginMain::$version);
     // Enqueue slide insert script and style
     SlideshowPluginSlideInserter::enqueueFiles();
 }