Ignore:
Timestamp:
Mar 14, 2012, 2:34:13 PM (12 years ago)
Author:
plg
Message:

import theme Simple version 2.3

  • if cl_conflit is used, don't add jQuery.noConflict
  • fix the possibility to toggle visibility of image informations
  • show logout link when connected - thanks to gbo
  • update jquery to 1.4.4
  • backport commit from piwigo: r6244, r6430 & r6438
  • add gitignore
  • update javascripts + add script to combine/minify
  • apply r6594 from piwigo's trunk
  • move jquery in the header, using known_script
  • translation for the menu title
  • add 1px icon start_filter.png to avoid loading error with rvtree plugin
  • margin for error & info divs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/simple_themes/simple/js/rating.js

    r13546 r13549  
    3636                        rateButton.parentNode.removeChild(rateButton.previousSibling);
    3737
    38                 if(window.addEventListener){ // Mozilla, Netscape, Firefox
    39                         rateButton.addEventListener("click", updateRating, false );
    40                         rateButton.addEventListener("mouseout", resetRatingStarDisplay, false );
    41                         rateButton.addEventListener("mouseover", updateRatingStarDisplayEvt, false );
    42                 }
    43                 else if(window.attachEvent) { // IE
    44                         rateButton.attachEvent("onclick", updateRating);
    45                         rateButton.attachEvent("onmouseout", resetRatingStarDisplay);
    46                         rateButton.attachEvent("onmouseover", updateRatingStarDisplayEvt);
    47                 }
     38                pwgAddEventListener(rateButton, "click", updateRating);
     39                pwgAddEventListener(rateButton, "mouseout", resetRatingStarDisplay);
     40                pwgAddEventListener(rateButton, "mouseover", updateRatingStarDisplayEvt);
    4841        }
    4942        resetRatingStarDisplay();
     
    8982                                {
    9083                                        var t = gRatingOptions.ratingSummaryText;
    91                                         var args =[result.average, result.count, result.stdev], idx = 0, rexp = new RegExp( /%\.?\d*[sdf]/ );
    92                                         _xxx = t.match( rexp );
     84                                        var args =[result.average, result.count], idx = 0, rexp = new RegExp( /%\.?\d*[sdf]/ );
     85                                        //_xxx = t.match( rexp );
    9386                                        while (idx<args.length) t=t.replace(rexp, args[idx++]);
    9487                                        gRatingOptions.ratingSummaryElement.innerHTML = t;
Note: See TracChangeset for help on using the changeset viewer.