mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-29 05:18:55 -05:00
fix modern ui clipboard dialog style
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
@@ -11317,12 +11317,14 @@
|
|||||||
function showDeskClip() {
|
function showDeskClip() {
|
||||||
if (xxdialogMode || desktop == null || desktop.State != 3) return;
|
if (xxdialogMode || desktop == null || desktop.State != 3) return;
|
||||||
Q('DeskClip').blur();
|
Q('DeskClip').blur();
|
||||||
var x = '';
|
var x = '<div class="container text-center"><div class="row">';
|
||||||
if ((features2 & 0x0800) == 0) x += '<input id=dlgClipGet type=button value="' + "Get Clipboard" + '" style=width:160px onclick=showDeskClipGet()>';
|
if ((features2 & 0x0800) == 0) x += '<div class="col"><input class="btn btn-secondary" id=dlgClipGet type=button value="' + "Get Clipboard" + '" onclick=showDeskClipGet()></div>';
|
||||||
if ((features2 & 0x1000) == 0) x += '<input id=dlgClipSet type=button value="' + "Set Clipboard" + '" style=width:160px onclick=showDeskClipSet()>';
|
if ((features2 & 0x1000) == 0) x += '<div class="col"><input class="btn btn-secondary" id=dlgClipSet type=button value="' + "Set Clipboard" + '" onclick=showDeskClipSet()></div>';
|
||||||
x += '<div id=dlgClipStatus style="display:inline-block;margin-left:8px" ></div>';
|
x += '</div>';
|
||||||
x += '<textarea id=d2clipText style="width:100%;height:184px;resize:none" maxlength=65535></textarea>';
|
x += '<div class="row"><div class="col"><div id=dlgClipStatus style="display:inline-block;margin-left:8px" ></div></div></div>';
|
||||||
x += '<input type=button value="Close" style=width:80px;float:right onclick=dialogclose(0)><div style=height:26px;margin-top:3px><span id=linuxClipWarn style=display:none>' + "Remote clipboard is valid for 60 seconds." + '</span> </div><div></div>';
|
x += '<div class="row"><div class="col"><textarea id=d2clipText style="width:100%;height:184px;resize:none" maxlength=65535></textarea></div></div>';
|
||||||
|
x += '<div class="row"><div class="col"><div style=height:26px;margin-top:3px><span id=linuxClipWarn style=display:none>' + "Remote clipboard is valid for 60 seconds." + '</span></div></div></div>';
|
||||||
|
x += '</div>'
|
||||||
xxdialogTag = 'clipboard';
|
xxdialogTag = 'clipboard';
|
||||||
setModalContent('xxAddAgent', "Remote Clipboard", x);
|
setModalContent('xxAddAgent', "Remote Clipboard", x);
|
||||||
showModal('xxAddAgentModal', 'idx_dlgOkButton');
|
showModal('xxAddAgentModal', 'idx_dlgOkButton');
|
||||||
|
|||||||
Reference in New Issue
Block a user