This patch makes a minor markup addition to ensure that a title with no
rating shows no stars.
Also changed: Minor addition to search results JS to prevent unwanted
scrolling if the user clicks a star in a star rating.
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
[% ELSE %]
<select id="star_rating" name="rating" data-rating-enabled="0" disabled="disabled" autocomplete="off">
[% END %]
+ [% IF ( rating_avg_int == 0 ) %]
+ <option value="" selected="selected"></option>
+ [% END %]
[% FOREACH i IN [ 1 2 3 4 5 ] %]
[% IF rating_avg_int == i %]
<option value="[% i | html %]" selected="selected">[% i | html %]</option>
[% ELSE %]
- <option value"[% i | html %]">[% i | html %]</option>
+ <option value="[% i | html %]">[% i | html %]</option>
[% END %]
[% END %]
</select>
});
enableCheckboxActions();
+ $(".br-readonly a").on("click", function(e){
+ e.preventDefault();
+ });
+
[% IF ( IDreamBooksResults ) %]
$('.idbresult').each(function() {
var isbn = $(this).children('a').text().replace(/\s*/,'');