Ignore:
Timestamp:
01/28/07 03:11:53 (13 years ago)
Author:
ray
Message:

one more amendmend to [700] + [701]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/ImageManager/assets/manager.js

    r677 r702  
    6262      // (when the user alters the dimensions in the picker), clean that up 
    6363      // so it looks right and we get back to a normal f_url 
    64       var rd = _resized_dir.replace(HTMLArea.RE_Specials, '\\$1'); 
    65       var rp = _resized_prefix.replace(HTMLArea.RE_Specials, '\\$1'); 
    66       var dreg = new RegExp('^(.*/)' + rd + '/' + rp + '_([0-9]+)x([0-9]+)_([^/]+)$'); 
     64      var rd = (_resized_dir) ? _resized_dir.replace(Xinha.RE_Specials, '\\$1') + '/' : ''; 
     65      var rp = _resized_prefix.replace(Xinha.RE_Specials, '\\$1'); 
     66      var dreg = new RegExp('^(.*/)' + rd + rp + '_([0-9]+)x([0-9]+)_([^/]+)$'); 
    6767   
    6868      if(dreg.test(param.f_url)) 
Note: See TracChangeset for help on using the changeset viewer.