Labs/Ubiquity/Ubiquity Source Tip Author Tutorial: Difference between revisions

Jump to navigation Jump to search
Line 776: Line 776:
     var tabName = arguments.object.text;
     var tabName = arguments.object.text;
     if( tabName.length > 1 ){
     if( tabName.length > 1 ){
         var msg = "Changes to <b style=\"color:yellow\">%s</b> tab.";
         var msg = "Changes to <b style=\"color:yellow\">${tab}</b> tab.";
         pblock.innerHTML = msg.replace(/%s/, tabName);
         pblock.innerHTML = _(msg, {tab: tabName});
     }
     }
     else
     else
       pblock.innerHTML = "Switch to a tab by name.";
       pblock.innerHTML = _("Switch to a tab by name.");
   }
   }
})
})
1,007

edits

Navigation menu