|
109 | 109 |
|
110 | 110 | local affixAddedAtLevel = { 2, 4, 7, 10, 12 }
|
111 | 111 |
|
112 |
| -local avaliableSortMode = { |
| 112 | +local availableSortMode = { |
113 | 113 | "DEFAULT",
|
114 | 114 | "OVERALL_SCORE",
|
115 | 115 | "DUNGEON_SCORE",
|
@@ -494,7 +494,7 @@ function LL:RefreshSearch()
|
494 | 494 | _G.LFGListSearchPanel_DoSearch(_G.LFGListFrame.SearchPanel)
|
495 | 495 | end
|
496 | 496 |
|
497 |
| -function LL:InitalizeRightPanel() |
| 497 | +function LL:InitializeRightPanel() |
498 | 498 | if self.rightPanel then
|
499 | 499 | return
|
500 | 500 | end
|
@@ -1176,14 +1176,14 @@ function LL:InitalizeRightPanel()
|
1176 | 1176 |
|
1177 | 1177 | if btn.sortBy then
|
1178 | 1178 | local currentModeID
|
1179 |
| - for i, mode in ipairs(avaliableSortMode) do |
| 1179 | + for i, mode in ipairs(availableSortMode) do |
1180 | 1180 | if mode == btn.sortBy then
|
1181 | 1181 | currentModeID = i
|
1182 | 1182 | break
|
1183 | 1183 | end
|
1184 | 1184 | end
|
1185 | 1185 |
|
1186 |
| - btn.sortBy = currentModeID and avaliableSortMode[currentModeID + 1] or avaliableSortMode[1] |
| 1186 | + btn.sortBy = currentModeID and availableSortMode[currentModeID + 1] or availableSortMode[1] |
1187 | 1187 | end
|
1188 | 1188 |
|
1189 | 1189 | sortByButton.text:SetText(sortMode[btn.sortBy].text)
|
@@ -1242,7 +1242,7 @@ function LL:UpdateRightPanel()
|
1242 | 1242 | end
|
1243 | 1243 |
|
1244 | 1244 | if not self.rightPanel then
|
1245 |
| - self:InitalizeRightPanel() |
| 1245 | + self:InitializeRightPanel() |
1246 | 1246 | end
|
1247 | 1247 |
|
1248 | 1248 | if not _G.LFGListFrame.SearchPanel:IsShown() or not _G.LFGListFrame.SearchPanel.categoryID == 2 then
|
@@ -1313,8 +1313,8 @@ function LL:UpdateRightPanel()
|
1313 | 1313 | self.rightPanel.sortPanel.sortByButton.sortBy = dfDB.sortBy
|
1314 | 1314 | self.rightPanel.sortPanel.sortByButton.text:SetText(sortMode[dfDB.sortBy].text)
|
1315 | 1315 | else
|
1316 |
| - self.rightPanel.sortPanel.sortByButton.sortBy = avaliableSortMode[1] |
1317 |
| - self.rightPanel.sortPanel.sortByButton.text:SetText(sortMode[avaliableSortMode[1]].text) |
| 1316 | + self.rightPanel.sortPanel.sortByButton.sortBy = availableSortMode[1] |
| 1317 | + self.rightPanel.sortPanel.sortByButton.text:SetText(sortMode[availableSortMode[1]].text) |
1318 | 1318 | end
|
1319 | 1319 |
|
1320 | 1320 | self.rightPanel.sortPanel.sortByButton:SetActive(false)
|
@@ -1467,7 +1467,7 @@ function LL.OnUpdateResultListEnclosure(lfg)
|
1467 | 1467 | end
|
1468 | 1468 | end
|
1469 | 1469 |
|
1470 |
| - local sortBy = dfDB.sortBy or avaliableSortMode[1] |
| 1470 | + local sortBy = dfDB.sortBy or availableSortMode[1] |
1471 | 1471 | if sortMode[sortBy].func then
|
1472 | 1472 | sort(waitForSortingResults, function(a, b)
|
1473 | 1473 | if not a or not b then
|
|
0 commit comments