Sha256: 793f7dad07907b937a97411aca2745bb63f87e53b557c7a527f471035de6f2cb

Contents?: true

Size: 326 Bytes

Versions: 18

Compression:

Stored size: 326 Bytes

Contents

mumuki.load(() => {
	function dumpChoices(_evt) {
		var indexes = $('.solution-choice:checked').map(function () {
			return $(this).data('index')
		}).get().join(':');
		$('#solution_content').attr('value', indexes);
	}

	mumuki.onInputsReady('.solution-choice', dumpChoices);
  $('.solution-choice').change(dumpChoices);
});

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
mumuki-laboratory-8.1.1 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-8.1.0 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.12.3 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-8.0.0 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.12.1 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.12.0 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.11.1 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.11.0 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.10.5 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.10.4 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.10.3 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.10.2 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.10.1 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.10.0 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.9.2 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.9.1 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.9.0 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.8.0 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js