Skip to:
Content
Pages
Categories
Search
Top
Bottom

Dismiss notice notification message!


  • anasmokayed
    Participant

    @anasmokayed

    Hi!

    I can’t dismiss notice notification message! I’m getting a JS error:

    TypeError: jq(...).attr(...) is undefinedbuddypress.js:1433:31
        <anonymous> ../wp-content/themes/wplms/assets/js/old_files/buddypress.js?ver=3.9.5:1433
        jQuery 2
            dispatch
            handle

    When I click on the error it takes me here:

    /* Close site wide notices in the sidebar */
    	jq("#close-notice").on( 'click', function() {
    		jq(this).addClass('loading');
    		jq('#sidebar div.error').remove();
    
    		jq.post( ajaxurl, {
    			action: 'messages_close_notice',
    			'notice_id': jq('.notice').attr('rel').substr( 2, jq('.notice').attr('rel').length )
    		},
    		function(response) {
    			jq("#close-notice").removeClass('loading');
    
    			if ( response[0] + response[1] == '-1' ) {
    				jq('.notice').prepend( response.substr( 2, response.length ) );
    				jq( '#sidebar div.error').hide().fadeIn( 200 );
    			} else {
    				jq('.notice').slideUp( 100 );

    Can Anyone help me with this?

  • You must be logged in to reply to this topic.
Skip to toolbar