diff --git a/public/src/admin/extend/widgets.js b/public/src/admin/extend/widgets.js index 1139b8b236..4f5ff845fd 100644 --- a/public/src/admin/extend/widgets.js +++ b/public/src/admin/extend/widgets.js @@ -177,7 +177,8 @@ define('admin/extend/widgets', ['jqueryui'], function () { }) .children('.panel-heading') .append('
 
') - .children('small').html(''); + .children('small') + .html(''); } } diff --git a/public/src/admin/general/sounds.js b/public/src/admin/general/sounds.js index 5e17015dd7..4c7376ce59 100644 --- a/public/src/admin/general/sounds.js +++ b/public/src/admin/general/sounds.js @@ -9,7 +9,8 @@ define('admin/general/sounds', ['sounds', 'settings', 'admin/settings'], functio $('.sounds').find('button[data-action="play"]').on('click', function (e) { e.preventDefault(); - var soundName = $(this).parent().parent().find('select').val(); + var soundName = $(this).parent().parent().find('select') + .val(); Sounds.playSound(soundName); }); diff --git a/public/src/admin/modules/search.js b/public/src/admin/modules/search.js index 9f4de7cf01..763a7fe80b 100644 --- a/public/src/admin/modules/search.js +++ b/public/src/admin/modules/search.js @@ -89,7 +89,8 @@ define('admin/modules/search', ['mousetrap'], function (mousetrap) { mousetrap(input[0]).bind(['up', 'down'], function (ev, key) { var next; if (key === 'up') { - next = menu.find('li.result > a.focus').removeClass('focus').parent().prev('.result').children(); + next = menu.find('li.result > a.focus').removeClass('focus').parent().prev('.result') + .children(); if (!next.length) { next = menu.find('li.result > a').last(); } @@ -98,7 +99,8 @@ define('admin/modules/search', ['mousetrap'], function (mousetrap) { next[0].scrollIntoView(true); } } else if (key === 'down') { - next = menu.find('li.result > a.focus').removeClass('focus').parent().next('.result').children(); + next = menu.find('li.result > a.focus').removeClass('focus').parent().next('.result') + .children(); if (!next.length) { next = menu.find('li.result > a').first(); } diff --git a/public/src/app.js b/public/src/app.js index 038ce5a280..87d33969af 100644 --- a/public/src/app.js +++ b/public/src/app.js @@ -271,7 +271,8 @@ app.cacheBuster = null; var path = window.location.pathname + window.location.search; $('#main-nav li').removeClass('active'); if (path) { - $('#main-nav li').removeClass('active').find('a[href="' + path + '"]').parent().addClass('active'); + $('#main-nav li').removeClass('active').find('a[href="' + path + '"]').parent() + .addClass('active'); } } diff --git a/public/src/client/account/settings.js b/public/src/client/account/settings.js index 4ebfc2e0b9..9613083940 100644 --- a/public/src/client/account/settings.js +++ b/public/src/client/account/settings.js @@ -38,7 +38,8 @@ define('forum/account/settings', ['forum/account/header', 'components', 'sounds' $('.account').find('button[data-action="play"]').on('click', function (e) { e.preventDefault(); - var soundName = $(this).parent().parent().find('select').val(); + var soundName = $(this).parent().parent().find('select') + .val(); sounds.playSound(soundName); }); diff --git a/public/src/client/search.js b/public/src/client/search.js index 7416e95c21..cbdb2eaf68 100644 --- a/public/src/client/search.js +++ b/public/src/client/search.js @@ -139,7 +139,8 @@ define('forum/search', ['search', 'autocomplete', 'storage'], function (searchMo return; } searchQuery = utils.escapeHTML(searchQuery); - var regexStr = searchQuery.replace(/^"/, '').replace(/"$/, '').trim().split(' ').join('|'); + var regexStr = searchQuery.replace(/^"/, '').replace(/"$/, '').trim().split(' ') + .join('|'); var regex = new RegExp('(' + regexStr + ')', 'gi'); $('.search-result-text p, .search-result-text h4').each(function () { diff --git a/public/src/client/topic/replies.js b/public/src/client/topic/replies.js index 37ddd1912b..82bd224173 100644 --- a/public/src/client/topic/replies.js +++ b/public/src/client/topic/replies.js @@ -46,7 +46,8 @@ define('forum/topic/replies', ['navigator', 'components', 'forum/topic/posts'], hideReplies: true, }; app.parseAndTranslate('topic', 'posts', tplData, function (html) { - $('
', { component: 'post/replies' }).html(html).hide().insertAfter(button).slideDown('fast'); + $('
', { component: 'post/replies' }).html(html).hide().insertAfter(button) + .slideDown('fast'); posts.processPage(html); $(window).trigger('action:posts.loaded', { posts: data }); }); diff --git a/public/src/client/users.js b/public/src/client/users.js index bf6873e693..b0d8646da6 100644 --- a/public/src/client/users.js +++ b/public/src/client/users.js @@ -17,7 +17,8 @@ define('forum/users', ['translator', 'benchpress'], function (translator, Benchp app.enterRoom('user_list'); var section = utils.params().section ? ('?section=' + utils.params().section) : ''; - $('.nav-pills li').removeClass('active').find('a[href="' + window.location.pathname + section + '"]').parent().addClass('active'); + $('.nav-pills li').removeClass('active').find('a[href="' + window.location.pathname + section + '"]').parent() + .addClass('active'); handleSearch(); diff --git a/public/src/modules/helpers.js b/public/src/modules/helpers.js index 45235e3321..dcc015f435 100644 --- a/public/src/modules/helpers.js +++ b/public/src/modules/helpers.js @@ -82,7 +82,8 @@ function stringify(obj) { // Turns the incoming object into a JSON string - return JSON.stringify(obj).replace(/&/gm, '&').replace(//gm, '>').replace(/"/g, '"'); + return JSON.stringify(obj).replace(/&/gm, '&').replace(//gm, '>') + .replace(/"/g, '"'); } function escape(str) { diff --git a/public/src/modules/iconSelect.js b/public/src/modules/iconSelect.js index 4285140d4d..dfc190f28d 100644 --- a/public/src/modules/iconSelect.js +++ b/public/src/modules/iconSelect.js @@ -46,7 +46,8 @@ define('iconSelect', ['benchpress'], function (Benchpress) { className: 'btn-primary', callback: function () { var iconClass = $('.bootbox .selected').attr('class'); - var categoryIconClass = $('
').addClass(iconClass).removeClass('fa').removeClass('selected').attr('class'); + var categoryIconClass = $('
').addClass(iconClass).removeClass('fa').removeClass('selected') + .attr('class'); if (categoryIconClass) { el.attr('class', 'fa ' + (doubleSize ? 'fa-2x ' : '') + categoryIconClass);