Changeset 597


Ignore:
Timestamp:
04/20/09 22:23:58 (3 years ago)
Author:
jf.hovinne
Message:

Fix regexp while computing paths (add 'packed').

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wymeditor/jquery.wymeditor.js

    r591 r597  
    12791279WYMeditor.editor.prototype.computeBasePath = function() { 
    12801280  return jQuery(jQuery.grep(jQuery('script'), function(s){ 
    1281     return (s.src && s.src.match(/jquery\.wymeditor(\.pack|\.min)?\.js(\?.*)?$/ )) 
    1282   })).attr('src').replace(/jquery\.wymeditor(\.pack|\.min)?\.js(\?.*)?$/, ''); 
     1281    return (s.src && s.src.match(/jquery\.wymeditor(\.pack|\.min|\.packed)?\.js(\?.*)?$/ )) 
     1282  })).attr('src').replace(/jquery\.wymeditor(\.pack|\.min|\.packed)?\.js(\?.*)?$/, ''); 
    12831283}; 
    12841284 
    12851285WYMeditor.editor.prototype.computeWymPath = function() { 
    12861286  return jQuery(jQuery.grep(jQuery('script'), function(s){ 
    1287     return (s.src && s.src.match(/jquery\.wymeditor(\.pack|\.min)?\.js(\?.*)?$/ )) 
     1287    return (s.src && s.src.match(/jquery\.wymeditor(\.pack|\.min|\.packed)?\.js(\?.*)?$/ )) 
    12881288  })).attr('src'); 
    12891289}; 
     
    12911291WYMeditor.editor.prototype.computeJqueryPath = function() { 
    12921292  return jQuery(jQuery.grep(jQuery('script'), function(s){ 
    1293     return (s.src && s.src.match(/jquery(-(.*)){0,1}(\.pack|\.min)?\.js(\?.*)?$/ )) 
     1293    return (s.src && s.src.match(/jquery(-(.*)){0,1}(\.pack|\.min|\.packed)?\.js(\?.*)?$/ )) 
    12941294  })).attr('src'); 
    12951295}; 
Note: See TracChangeset for help on using the changeset viewer.