Changeset 12533


Ignore:
Timestamp:
Oct 31, 2011, 2:59:31 PM (12 years ago)
Author:
plg
Message:

bug fixed: when rating a photo, display the score and not the average rate in Ajax

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/luciano/js/script.js

    r12531 r12533  
    195195                                {
    196196                                        var t = gRatingOptions.ratingSummaryText;
    197                                         var args =[result.average, result.count, result.stdev], idx = 0, rexp = new RegExp( /%\.?\d*[sdf]/ );
     197                                        var args =[result.score, result.count, result.stdev], idx = 0, rexp = new RegExp( /%\.?\d*[sdf]/ );
    198198                                        _xxx = t.match( rexp );
    199199                                        while (idx<args.length) t=t.replace(rexp, args[idx++]);
Note: See TracChangeset for help on using the changeset viewer.