Changeset 12533


Ignore:
Timestamp:
10/31/11 14:59:31 (8 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.