From ae2d02ae6452241bada5f7a2550467ef70021be3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 21 Apr 2013 18:08:24 +0200 Subject: [PATCH] Show Permission Denied inline --- file/js/be.bastelstu.Chat.litcoffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/file/js/be.bastelstu.Chat.litcoffee b/file/js/be.bastelstu.Chat.litcoffee index 42c4cfd..0031ee1 100644 --- a/file/js/be.bastelstu.Chat.litcoffee +++ b/file/js/be.bastelstu.Chat.litcoffee @@ -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)**