Show
Ignore:
Timestamp:
09/03/08 16:36:04 (3 months ago)
Author:
mattn
Message:

さずがに何でもかんでもはまずい

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • websites/coderepos.org/trac/share/js/TracUtils.js

    r18722 r18724  
    383383                                if (/\.js$/.test(this.href)) this.href += "?"; 
    384384                        }); 
    385                 } 
    386                 if (/\/([^\/]+)\.js$/.test(location.pathname)) { 
    387                         var name = RegExp.$1; 
    388                         var version = $('#info a[@href*="/changeset/"]').text(); 
    389                         var uri = TracUtils.getSourcePath(location); 
    390                         $("<link/>").attr({ 
    391                                 href  : uri, 
    392                                 name : name, 
    393                                 version : version, 
    394                                 rel : 'commands' 
    395                         }) 
    396                         .appendTo("head"); 
     385 
     386                        if (/\/([^\/]+)\.js$/.test(location.pathname)) { 
     387                                var name = RegExp.$1; 
     388                                var version = $('#info a[@href*="/changeset/"]').text(); 
     389                                var uri = TracUtils.getSourcePath(location); 
     390                                $("<link/>").attr({ 
     391                                        href  : uri, 
     392                                        name : name, 
     393                                        version : version, 
     394                                        rel : 'commands' 
     395                                }) 
     396                                .appendTo("head"); 
     397                        } 
    397398                } 
    398399        }