From d159b7ac35d8cb59182e07337f64ae7a93fc748c Mon Sep 17 00:00:00 2001 From: Evgeny Gryaznov Date: Sat, 11 Oct 2008 00:06:15 +0000 Subject: [PATCH] template fixes git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@171 c66351dc-e62f-0410-b875-e3a5c0b9693f --- src/messenger/webim/design/default/chat.tpl | 6 +++--- src/messenger/webim/libs/chat.php | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/messenger/webim/design/default/chat.tpl b/src/messenger/webim/design/default/chat.tpl index 7265f3f2..01d99a8b 100644 --- a/src/messenger/webim/design/default/chat.tpl +++ b/src/messenger/webim/design/default/chat.tpl @@ -34,7 +34,7 @@ var threadParams = { servl:"${webimroot}/thread.php",wroot:"${webimroot}",freque ${if:ct.company.chatLogoURL} ${if:webimHost} - + ${else:webimHost} @@ -50,7 +50,7 @@ var threadParams = { servl:"${webimroot}/thread.php",wroot:"${webimroot}",freque ${if:webimHost} - ${page:ct.company.name} + ${page:ct.company.name} ${else:webimHost} ${page:ct.company.name} ${endif:webimHost} @@ -237,7 +237,7 @@ ${if:agent}${if:canpost} ${endif:canpost}${endif:agent} diff --git a/src/messenger/webim/libs/chat.php b/src/messenger/webim/libs/chat.php index 03f4fd43..776ccd40 100644 --- a/src/messenger/webim/libs/chat.php +++ b/src/messenger/webim/libs/chat.php @@ -300,7 +300,11 @@ function setup_chatview_for_operator($thread,$operator) { $page['neediframesrc'] = needsFramesrc(); $page['historyParams'] = array("userid" => "".$thread['userid']); $page['historyParamsLink'] = add_params($webimroot."/operator/userhistory.php",$page['historyParams']); - $page['predefinedList'] = explode("\n", getlocal_('chat.predefined_answers', $thread['locale'])); + $predefinedres = ""; + foreach(explode("\n", getlocal_('chat.predefined_answers', $thread['locale'])) as $answer) { + $predefinedres .= ""; + } + $page['predefinedAnswers'] = $predefinedres; $params = "thread=".$thread['threadid']."&token=".$thread['ltoken']; $page['selfLink'] = "$webimroot/operator/agent.php?".$params;