EBernhardson has uploaded a new change for review. https://gerrit.wikimedia.org/r/286081
Change subject: Recolor scored results on page-reload after form validation error ...................................................................... Recolor scored results on page-reload after form validation error Change-Id: I4ccbaa2d6cb829533a165b5e56d15c71ac113ff3 --- M views/score_query.twig 1 file changed, 3 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/wikimedia/discovery/discernatron refs/changes/81/286081/1 diff --git a/views/score_query.twig b/views/score_query.twig index 4098215..3d9a9c0 100644 --- a/views/score_query.twig +++ b/views/score_query.twig @@ -128,5 +128,8 @@ onChange.apply(row.find('input[value=' + (next) + ']').prop('checked', true)); } }); + $(document).ready(function () { + $('input:checked').each(onChange); + }); </script> {% endblock %} -- To view, visit https://gerrit.wikimedia.org/r/286081 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I4ccbaa2d6cb829533a165b5e56d15c71ac113ff3 Gerrit-PatchSet: 1 Gerrit-Project: wikimedia/discovery/discernatron Gerrit-Branch: master Gerrit-Owner: EBernhardson <ebernhard...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits