Fix emails, fix /pol/ flags in cross-board requests.

This commit is contained in:
Nicolas Stepien 2012-09-11 01:44:42 +02:00
parent 2f234bbe36
commit 4e76800037
2 changed files with 4 additions and 4 deletions

View File

@ -3714,7 +3714,7 @@
capcode: data.capcode,
tripcode: data.trip,
uniqueID: data.id,
email: data.email.replace(/\s/g, '%20'),
email: data.email ? encodeURIComponent(data.email) : '',
subject: data.sub,
flagCode: data.country,
flagName: data.country_name,
@ -3783,7 +3783,7 @@
capcodeStart = '';
capcode = '';
}
flag = flagCode ? (" <img src='" + staticPath + "/image/country/" + (g.BOARD === 'pol' ? 'troll/' : '')) + flagCode.toLowerCase() + (".gif' alt=" + flagCode + " title='" + flagName + "' class=countryFlag>") : '';
flag = flagCode ? (" <img src='" + staticPath + "/image/country/" + (board === 'pol' ? 'troll/' : '')) + flagCode.toLowerCase() + (".gif' alt=" + flagCode + " title='" + flagName + "' class=countryFlag>") : '';
if (file != null ? file.isDeleted : void 0) {
fileHTML = isOP ? ("<div class=file id=f" + postID + "><div class=fileInfo></div><span class=fileThumb>") + ("<img src='" + staticPath + "/image/filedeleted.gif' alt='File deleted.'>") + "</span></div>" : ("<div id=f" + postID + " class=file><span class=fileThumb>") + ("<img src='" + staticPath + "/image/filedeleted-res.gif' alt='File deleted.'>") + "</span></div>";
} else if (file) {

View File

@ -2920,7 +2920,7 @@ Build =
capcode: data.capcode
tripcode: data.trip
uniqueID: data.id
email: data.email.replace /\s/g, '%20' # UGH
email: if data.email then encodeURIComponent data.email else ''
subject: data.sub
flagCode: data.country
flagName: data.country_name
@ -3011,7 +3011,7 @@ Build =
flag =
if flagCode
" <img src='#{staticPath}/image/country/#{if g.BOARD is 'pol' then 'troll/' else ''}" +
" <img src='#{staticPath}/image/country/#{if board is 'pol' then 'troll/' else ''}" +
flagCode.toLowerCase() + ".gif' alt=#{flagCode} title='#{flagName}' class=countryFlag>"
else
''