bootstrap-rating.js
function (rate) {
      var value = parseFloat(rate);
      if (this._contains(value)) {
        this._fillUntil(this._rateToIndex(value));
        this.$input.val(value);
      } else if (rate === '') {
        this._fillUntil(0);
        this.$input.val('');
      }
    }
function (rate) {
      var value = parseFloat(rate);
      if (this._contains(value)) {
        this._fillUntil(this._rateToIndex(value));
        this.$input.val(value);
      } else if (rate === '') {
        this._fillUntil(0);
        this.$input.val('');
      }
    }
function ( rate ) { var value = parseFloat ( rate ) ; if ( this . _contains ( value ) ) { this . _fillUntil ( this . _rateToIndex ( value ) ) ; this . $input . val ( value ) ; } else if ( rate === '' ) { this . _fillUntil ( 0 ) ; this . $input . val ( '' ) ; } }
Update empty and filled rating symbols according to a rate.
Update empty and filled rating symbols according to a rate .