diff options
author | rvelices <rv-github@modusoptimus.com> | 2011-07-26 19:04:50 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2011-07-26 19:04:50 +0000 |
commit | c0bb4dfb43d05d68cb4abe69e279e91c88bd2f11 (patch) | |
tree | d82bf347d8b4a5deb8532371e7073e2692737bec /themes/default/js/rating.js | |
parent | 630c4bb85e82c956053526255097f3fa706427b4 (diff) |
feature 2384: improve average rating calculation (final)
git-svn-id: http://piwigo.org/svn/trunk@11839 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | themes/default/js/rating.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/themes/default/js/rating.js b/themes/default/js/rating.js index b72b55477..3bc846681 100644 --- a/themes/default/js/rating.js +++ b/themes/default/js/rating.js @@ -69,6 +69,7 @@ function updateRating(e) onSuccess: function(result) { gUserRating = rateButton.initialRateValue; for (var i=0; i<gRatingButtons.length; i++) gRatingButtons[i].disabled=false; + if (gRatingOptions.onSuccess) gRatingOptions.onSuccess(result); if (gRatingOptions.updateRateElement) gRatingOptions.updateRateElement.innerHTML = gRatingOptions.updateRateText; if (gRatingOptions.ratingSummaryElement) { |