/**
 * Interaction for the faq module
 *
 * @author	Annelies Van Extergem <annelies@netlash.com>
 * @author	Jelmer Snoeck <jelmer.snoeck@netlash.com>
 * @author	Thomas Deceuninck <thomas@fronto.be>
 */
jsFrontend.faq =
{
	// init, something like a constructor
	init: function()
	{
		if($('#faqFeedbackForm').length > 0) jsFrontend.faq.feedback.init();
	}
}

// feedback form
jsFrontend.faq.feedback =
{
	init: function()
	{
		// useful status has been changed
		$('#usefulY, #usefulN').on('click', function()
		{
			// get useful status
			var useful = ($('#usefulY').attr('checked') ? true : false);

			// show or hide the form
			if(useful)
			

			else
			{
				$('#feedbackNoInfo').show();
				$('#message').prop('required', true);
			}
		});
	}
}

$(jsFrontend.faq.init);
{
				$('#message').prop('required', false);
				$('form#feedback').submit();
			}