( function ( $ ) { "use strict"; /* * Show message when added term. */ $( document ).on( 'ajaxSuccess', function( e, request, settings ) { if ( settings.data.indexOf( 'action=add-tag' ) < 0 ) { return; } // Add added term message. $( '#addtag p.submit' ).before( '
' + MBTermMeta.addedMessage + '