You appear to be a bot. Output may be restricted
Description
Enqueue jQuery scripts required by oikWhat jQuery scripts do we need to make the page work as if they were dashboard widgets? Where do we find out what all the others do? Each of the default scripts that we enqueue gets added to the list of scripts loaded by wp-admin/load-scripts.php Except when 'SCRIPT_DEBUG' is true; then each script is loaded separately. 'dashboard' enables postbox toggling Currently ( Jul 2017 ) we want the toggling but don't want the AJAX requests when a postbox is toggled. It's not necessary to add most of the others that are commented out below as they are pre-requisites e.g. dashboard is dependent upon jquery, admin-comments and postbox
Usage
oik_enqueue_scripts();
Parameters
Returns
voidSource
File name: oik/libs/oik-admin.phpLines:
function oik_enqueue_scripts() { //wp_enqueue_style( 'wp-pointer' ); //wp_enqueue_script( 'jquery-ui' ); //wp_enqueue_script( 'jquery-ui-core' ); //wp_enqueue_script( 'jquery-ui-widget' ); //wp_enqueue_script( 'jquery-ui-mouse' ); //wp_enqueue_script( 'jquery-ui-sortable' ); //wp_enqueue_script( 'postbox' ); //wp_enqueue_script( 'wp-ajax-response' ); //wp_enqueue_script( 'wp-lists' ); //wp_enqueue_script( 'jquery-query' ); wp_enqueue_script( 'dashboard' ); //wp_enqueue_script( 'jquery-ui-draggable' ); //wp_enqueue_script( 'jquery-ui-droppable' ); //wp_enqueue_script( 'jquery-ui-tabs' ); //wp_enqueue_script( 'jquery-ui-selectable' ); //wp_enqueue_script( 'wp-pointer' ); //wp_enqueue_script( 'utils' ); }View on GitHub View on Trac