module console
This commit is contained in:
@@ -291,17 +291,11 @@
|
||||
}
|
||||
return;
|
||||
}
|
||||
const iframe = getActiveIframe();
|
||||
const ok = trySendToIframe(iframe, commandTextarea.value.trim());
|
||||
if (!ok) {
|
||||
if (consoleNotice) {
|
||||
consoleNotice.textContent = 'Aktive Konsole nicht steuerbar – Befehl wird in neuer Konsole ausgeführt.';
|
||||
consoleNotice.style.display = 'block';
|
||||
}
|
||||
submitOpen();
|
||||
return;
|
||||
if (consoleNotice) {
|
||||
consoleNotice.textContent = 'Aktive Konsole kann nicht direkt gesteuert werden – Befehl wird in neuer Konsole ausgeführt.';
|
||||
consoleNotice.style.display = 'block';
|
||||
}
|
||||
if (consoleError) consoleError.style.display = 'none';
|
||||
submitOpen();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -282,7 +282,7 @@ $runs = $pdo->query(
|
||||
<div style="display:flex; gap:10px; flex-wrap:wrap;">
|
||||
<button class="cta-button" type="button" data-open-console>Neue Konsole öffnen</button>
|
||||
<button class="nav-link" type="button" data-run-command>Im Hintergrund ausführen</button>
|
||||
<button class="nav-link" type="button" data-send-active>In aktiver Konsole ausführen</button>
|
||||
<button class="nav-link" type="button" data-send-active>In neuer Konsole ausführen</button>
|
||||
</div>
|
||||
</form>
|
||||
<div class="muted" style="margin-top:.5rem;">
|
||||
|
||||
Reference in New Issue
Block a user