Changeset 31891


Ignore:
Timestamp:
09/29/17 14:20:57 (2 years ago)
Author:
plg
Message:

bug fixed: on theme Stripped, even if we have enable menu on picture.php, nothing shows up and MenuRandomPhoto generates a JS error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/MenuRandomPhoto/mrp.js

    r31780 r31891  
    44 
    55  var randomPict = MRP_Opt['pictures']; 
    6   if (randomPict.length > 1) { 
     6  if (randomPict.length > 1 && $("#mbRandomPhoto").length > 0) { 
    77    $('#imrp_ill0 a').attr("href", randomPict[0]['link']); 
    88    $('#imrp_ill0 img').attr("src", randomPict[0]['thumb']); 
Note: See TracChangeset for help on using the changeset viewer.