Show
Ignore:
Timestamp:
07/22/08 21:23:47 (4 months ago)
Author:
trapezoid
Message:

:tomblooでプロンプトあり、:tomblooでプロンプト無しでポストするように変更

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/vimperator-plugins/trunk/tombloo.js

    r15967 r16092  
    55 * @description-ja Tombloo経由で選択領域などをpostする 
    66 * @author         Trapezoid 
    7  * @version        0.1a 
     7 * @version        0.1b 
    88 * ==/VimperatorPlugin== 
    99 * 
    1010 * Usage: 
    11  * :tombloo arg         -> post by Tombloo 
    12  * :tomblooAction arg   -> execute Tombloo's action in tool menu 
     11 *  :tombloo arg                    -> post by Tombloo (don't use prompt) 
     12 *  :tombloo! arg                   -> post by Tombloo (use prompt) 
     13 *  :tomblooAction arg              -> execute Tombloo's action in tool menu 
    1314 **/ 
    1415var TomblooService = Components.classes['@brasil.to/tombloo-service;1'].getService().wrappedJSObject; 
     
    5657 
    5758liberator.commands.addUserCommand(['tombloo'],'Post by Tombloo', 
    58     function(arg){ 
    59         TomblooService.Tombloo.Service.share(getContext(), TomblooService.Tombloo.Service.extracters[arg],true); 
     59    function(arg,special){ 
     60        TomblooService.Tombloo.Service.share(getContext(), TomblooService.Tombloo.Service.extracters[arg],special); 
    6061    },{ 
    6162        completer: function(filter){ 
     
    6970    } 
    7071); 
     72 
     73liberator.options.add(['tomblooprompt'],'Use Tombloo prompt','boolean',this.isEnable, 
     74    { 
     75        setter: function(value){ self.isEnable = value; }, 
     76        getter: function(){ return self.isEnable; } 
     77    } 
     78);