almost done with new send frame

This commit is contained in:
Manuel Simon Hirsig
2016-02-21 20:42:56 +01:00
parent 8c181e6bdd
commit 76974fdfbf
2 changed files with 41 additions and 40 deletions
+13 -12
View File
@@ -243,6 +243,7 @@ function Postal:OnEnable()
-- hack to avoid automatic subject setting/button enabling
SendMailMailButton:Hide()
SendMailSubjectEditBox:Hide()
SendMailSubjectEditBox.SetText = function(self, text) PostalSubjectEditBox:SetText(text) end
SendMailNameEditBox:SetScript('OnTabPressed', function()
PostalSubjectEditBox:SetFocus()
end)
@@ -534,18 +535,6 @@ function Postal:SendMail()
subject = subject..format(' (Part %d of %d)', this.total - getn(this.queue), this.total)
end
if this.first then
this.first = false
if this.money then
if this.cod then
SetSendMailCOD(this.money)
else
SetSendMailMoney(this.money)
end
end
end
if item then
if GetSendMailItem() and PostalFrame.mailbag and PostalFrame.mailitem then
-- There's already an item in the slot
@@ -571,6 +560,18 @@ function Postal:SendMail()
end
end
if this.first then
this.first = false
if this.money then
if this.cod then
SetSendMailCOD(this.money)
else
SetSendMailMoney(this.money)
end
end
end
SendMail(this.to, subject, this.body)
return
end