diff --git a/modules/advanced_search/site.js b/modules/advanced_search/site.js index 96dd7a37e..b8cf2020f 100644 --- a/modules/advanced_search/site.js +++ b/modules/advanced_search/site.js @@ -113,7 +113,7 @@ var adv_select_imap_folder = function(el) { folders.show(); folders.find('li').each(function(index) { - const wrapper = $('
'); + const wrapper = $(''); $(this).wrapInner(wrapper); const allSpecialFoldersCheckbox = ` @@ -130,7 +130,7 @@ var adv_select_imap_folder = function(el) { const checkboxesWrapper = $(''); checkboxesWrapper.append(allSpecialFoldersCheckbox); checkboxesWrapper.append(allFoldersCheckbox); - wrapper.append(checkboxesWrapper); + $(this).find('.wrapper').append(checkboxesWrapper); }) $('.imap_folder_link', folders).addClass('adv_folder_link').removeClass('imap_folder_link'); diff --git a/modules/core/site.js b/modules/core/site.js index afbffcccd..27b074934 100644 --- a/modules/core/site.js +++ b/modules/core/site.js @@ -849,16 +849,17 @@ function Message_List() { const next = messages.getNextRowForMessage(msgUid); const prev = messages.getPreviousRowForMessage(msgUid); if (prev) { - const prevSubject = $(prev['0']).find('.subject'); - phref = prevSubject.find('a').prop('href'); - const subject = new Option(prevSubject.text()).innerHTML; + const prevSubject = $(prev['0']).find('.subject a'); + phref = prevSubject.prop('href'); + const subject = prevSubject.text(); const plink = ' '+subject+''; $('