fix network.html's promoted message setup textarea

This commit is contained in:
Simon Grim 2019-01-24 16:12:19 +05:00
parent 67ba3f42c9
commit 1a6ed6f9dd
2 changed files with 4 additions and 3 deletions

View File

@ -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();
}

View File

@ -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);