View | Details | Raw Unified | Return to bug 11827
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-3 / +3 lines)
Lines 1654-1659 Link Here
1654
1654
1655
    $(function () {
1655
    $(function () {
1656
      $(".auto-submit-star").rating({
1656
      $(".auto-submit-star").rating({
1657
        cancel: _('Cancel rating'),
1657
        callback: function (value, link) {
1658
        callback: function (value, link) {
1658
1659
1659
          // if the new value equals the old value, dont execute callback...
1660
          // if the new value equals the old value, dont execute callback...
Lines 1676-1687 Link Here
1676
                  $("#rating_value").val(data.rating_value);
1677
                  $("#rating_value").val(data.rating_value);
1677
1678
1678
                  if (data.rating_value) {
1679
                  if (data.rating_value) {
1679
                    $("#rating_value_text").text(_("your rating: ") + data.rating_value + ", ");
1680
                    $("#rating_value_text").text(_("your rating: %s, ").format(data.rating_value));
1680
                  } else {
1681
                  } else {
1681
                    $("#rating_value_text").text('');
1682
                    $("#rating_value_text").text('');
1682
                  }
1683
                  }
1683
1684
1684
                  $("#rating_text").text(_("average rating: ") + data.rating_avg + " (" + data.rating_total + ' ' + _("votes") + ")");
1685
                  $("#rating_text").text(_("average rating: %s (%s votes)").format(data.rating_avg, data.rating_total));
1685
1686
1686
                }
1687
                }
1687
              }, "json");
1688
              }, "json");
1688
- 

Return to bug 11827