Emoji JS cleanup.

* Filename: emoji.js => wp-emoji.js
 * Script handle: emoji => wp-emoji
 * Object: WPEmoji => wp.emoji
 * Script settings: EmojiSettings => _wpemojiSettings
 * Setting key: base_url => baseUrl
 * Remove executable bit from files

see #31242.


git-svn-id: https://develop.svn.wordpress.org/trunk@31744 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2015-03-12 03:16:51 +00:00
parent fdb65519ac
commit a5cd4f6284
8 changed files with 32 additions and 30 deletions
+1 -1
View File
@@ -272,7 +272,7 @@ inlineEditPost = {
if ( -1 !== r.indexOf( '<tr' ) ) {
$(inlineEditPost.what+id).siblings('tr.hidden').addBack().remove();
$('#edit-'+id).before(r).remove();
window.WPEmoji.parse( $( inlineEditPost.what + id ).get( 0 ) );
wp.emoji.parse( $( inlineEditPost.what + id ).get( 0 ) );
$(inlineEditPost.what+id).hide().fadeIn();
} else {
r = r.replace( /<.[^<>]*?>/g, '' );
+1 -1
View File
@@ -117,7 +117,7 @@ inlineEditTax = {
// Update the value in the Parent dropdown.
$( '#parent' ).find( 'option[value=' + option_value + ']' ).text( row.find( '.row-title' ).text() );
window.WPEmoji.parse( row.get( 0 ) );
wp.emoji.parse( row.get( 0 ) );
row.hide().fadeIn();
} else {
+1 -1
View File
@@ -741,7 +741,7 @@ jQuery(document).ready( function($) {
});
}
window.WPEmoji.parse( box.get( 0 ) );
wp.emoji.parse( box.get( 0 ) );
b.html(revert_b);
real_slug.val(new_slug);
+1 -1
View File
@@ -49,7 +49,7 @@ jQuery(document).ready(function($) {
else
$( '.tags' ).prepend( res.responses[0].supplemental.parents ); // As the parent is not visible, Insert the version with Parent - Child - ThisTerm
window.WPEmoji.parse( $( '.tags' ).get( 0 ) );
wp.emoji.parse( $( '.tags' ).get( 0 ) );
$('.tags .no-items').remove();