From 97419bbdd962bcbd7b5ea2b9293c75ce16adeec1 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Fri, 10 Apr 2015 12:00:18 -0400 Subject: [PATCH] closes #2980 --- public/src/modules/sort.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/src/modules/sort.js b/public/src/modules/sort.js index e063fceda3..6033b9680a 100644 --- a/public/src/modules/sort.js +++ b/public/src/modules/sort.js @@ -1,16 +1,16 @@ 'use strict'; /* globals define, config, socket, app, ajaxify, templates */ -define('sort', function() { +define('sort', ['components'], function(components) { var module = {}; module.handleSort = function (field, method, gotoOnSave) { - var threadSort = $('.thread-sort'); + var threadSort = components.get('thread/sort'); threadSort.find('i').removeClass('fa-check'); var currentSetting = threadSort.find('a[data-sort="' + config[field] + '"]'); currentSetting.find('i').addClass('fa-check'); - $('.thread-sort').on('click', 'a', function() { + threadSort.on('click', 'a', function() { var newSetting = $(this).attr('data-sort'); socket.emit(method, newSetting, function(err) { if (err) {