Changeset 7465

Show
Ignore:
Timestamp:
03/04/08 18:11:31 (5 years ago)
Author:
mattn
Message:

websites/coderepos.org/trac/share/js/TracUtils.js:
location.pathnameが「/share/」だと7文字になって、「path.indexOf('.user.js') == path.length - 8」が成立してしまうのを回避。

Files:
1 modified

Legend:

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

    r7393 r7465  
    274274                        // 尻? 
    275275                        var isUserJS = function(path) { 
    276                                 return path.indexOf(".user.js") == path.length - 8; 
     276                                return /\.user\.js$/.test(path); 
    277277                        }; 
    278278                        // user.js のページがインストール画面でてうざいのをなんとかする。