Ignore:
Timestamp:
May 24, 2011, 11:17:20 PM (13 years ago)
Author:
grum
Message:

fix bug:2311, bug:2312 (random pict bug)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AMenuManager/js/amm_randomPictPublic.min.js

    r9002 r11036  
    1 /* file: amm_randomPictPublic.js - v1.0.0 | minified on 2011/01/31 with http://jscompress.com/ */
     1/* file: amm_randomPictPublic.js - v1.0.1 | minified on 2011/05/24 with http://jscompress.com/ */
    22function randomPict(opt)
    33{var options={fixedHeight:0,pictures:[],showName:'n',showComment:'n',delay:0},properties={vIntervalID:0,vCurrentPict:0,nameDOM:'',commentDOM:'',img:new Image()},init=function(opt)
     
    1616{if(properties.nameDOM!='')$('#'+properties.nameDOM).html(options.pictures[properties.vCurrentPict].name);if(properties.commentDOM!='')$('#'+properties.commentDOM).html(options.pictures[properties.vCurrentPict].comment);$('#iammRPicLink').attr('href',options.pictures[properties.vCurrentPict].link);$('#iammRPicImg').attr('src',options.pictures[properties.vCurrentPict].thumb);computePositionTop();$('#iamm_ill0').fadeTo(200,1);});};init(opt);}
    1717$(document).ready(function()
    18 {var rPict=new randomPict(randomPictOpt);});
     18{var rPict;if(typeof randomPictOpt!=='undefined'){rPict=new randomPict(randomPictOpt);}else{$('#mbAMM_randompict').remove();}});
Note: See TracChangeset for help on using the changeset viewer.