Skip to content

Commit

Permalink
Merge pull request #38 from dmitrybitman/patch-1
Browse files Browse the repository at this point in the history
Read initial rating value from input
  • Loading branch information
javiertoledo committed May 4, 2016
2 parents b6c6dd1 + ad746da commit 1c21cad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bootstrap-rating-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
var ratingOptions = this.options = $.extend({}, DEFAULTS, inputOptions($input), options);
var $ratingEl = this.$el = createRatingEl($input, ratingOptions);
$input.addClass(hiddenClass).before($ratingEl);
this.highlight(ratingOptions.value);
this.highlight($input.val());
};

Rating.VERSION = '0.3.0';
Expand Down Expand Up @@ -141,4 +141,4 @@
});
});

}(jQuery));
}(jQuery));

0 comments on commit 1c21cad

Please sign in to comment.