|
|
@ -48,12 +48,17 @@ let constructDetailedFeedbackHtml = function() { |
|
|
|
* @returns {string} the contructed html string |
|
|
|
* @returns {string} the contructed html string |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
let createRateFeedbackHTML = function (Feedback) { |
|
|
|
let createRateFeedbackHTML = function (Feedback) { |
|
|
|
var rateExperience = APP.translation.translateString('dialog.rateExperience'), |
|
|
|
let rateExperience |
|
|
|
|
|
|
|
= APP.translation.translateString('dialog.rateExperience'), |
|
|
|
feedbackHelp = APP.translation.translateString('dialog.feedbackHelp'), |
|
|
|
feedbackHelp = APP.translation.translateString('dialog.feedbackHelp'), |
|
|
|
feedbackQuestion = (Feedback.feedbackScore < 0) |
|
|
|
feedbackQuestion = (Feedback.feedbackScore < 0) |
|
|
|
? `<p><br/>${APP.translation.translateString('dialog.feedbackQuestion')}</p>` |
|
|
|
? `<p><br/>${APP.translation.translateString('dialog.feedbackQuestion')}</p>` |
|
|
|
: ''; |
|
|
|
: ''; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let starClassName = (interfaceConfig.ENABLE_FEEDBACK_ANIMATION) |
|
|
|
|
|
|
|
? "icon-star shake-rotate" |
|
|
|
|
|
|
|
: "icon-star"; |
|
|
|
|
|
|
|
|
|
|
|
return ` |
|
|
|
return ` |
|
|
|
<div class="aui-dialog2-content feedback__content"> |
|
|
|
<div class="aui-dialog2-content feedback__content"> |
|
|
|
${feedbackQuestion} |
|
|
|
${feedbackQuestion} |
|
|
@ -63,19 +68,19 @@ let createRateFeedbackHTML = function (Feedback) { |
|
|
|
<p class="star-label"> </p> |
|
|
|
<p class="star-label"> </p> |
|
|
|
<div id="stars" class="feedback-stars"> |
|
|
|
<div id="stars" class="feedback-stars"> |
|
|
|
<a class="star-btn"> |
|
|
|
<a class="star-btn"> |
|
|
|
<i class="icon-star shake-rotate"></i> |
|
|
|
<i class=${ starClassName }></i> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
<a class="star-btn"> |
|
|
|
<a class="star-btn"> |
|
|
|
<i class="icon-star shake-rotate"></i> |
|
|
|
<i class=${ starClassName }></i> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
<a class="star-btn"> |
|
|
|
<a class="star-btn"> |
|
|
|
<i class="icon-star shake-rotate"></i> |
|
|
|
<i class=${ starClassName }></i> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
<a class="star-btn"> |
|
|
|
<a class="star-btn"> |
|
|
|
<i class="icon-star shake-rotate"></i> |
|
|
|
<i class=${ starClassName }></i> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
<a class="star-btn"> |
|
|
|
<a class="star-btn"> |
|
|
|
<i class="icon-star shake-rotate"></i> |
|
|
|
<i class=${ starClassName }></i> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<p> </p> |
|
|
|
<p> </p> |
|
|
@ -140,6 +145,8 @@ let onLoadDetailedFunction = function(Feedback) { |
|
|
|
Feedback.hide(); |
|
|
|
Feedback.hide(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('#feedbackTextArea').focus(); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|