Make WordPress Core

Changeset 32063


Ignore:
Timestamp:
04/07/2015 03:12:01 AM (10 years ago)
Author:
jorbin
Message:

Use dashes instead of dots as separator for jQuery events in shiny updates

. is used for namespaces, so better to use dashes.

see #31819
props iseulde

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/updates.js

    r32062 r32063  
    229229        wp.updates.updateDoneSuccessfully = true;
    230230
    231         $(document).trigger( 'wp.plugin.update.success', response );
     231        $(document).trigger( 'wp-plugin-update-success', response );
    232232
    233233        /*
     
    266266        wp.a11y.speak( wp.updates.l10n.updateFailed );
    267267
    268         $(document).trigger( 'wp.plugin.update.error', response );
     268        $(document).trigger( 'wp-plugin-update-error', response );
    269269    };
    270270
Note: See TracChangeset for help on using the changeset viewer.