Check out the LimeSurvey source code on GitHub!

Bold current question or add a check mark when answered

More
2 years 10 months ago - 2 years 10 months ago #105892 by tpartner
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: 2 years 10 months ago by tpartner.
The following user(s) said Thank You: katgatita

Please Log in to join the conversation.

More
2 years 10 months ago #105894 by katgatita
Hi Tony,

Please see attached. Thank you!

Kat
Attachments:

Please Log in to join the conversation.

More
2 years 10 months ago #105895 by tpartner
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
2 years 10 months ago #105897 by katgatita
Hi Tony!

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

Kat :laugh:

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form