fix ophint dom conflict
This commit is contained in:
parent
703cbd49e5
commit
d4b65b8a99
3 changed files with 3 additions and 3 deletions
|
|
@ -457,7 +457,7 @@
|
|||
if (API.const.OCTO) {
|
||||
$('ophost').style.display = 'none';
|
||||
$('opapik').style.display = 'none';
|
||||
$('ophint').style.display = 'none';
|
||||
$('oph1nt').style.display = 'none';
|
||||
$('send-to-gridhost').style.display = 'none';
|
||||
}
|
||||
octo_host.value = SDB['octo-host'] || '';
|
||||
|
|
|
|||
|
|
@ -254,7 +254,7 @@
|
|||
if (!(isCamMode && oplist)) return;
|
||||
let mark = Date.now();
|
||||
let html = [];
|
||||
$('ophint').style.display = oplist.length === 0 ? 'flex' : 'none';
|
||||
$('ophint').style.display = oplist.length === 0 ? '' : 'none';
|
||||
let bind = {};
|
||||
let scale = API.view.unit_scale();
|
||||
oplist.forEach((rec,i) => {
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
</div>
|
||||
<button id="print-octoprint">send</button>
|
||||
</div>
|
||||
<div id="ophint"><label class="hint"><a href="http://docs.octoprint.org/en/master/api/general.html?highlight=cors#cross-origin-requests" target="_help">CORS support</a> must be enabled in API settings</label></div>
|
||||
<div id="oph1nt"><label class="hint"><a href="http://docs.octoprint.org/en/master/api/general.html?highlight=cors#cross-origin-requests" target="_help">CORS support</a> must be enabled in API settings</label></div>
|
||||
</div>
|
||||
|
||||
<div id="send-to-hosthead" class="header"><label>grid:host</label></div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue