/* global $, APP, interfaceConfig, AJS */ /* jshint -W101 */ const selector = '#aui-feedback-dialog'; /** * Toggles the appropriate css class for the given number of stars, to * indicate that those stars have been clicked/selected. * * @param starCount the number of stars, for which to toggle the css class */ let toggleStars = function(starCount) { $('#stars > a').each(function(index, el) { if (index <= starCount) { el.classList.add("starHover"); } else el.classList.remove("starHover"); }); }; /** * Constructs the html for the detailed feedback window. * * @returns {string} the contructed html string */ let constructDetailedFeedbackHtml = function() { return `
${APP.translation.translateString("dialog.sorryFeedback")}
${APP.translation.translateString('dialog.feedbackQuestion')}