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.js

    r9002 r11036  
    11/**
    2  * randomPict
     2 * randomPict v1.0.1
    33 *
    4  * release 1.0.0
     4 * | release | date       |
     5 * | 1.0.1   | 2011-05-24 | * mantis bug:2311
     6 * |         |            |   . broken javascript if random pic set is empty
     7 * |         |            |
    58 */
    69function randomPict(opt)
     
    105108$(document).ready(
    106109  function ()
    107   {
    108     var rPict=new randomPict(randomPictOpt);
     110  {   
     111    var rPict;
     112    if(typeof randomPictOpt!=='undefined')
     113    {
     114      rPict=new randomPict(randomPictOpt);
     115    }
     116    else
     117    {
     118      $('#mbAMM_randompict').remove();
     119    }
    109120  }
    110121);
Note: See TracChangeset for help on using the changeset viewer.