diff --git a/public/src/app.js b/public/src/app.js index f8a3a643ef..70375a8869 100644 --- a/public/src/app.js +++ b/public/src/app.js @@ -500,7 +500,7 @@ app.cacheBuster = null; titleObj.interval = setInterval(function () { var title = titleObj.titles[titleObj.titles.indexOf(window.document.title) ^ 1]; if (title) { - window.document.title = $('
').html(title).text(); + window.document.title = $('
').html(title).text(); } }, 2000); }); @@ -510,7 +510,7 @@ app.cacheBuster = null; clearInterval(titleObj.interval); } if (titleObj.titles[0]) { - window.document.title = $('
').html(titleObj.titles[0]).text(); + window.document.title = $('
').html(titleObj.titles[0]).text(); } } }; diff --git a/public/src/client/chats/search.js b/public/src/client/chats/search.js index e40551ed05..db267cfa07 100644 --- a/public/src/client/chats/search.js +++ b/public/src/client/chats/search.js @@ -64,7 +64,7 @@ define('forum/chats/search', ['components'], function (components) { ' ' + userObj.username; } - var chatEl = $('
  • ') + var chatEl = $('
  • ') .attr('data-uid', userObj.uid) .appendTo(chatsListEl); diff --git a/public/src/client/search.js b/public/src/client/search.js index 54e81242a3..f2d658edf7 100644 --- a/public/src/client/search.js +++ b/public/src/client/search.js @@ -148,7 +148,7 @@ define('forum/search', ['search', 'autocomplete', 'storage'], function (searchMo result.find('*').each(function () { $(this).after(''); - nested.push($('
    ').append($(this))); + nested.push($('
    ').append($(this))); }); result.html(result.html().replace(regex, function (match, p1) { diff --git a/public/src/modules/autocomplete.js b/public/src/modules/autocomplete.js index 9baf4329f5..2f2f9fef04 100644 --- a/public/src/modules/autocomplete.js +++ b/public/src/modules/autocomplete.js @@ -26,7 +26,7 @@ define('autocomplete', function () { if (result && result.users) { var names = result.users.map(function (user) { - var username = $('
    ').html(user.username).text(); + var username = $('
    ').html(user.username).text(); return user && { label: username, value: username, diff --git a/public/src/modules/chat.js b/public/src/modules/chat.js index d9dbfa59ea..46549ea620 100644 --- a/public/src/modules/chat.js +++ b/public/src/modules/chat.js @@ -121,7 +121,7 @@ define('chat', [ }; module.onRoomRename = function (data) { - var newTitle = $('
    ').html(data.newName).text(); + var newTitle = $('
    ').html(data.newName).text(); var modal = module.getModal(data.roomId); modal.find('[component="chat/room/name"]').text(newTitle); taskbar.update('chat', modal.attr('data-uuid'), { diff --git a/public/src/modules/iconSelect.js b/public/src/modules/iconSelect.js index dfc190f28d..e47eb2cb56 100644 --- a/public/src/modules/iconSelect.js +++ b/public/src/modules/iconSelect.js @@ -46,7 +46,7 @@ define('iconSelect', ['benchpress'], function (Benchpress) { className: 'btn-primary', callback: function () { var iconClass = $('.bootbox .selected').attr('class'); - var categoryIconClass = $('
    ').addClass(iconClass).removeClass('fa').removeClass('selected') + var categoryIconClass = $('
    ').addClass(iconClass).removeClass('fa').removeClass('selected') .attr('class'); if (categoryIconClass) { diff --git a/public/src/modules/settings/sorted-list.js b/public/src/modules/settings/sorted-list.js index 39695202d7..da638ca5e6 100644 --- a/public/src/modules/settings/sorted-list.js +++ b/public/src/modules/settings/sorted-list.js @@ -33,7 +33,7 @@ define('settings/sorted-list', ['benchpress', 'jqueryui'], function (benchpress) var modal = bootbox.confirm(formHtml, function (save) { if (save) { var itemUUID = utils.generateUUID(); - var form = $('
    '); + var form = $('
    '); form.append(modal.find('form').children()); $('#content').append(form.hide()); @@ -83,7 +83,7 @@ define('settings/sorted-list', ['benchpress', 'jqueryui'], function (benchpress) var modal = bootbox.confirm(form, function (save) { if (save) { - var form = $('
    '); + var form = $('
    '); form.append(modal.find('form').children()); $('#content').find('[data-sorted-list-uuid="' + itemUUID + '"][data-sorted-list-object="' + key + '"]').remove(); diff --git a/public/src/modules/taskbar.js b/public/src/modules/taskbar.js index 3e1c8567f9..7aadf30307 100644 --- a/public/src/modules/taskbar.js +++ b/public/src/modules/taskbar.js @@ -153,7 +153,7 @@ define('taskbar', ['benchpress', 'translator'], function (Benchpress, translator translator.translate(data.options.title, function (taskTitle) { var title = $('
    ').text(taskTitle || 'NodeBB Task').html(); - var taskbarEl = $('
  • ') + var taskbarEl = $('
  • ') .addClass(data.options.className) .html('' + (data.options.icon ? ' ' : '') + diff --git a/public/vendor/bootbox/bootbox.js b/public/vendor/bootbox/bootbox.js index 15a5527f4a..a814c5eb3c 100644 --- a/public/vendor/bootbox/bootbox.js +++ b/public/vendor/bootbox/bootbox.js @@ -464,7 +464,7 @@ if (option.group) { // initialise group if necessary if (!groups[option.group]) { - groups[option.group] = $("").attr("label", option.group); + groups[option.group] = $("").attr("label", option.group); } elem = groups[option.group]; @@ -496,7 +496,7 @@ // checkboxes have to nest within a containing element, so // they break the rules a bit and we end up re-assigning // our 'input' element to this container instead - input = $("
    "); + input = $("
    "); each(inputOptions, function(_, option) { var checkbox = $(templates.inputs[options.inputType]);