1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Show Permission Denied inline

This commit is contained in:
Tim Düsterhus 2013-04-21 18:08:24 +02:00
parent 810b13d25a
commit ae2d02ae64

View File

@ -665,9 +665,9 @@ Submits the message.
$('#timsChatInputContainer').removeClass('formError').find('.innerError').hide()
@getMessages()
failure: (data) =>
return true if not (data?.returnValues?.errorType?)
return true if not (data?.returnValues?.errorType?) and not (data?.message?)
$('#timsChatInputContainer').addClass('formError').find('.innerError').html(data.returnValues.errorType).show()
$('#timsChatInputContainer').addClass('formError').find('.innerError').show().html (data?.returnValues?.errorType) ? data.message
false
**toggleSidebarContents(target)**