Fix upload not working

cpsdqs/unified-input
cpsdqs 7 years ago
parent 4565469216
commit 259b9f05e9
Signed by untrusted user: cpsdqs
GPG Key ID: 3F59586BB7448DD1
  1. 4
      js/term.js
  2. 6
      pages/term.php

@ -77,6 +77,10 @@ window.termInit = function (labels, theme) {
qs('#term-nav').insertBefore(button, qs('#term-nav').firstChild)
}
window.openTermUpl = () => termUpload.open()
window.startTermUpl = () => termUpload.start()
window.closeTermUpl = () => termUpload.close()
// for debugging
window.termScreen = screen
window.conn = conn

@ -33,8 +33,8 @@
</p>
</div>
<div class="fu-buttons">
<button onclick="TermUpl.start()" class="icn-ok x-fu-go">Start</button>&nbsp;
<button onclick="TermUpl.close()" class="icn-cancel x-fu-cancel">Cancel</button>&nbsp;
<button onclick="startTermUpl()" class="icn-ok x-fu-go">Start</button>&nbsp;
<button onclick="closeTermUpl()" class="icn-cancel x-fu-cancel">Cancel</button>&nbsp;
<i class="fu-prog-box">Upload: <span id="fu_prog"></span></i>
</div>
</div>
@ -62,7 +62,7 @@
<nav id="term-nav">
<a href="#" onclick="toggleFitScreen();return false" class="mq-tablet-max"><i id="resize-button-icon" class="icn-resize-small"></i></a><!--
--><a href="#" onclick="kbOpen(true);return false" class="mq-tablet-max"><i class="icn-keyboard"></i><span><?= tr('term_nav.keybd') ?></span></a><!--
--><a href="#" onclick="TermUpl.open();return false"><i class="icn-download"></i><span><?= tr('term_nav.upload') ?></span></a><!--
--><a href="#" onclick="openTermUpl();return false"><i class="icn-download"></i><span><?= tr('term_nav.upload') ?></span></a><!--
--><a href="<?= url('cfg_term') ?>" class="x-term-conf-btn"><i class="icn-configure"></i><span><?= tr('term_nav.config') ?></span></a><!--
--><a href="<?= url('cfg_wifi') ?>" class="x-term-conf-btn"><i class="icn-wifi"></i><span><?= tr('term_nav.wifi') ?></span></a><!--
--><a href="<?= url('help') ?>" class="x-term-conf-btn"><i class="icn-help"></i><span><?= tr('term_nav.help') ?></span></a><!--

Loading…
Cancel
Save