Browse Source

fix network.html's promoted message setup textarea

readme-update
Simon Grim 6 years ago
parent
commit
1a6ed6f9dd
  1. 5
      js/interface_common.js
  2. 2
      js/twister_network.js

5
js/interface_common.js

@ -1818,7 +1818,10 @@ function poseTextareaEditBar(textArea) { @@ -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();
}

2
js/twister_network.js

@ -309,8 +309,6 @@ function interfaceNetworkHandlers() { @@ -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);

Loading…
Cancel
Save