1,007
edits
| Line 727: | Line 727: | ||
<pre> | <pre> | ||
CmdUtils.CreateCommand({ | CmdUtils.CreateCommand({ | ||
names: ["tab"], | |||
arguments: {object: noun_type_tab}, | |||
execute: function( | execute: function( arguments ) { | ||
var tabName = | var tabName = arguments.object.text; | ||
var tabs = noun_type_tab.getTabs(); | var tabs = noun_type_tab.getTabs(); | ||
tabs[tabName]._window.focus(); | tabs[tabName]._window.focus(); | ||
| Line 737: | Line 737: | ||
}, | }, | ||
preview: function( pblock, | preview: function( pblock, arguments ) { | ||
var tabName = | 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\">%s</b> tab."; | ||
edits