Home Forums Porto Admin Template Controlling the Modal Confirm Success Message

This topic contains 1 reply, has 2 voices, and was last updated by  Support2 5 months, 1 week ago. This post has been viewed 158 times

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10028517

    dsteel
    Participant

    On using the class modal-confirm, a green success message pops up in the top right-hand corner of the page. Where may I configure the display time and text for this, please?

    Thanks

    David


    #10028532

    Support2
    Keymaster

    Hello David,

    You can change on the file js/examples/examples.modals.js line 74 (the “Modal Confirm” code).

    For add a delay just change the current code to this new:

    /*
    Modal Confirm
    */
    $(document).on('click', '.modal-confirm', function (e) {
    	e.preventDefault();
    	$.magnificPopup.close();
    
    	var delay = 1000; // 1 second
    
    	setTimeout(function(){
    		new PNotify({
    			title: 'Success!',
    			text: 'Modal Confirm Message.',
    			type: 'success'
    		});
    	}, delay);
    });

    Kind Regards,

    Rodrigo.


Viewing 2 posts - 1 through 2 (of 2 total)