You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Bootstrap / Font-Awesome and was hoping to use icons within the rating - but the HTML is stripped out leaving empty tags. Is there a means to incorporate these ?
TIA
Update:
I've modified JS to look for HTML content in 'data-html' attribute and then use html insertion (there isn't any error checking etc):
// create ratings - but only if val is defined
if (val) {
text = $(this).text();
html = $(this).data('html'); // added this
if (html){ text = html }; // and this
$a = $('<a />', { href:'#', 'data-rating-value':val, 'data-rating-text':text });
$span = $('<span />', { html:(userOptions.showValues) ? text : '' }); //changed to html
$widget.append($a.append($span));
The text was updated successfully, but these errors were encountered:
Hi there
I am using Bootstrap / Font-Awesome and was hoping to use icons within the rating - but the HTML is stripped out leaving empty tags. Is there a means to incorporate these ?
TIA
Update:
I've modified JS to look for HTML content in 'data-html' attribute and then use html insertion (there isn't any error checking etc):
The text was updated successfully, but these errors were encountered: