Bold current question or add a check mark when answered

More
3 years 2 months ago - 3 years 2 months ago #105892 by tpartner
tpartner replied the topic: Bold current question or add a check mark when answered
Export the complete template and attache the zip file.


Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
Last Edit: 3 years 2 months ago by tpartner.
The following user(s) said Thank You: katgatita

Please Log in to join the conversation.

More
3 years 2 months ago #105894 by katgatita
katgatita replied the topic: Bold current question or add a check mark when answered
Hi Tony,

Please see attached. Thank you!

Kat
Attachments:

Please Log in to join the conversation.

More
3 years 2 months ago #105895 by tpartner
tpartner replied the topic: Bold current question or add a check mark when answered
Add this to the end of template.js:

	$(document).ready(function() { 
 
		$('.ranking.dragDropRanking .ui-sortable').sortable('option', 'stop', function(event, ui) {
			var qID = $(this).closest('.ranking.dragDropRanking').attr('id').split('question')[1];
			$('#sortable-choice-'+qID+'').sortable('refresh');
			$('#sortable-rank-'+qID+'').sortable('refresh');
			updateDragDropRank(qID);
			if($('#sortable-rank-'+qID+' li.choice').length > 0) {
				markAnswered($('#question'+qID));
			}
			else {
				markUnanswered($('#question'+qID));
			}
		});
	});

Here is your template back with that change incorporated and renamed to "PREP_Bold_2.0_TP":

File Attachment:

File Name: PREP_Bold_2.0_TP.zip
File Size:118 KB

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
The following user(s) said Thank You: katgatita

Please Log in to join the conversation.

More
3 years 2 months ago #105897 by katgatita
katgatita replied the topic: Bold current question or add a check mark when answered
Hi Tony!

It is perfect! Thank you so much for your help! You rock!

Kat :laugh:

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now