adding ?nohub option to trap users in editor
This commit is contained in:
Родитель
55cbb231c8
Коммит
dfd006ee9b
|
@ -204,6 +204,7 @@ module TDev
|
||||||
if (/dbg=[1t]/.test(url) || window.localStorage["dbg"]) dbg = true;
|
if (/dbg=[1t]/.test(url) || window.localStorage["dbg"]) dbg = true;
|
||||||
if (/nodbg/.test(url)) dbg = false;
|
if (/nodbg/.test(url)) dbg = false;
|
||||||
if (/enableUndo/.test(url)) TDev.Collab.enableUndo = true;
|
if (/enableUndo/.test(url)) TDev.Collab.enableUndo = true;
|
||||||
|
if (/nohub/.test(url)) TDev.noHub = true;
|
||||||
|
|
||||||
//if (/endKeywords/.test(url)) Renderer.useEndKeywords = true;
|
//if (/endKeywords/.test(url)) Renderer.useEndKeywords = true;
|
||||||
if (/lfDebug/.test(url)) Util.translationDebug = true;
|
if (/lfDebug/.test(url)) Util.translationDebug = true;
|
||||||
|
|
|
@ -2103,7 +2103,7 @@ module TDev
|
||||||
this.backBtnDiv.setChildren([
|
this.backBtnDiv.setChildren([
|
||||||
this.hasModalPane() ?
|
this.hasModalPane() ?
|
||||||
Editor.mkTopMenuItem("svg:back,black", lf("dismiss"), Ticks.calcSearchBack, " Esc", () => this.dismissModalPane()) :
|
Editor.mkTopMenuItem("svg:back,black", lf("dismiss"), Ticks.calcSearchBack, " Esc", () => this.dismissModalPane()) :
|
||||||
Editor.mkTopMenuItem("svg:back,black", lf("my scripts"), Ticks.codeHub, "Ctrl-I", () => this.backBtn())
|
TDev.noHub ? null : Editor.mkTopMenuItem("svg:back,black", lf("my scripts"), Ticks.codeHub, "Ctrl-I", () => this.backBtn())
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -927,7 +927,7 @@ module TDev
|
||||||
{
|
{
|
||||||
TheEditor.dismissSidePane();
|
TheEditor.dismissSidePane();
|
||||||
|
|
||||||
if (Collab.AstSession && a.editorState.groupId) {
|
if (Collab.AstSession && a.editorState.groupId && !TDev.noHub) {
|
||||||
var sessionId = Collab.AstSession.servername;
|
var sessionId = Collab.AstSession.servername;
|
||||||
var groupId = a.editorState.groupId;
|
var groupId = a.editorState.groupId;
|
||||||
var groupInfo = Browser.TheHost.getGroupInfoById(groupId);
|
var groupInfo = Browser.TheHost.getGroupInfoById(groupId);
|
||||||
|
|
|
@ -8,6 +8,7 @@ module TDev {
|
||||||
export var isBeta = false;
|
export var isBeta = false;
|
||||||
export var asyncEnabled = true;
|
export var asyncEnabled = true;
|
||||||
export var isWebWorker = false;
|
export var isWebWorker = false;
|
||||||
|
export var noHub = false;
|
||||||
|
|
||||||
export interface StringMap<T>
|
export interface StringMap<T>
|
||||||
{
|
{
|
||||||
|
|
Загрузка…
Ссылка в новой задаче