SAAS-57: Add LiveChat to Airtime Pro

Create a javascript variable to hold the client_id
This commit is contained in:
Yuchen Wang 2011-12-09 11:12:42 -05:00
parent 2d04d7eb83
commit 764d6c3347

View file

@ -80,7 +80,9 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
if (Application_Model_Preference::GetPlanLevel() != "disabled" if (Application_Model_Preference::GetPlanLevel() != "disabled"
&& $_SERVER['REQUEST_URI'] != '/Dashboard/stream-player') { && $_SERVER['REQUEST_URI'] != '/Dashboard/stream-player') {
$view->headScript()->appendFile($baseUrl.'/js/airtime/common/livechat.js','text/javascript'); $client_id = Application_Model_Preference::GetClientId();
$view->headScript()->appendScript("var livechat_client_id = $client_id;");
$view->headScript()->appendFile($baseUrl . '/js/airtime/common/livechat.js', 'text/javascript');
} }
} }