Show
Ignore:
Timestamp:
09/03/08 16:28:02 (4 months ago)
Author:
mattn
Message:

Ubiquityインストーラ起動(の準備)

Files:
1 modified

Legend:

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

    r18582 r18721  
    376376 
    377377        /** 
     378         * Ubiquity Script のユーティリティ 
     379         */ 
     380        , addUbiquityScriptsUtils : function () { 
     381                if (location.pathname.indexOf("/share/browser/lang/javascript/ubiquity") == 0) { 
     382                        $("a").each(function () { 
     383                                if (isUbiquityJS(this.href)) this.href += "?"; 
     384                        }); 
     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                } 
     398        } 
     399 
     400        /** 
    378401         * Trac のあらゆるところに設定されたアイコンを表示する。 
    379402         * TracAuthorIcon.js を jQuery/XPath 依存にして簡略化したもの