Sha256: a8b98e87053ce44ab5cd0cf4c9cd4480d5f5318b6886501938065ce09778bbf1

Contents?: true

Size: 325 Bytes

Versions: 64

Compression:

Stored size: 325 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

64 entries across 64 versions & 1 rubygems

Version Path
mumuki-laboratory-7.7.6 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.7.5 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.7.4 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.7.3 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.7.2 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.7.1 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.7.0 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.6.2 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.6.1 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.6.0 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.5.2 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.5.1 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.5.0 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.4.2 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.4.1 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.4.0 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.3.1 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.3.0 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.2.0 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js
mumuki-laboratory-7.1.0 app/assets/javascripts/mumuki_laboratory/application/multiple-choice.js