Quantcast

misc fixes

failcoder [07-10-15 - 20:39]
misc fixes
Filename
SVUI_!Core/system/dock.lua
SVUI_Chat/SVUI_Chat.lua
diff --git a/SVUI_!Core/system/dock.lua b/SVUI_!Core/system/dock.lua
index c004cf6..f14327a 100644
--- a/SVUI_!Core/system/dock.lua
+++ b/SVUI_!Core/system/dock.lua
@@ -745,7 +745,7 @@ local function ShowDockletWindow(button, location)
 	if((not button) or (not button.FrameLink)) then return end
 	local window = button.FrameLink
 	window:FadeIn(0.1, 0, 1)
-	if(not InCombatLockdown()) then	window:SetFrameLevel(10) end
+	if(not InCombatLockdown()) then	window:SetFrameLevel(5) end
 	if(window.PostShowCallback) then
 		window:PostShowCallback()
 	else
@@ -1246,11 +1246,11 @@ local DockButton_OnPostClick = function(self, button)
 	end
 	if(self.ClickTheme) then self:ClickTheme() end
 	if(button and (button == "RightButton")) then
-		if(self.RightClickCallback) then
-			self:RightClickCallback()
+		if(self.RightClickCallback) then
+			self:RightClickCallback()
 		end
-	elseif(self.LeftClickCallback) then
-		self:LeftClickCallback()
+	elseif(self.LeftClickCallback) then
+		self:LeftClickCallback()
 	end
 	MOD.ButtonSound()
 end
@@ -1276,8 +1276,8 @@ local DockButton_SetDocked = function(self, attach)
 	if((not self.Parent) and (not lastKnownLocation)) then return end
 	local parent = self.Parent;
 	if(attach) then
-		if(lastKnownLocation and MOD[lastKnownLocation]) then
-			parent = MOD[lastKnownLocation].Bar;
+		if(lastKnownLocation and MOD[lastKnownLocation]) then
+			parent = MOD[lastKnownLocation].Bar;
 		end
 		MOD.private.Disabled[name] = nil;
 		if(not parent.Add) then return end
diff --git a/SVUI_Chat/SVUI_Chat.lua b/SVUI_Chat/SVUI_Chat.lua
index 922e312..9e6c7a6 100644
--- a/SVUI_Chat/SVUI_Chat.lua
+++ b/SVUI_Chat/SVUI_Chat.lua
@@ -1020,7 +1020,7 @@ do
 				tab:HookScript('OnLeave', _hook_TabOnLeave)
 				chat.hookedHyperLinks = true
 			end
-
+
 			chat.isDocked = nil;
 			chat.isUninteractable = true;
 			FCF_SetLocked(chat, true);
@@ -1087,7 +1087,7 @@ local function OpenNewSVUIChatFrame(newname)
 			MOD.private.activeTabs[key] = true
 			-- print('OpenNewSVUIChatFrame '..newname)
 			chatFrame.Dock:SetDocked(true)
-
+
 			MOD.RefreshChatFrames()
 			return;
 		end
@@ -1114,7 +1114,7 @@ function MOD:ResetChatWindows()
 			SV.Dock.private.Disabled[k] = nil
 		end
 	end
-
+
 	for i=1, NUM_CHAT_WINDOWS do
 		local chatFrame = _G["ChatFrame"..i];
 		if(chatFrame) then
@@ -1156,7 +1156,7 @@ function MOD:ResetChatWindows()
 			chatFrame.Dock:SetDocked(false)
 		end
 	end
-
+
 	ChatFrame_RemoveAllMessageGroups(ChatFrame1)
 	ChatFrame_AddMessageGroup(ChatFrame1, "SAY")
 	ChatFrame_AddMessageGroup(ChatFrame1, "EMOTE")
@@ -1495,7 +1495,7 @@ do
 				break;
 			end
 		end
-
+
 		if(chatFrame) then
 			chatFrame.oldAlpha = 0;
 			chatFrame.Dock:UpdateBackdrop();