Ignore:
Timestamp:
Nov 29, 2012, 1:47:34 PM (11 years ago)
Author:
cljosse
Message:

[style] Gally-cuise fix compatibility with 2.4 (gally-grum-dark-II)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/gally/gally-cuise/js/theme.js

    r19131 r19217  
    2121  {
    2222    gallyCuise = new GallyCuise();
    23   }
     23 
     24 
     25    jQuery('a.pwg-state-default').each(function (i) {
     26      obj = this;
     27
     28
     29      jQuery(obj).addClass("button").removeClass('pwg-state-default').removeClass('pwg-button');
     30      html = jQuery(obj).html();
     31      if (html.indexOf("url(") > 0) {
     32
     33        id = this.id;
     34        jQuery(this).css({
     35         backgroundPosition:"-588px +28px" 
     36         
     37         });
     38        htmls = html.split("url(");
     39        htmls = htmls[1].split(")");
     40        html = "<img src=" + htmls[0] + " class='pwg-button img_button'   />";
     41 
     42      }else if (html.indexOf("map") > 0) {
     43      html="";
     44      jQuery(this).css({
     45         backgroundPosition:"-588px -28px" ,
     46         position:'relative'
     47        // bottom:'-10px',left:'-5px'
     48         });
     49      }
     50
     51      jQuery(obj).html(html);
     52    });
     53 }
    2454);
    2555
     
    2757  function GallyCuise()
    2858{
    29   function init()
    30   {
     59  function init() {
     60
     61 
    3162    // apply specific actions for categories pages
    3263    if(jQuery('#theCategoryPage').length>0)
     
    4172    }
    4273    setTipPosition_Menu();
     74    win_height = jQuery("#thumbContents").height();
     75    if (!win_height)
     76      win_height = jQuery("#theImage").height();
     77
    4378  }
    4479
Note: See TracChangeset for help on using the changeset viewer.