$(document).ready(function($) {
	if($('#post_flash').val() != null) {
		$('#post_flash').flashmsg();
	}
});

$(document).ready(function($) {
	if($('#post_flash').val() != null) {
		$('#post_flash').flashmsg();
		$('#post_flash').remove();
	}
});

Manage post v2