Make WordPress Core


Ignore:
Timestamp:
04/11/2012 02:20:51 AM (13 years ago)
Author:
azaozz
Message:

Add the jQuery UI Touch Punch plugin to handle dragging on mobile devices, props georgestephanis, see #20014

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/widgets.php

    r19572 r20433  
    2626}
    2727
    28 if ( 'on' == $widgets_access )
     28if ( 'on' == $widgets_access ) {
    2929    add_filter( 'admin_body_class', 'wp_widgets_access_body_class' );
    30 else
     30} else {
    3131    wp_enqueue_script('admin-widgets');
     32
     33    if ( wp_is_mobile() )
     34        wp_enqueue_script( 'jquery-touch-punch' );
     35}
    3236
    3337do_action( 'sidebar_admin_setup' );
Note: See TracChangeset for help on using the changeset viewer.