diff --git a/js/interface_common.js b/js/interface_common.js index 91c152a..9ffe2ba 100644 --- a/js/interface_common.js +++ b/js/interface_common.js @@ -1818,7 +1818,10 @@ function poseTextareaEditBar(textArea) { .css('margin-left', textArea.css('margin-left')) .css('margin-right', textArea.css('margin-right')) ; - editBar.find('.shorten-uri').text(polyglot.t('shorten_URI')); + if (textArea.closest('.network').length) + editBar.find('.shorten-uri').remove(); + else + editBar.find('.shorten-uri').text(polyglot.t('shorten_URI')); } editBar.insertAfter(textArea).show(); } diff --git a/js/twister_network.js b/js/twister_network.js index 59775b8..3f69002 100644 --- a/js/twister_network.js +++ b/js/twister_network.js @@ -309,8 +309,6 @@ function interfaceNetworkHandlers() { $('.add-dns').on('click', addDNSClick); $('select.genblock').on('change', setGenerate); $('.genproclimit').on('change', setGenerate); - $('.network .post-area-new').off('click').on('click', - function (e) {e.stopPropagation(); $(this).addClass('open');}); $('.post-submit.update-spam-msg').off('click').on('click', setSpamMsg); $('.terminate-daemon').on('click', {txtMessage: {polyglot: 'confirm_terminate_daemon'}, cbConfirm: exitDaemon}, confirmPopup);