CC-2184: Hardcoded CSS path should be relative path instead
-Make '/' the default root
This commit is contained in:
parent
ba66746a00
commit
fae3f3a03f
38 changed files with 303 additions and 298 deletions
|
@ -73,13 +73,13 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
||||||
|
|
||||||
$baseUrl = Application_Common_OsPath::getBaseDir();
|
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||||
|
|
||||||
$view->headLink()->appendStylesheet($baseUrl.'/css/redmond/jquery-ui-1.8.8.custom.css?'.$CC_CONFIG['airtime_version']);
|
$view->headLink()->appendStylesheet($baseUrl.'css/redmond/jquery-ui-1.8.8.custom.css?'.$CC_CONFIG['airtime_version']);
|
||||||
$view->headLink()->appendStylesheet($baseUrl.'/css/pro_dropdown_3.css?'.$CC_CONFIG['airtime_version']);
|
$view->headLink()->appendStylesheet($baseUrl.'css/pro_dropdown_3.css?'.$CC_CONFIG['airtime_version']);
|
||||||
$view->headLink()->appendStylesheet($baseUrl.'/css/qtip/jquery.qtip.min.css?'.$CC_CONFIG['airtime_version']);
|
$view->headLink()->appendStylesheet($baseUrl.'css/qtip/jquery.qtip.min.css?'.$CC_CONFIG['airtime_version']);
|
||||||
$view->headLink()->appendStylesheet($baseUrl.'/css/styles.css?'.$CC_CONFIG['airtime_version']);
|
$view->headLink()->appendStylesheet($baseUrl.'css/styles.css?'.$CC_CONFIG['airtime_version']);
|
||||||
$view->headLink()->appendStylesheet($baseUrl.'/css/masterpanel.css?'.$CC_CONFIG['airtime_version']);
|
$view->headLink()->appendStylesheet($baseUrl.'css/masterpanel.css?'.$CC_CONFIG['airtime_version']);
|
||||||
$view->headLink()->appendStylesheet($baseUrl.'/css/bootstrap.css?'.$CC_CONFIG['airtime_version']);
|
$view->headLink()->appendStylesheet($baseUrl.'css/bootstrap.css?'.$CC_CONFIG['airtime_version']);
|
||||||
$view->headLink()->appendStylesheet($baseUrl.'/css/tipsy/jquery.tipsy.css?'.$CC_CONFIG['airtime_version']);
|
$view->headLink()->appendStylesheet($baseUrl.'css/tipsy/jquery.tipsy.css?'.$CC_CONFIG['airtime_version']);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function _initHeadScript()
|
protected function _initHeadScript()
|
||||||
|
@ -90,29 +90,29 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
||||||
|
|
||||||
$baseUrl = Application_Common_OsPath::getBaseDir();
|
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||||
|
|
||||||
$view->headScript()->appendFile($baseUrl.'/js/libs/jquery-1.7.2.min.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$view->headScript()->appendFile($baseUrl.'js/libs/jquery-1.7.2.min.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$view->headScript()->appendFile($baseUrl.'/js/libs/jquery-ui-1.8.18.custom.min.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$view->headScript()->appendFile($baseUrl.'js/libs/jquery-ui-1.8.18.custom.min.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$view->headScript()->appendFile($baseUrl.'/js/libs/jquery.stickyPanel.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$view->headScript()->appendFile($baseUrl.'js/libs/jquery.stickyPanel.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$view->headScript()->appendFile($baseUrl.'/js/qtip/jquery.qtip.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$view->headScript()->appendFile($baseUrl.'js/qtip/jquery.qtip.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$view->headScript()->appendFile($baseUrl.'/js/jplayer/jquery.jplayer.min.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
$view->headScript()->appendFile($baseUrl.'js/jplayer/jquery.jplayer.min.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
||||||
$view->headScript()->appendFile($baseUrl.'/js/sprintf/sprintf-0.7-beta1.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$view->headScript()->appendFile($baseUrl.'js/sprintf/sprintf-0.7-beta1.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$view->headScript()->appendFile($baseUrl.'/js/bootstrap/bootstrap.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$view->headScript()->appendFile($baseUrl.'js/bootstrap/bootstrap.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$view->headScript()->appendFile($baseUrl.'/js/cookie/jquery.cookie.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$view->headScript()->appendFile($baseUrl.'js/cookie/jquery.cookie.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$view->headScript()->appendFile($baseUrl.'/js/i18n/jquery.i18n.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$view->headScript()->appendFile($baseUrl.'js/i18n/jquery.i18n.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$view->headScript()->appendFile($baseUrl.'/locale/general-translation-table?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$view->headScript()->appendFile($baseUrl.'locale/general-translation-table?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$view->headScript()->appendFile($baseUrl.'/locale/datatables-translation-table?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$view->headScript()->appendFile($baseUrl.'locale/datatables-translation-table?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$view->headScript()->appendScript("$.i18n.setDictionary(general_dict)");
|
$view->headScript()->appendScript("$.i18n.setDictionary(general_dict)");
|
||||||
$view->headScript()->appendScript("var baseUrl='$baseUrl'");
|
$view->headScript()->appendScript("var baseUrl='$baseUrl'");
|
||||||
|
|
||||||
//scripts for now playing bar
|
//scripts for now playing bar
|
||||||
$view->headScript()->appendFile($baseUrl.'/js/airtime/airtime_bootstrap.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$view->headScript()->appendFile($baseUrl.'js/airtime/airtime_bootstrap.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$view->headScript()->appendFile($baseUrl.'/js/airtime/dashboard/helperfunctions.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$view->headScript()->appendFile($baseUrl.'js/airtime/dashboard/helperfunctions.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$view->headScript()->appendFile($baseUrl.'/js/airtime/dashboard/dashboard.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$view->headScript()->appendFile($baseUrl.'js/airtime/dashboard/dashboard.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$view->headScript()->appendFile($baseUrl.'/js/airtime/dashboard/versiontooltip.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$view->headScript()->appendFile($baseUrl.'js/airtime/dashboard/versiontooltip.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$view->headScript()->appendFile($baseUrl.'/js/tipsy/jquery.tipsy.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$view->headScript()->appendFile($baseUrl.'js/tipsy/jquery.tipsy.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
|
|
||||||
$view->headScript()->appendFile($baseUrl.'/js/airtime/common/common.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$view->headScript()->appendFile($baseUrl.'js/airtime/common/common.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$view->headScript()->appendFile($baseUrl.'/js/airtime/common/audioplaytest.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$view->headScript()->appendFile($baseUrl.'js/airtime/common/audioplaytest.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
|
|
||||||
$user = Application_Model_User::getCurrentUser();
|
$user = Application_Model_User::getCurrentUser();
|
||||||
if (!is_null($user)){
|
if (!is_null($user)){
|
||||||
|
@ -123,15 +123,15 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
||||||
$view->headScript()->appendScript("var userType = '$userType';");
|
$view->headScript()->appendScript("var userType = '$userType';");
|
||||||
|
|
||||||
if (isset($CC_CONFIG['demo']) && $CC_CONFIG['demo'] == 1) {
|
if (isset($CC_CONFIG['demo']) && $CC_CONFIG['demo'] == 1) {
|
||||||
$view->headScript()->appendFile($baseUrl.'/js/libs/google-analytics.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$view->headScript()->appendFile($baseUrl.'js/libs/google-analytics.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Application_Model_Preference::GetPlanLevel() != "disabled"
|
if (Application_Model_Preference::GetPlanLevel() != "disabled"
|
||||||
&& !($_SERVER['REQUEST_URI'] == $baseUrl.'/Dashboard/stream-player' ||
|
&& !($_SERVER['REQUEST_URI'] == $baseUrl.'Dashboard/stream-player' ||
|
||||||
strncmp($_SERVER['REQUEST_URI'], $baseUrl.'/audiopreview/audio-preview', strlen($baseUrl.'/audiopreview/audio-preview'))==0)) {
|
strncmp($_SERVER['REQUEST_URI'], $baseUrl.'audiopreview/audio-preview', strlen($baseUrl.'audiopreview/audio-preview'))==0)) {
|
||||||
$client_id = Application_Model_Preference::GetClientId();
|
$client_id = Application_Model_Preference::GetClientId();
|
||||||
$view->headScript()->appendScript("var livechat_client_id = '$client_id';");
|
$view->headScript()->appendScript("var livechat_client_id = '$client_id';");
|
||||||
$view->headScript()->appendFile($baseUrl . '/js/airtime/common/livechat.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
$view->headScript()->appendFile($baseUrl . 'js/airtime/common/livechat.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,8 +66,15 @@ class Application_Common_OsPath{
|
||||||
|
|
||||||
public static function getBaseDir() {
|
public static function getBaseDir() {
|
||||||
$baseUrl = dirname($_SERVER['SCRIPT_NAME']);
|
$baseUrl = dirname($_SERVER['SCRIPT_NAME']);
|
||||||
if (strcmp($baseUrl, '/') ==0) $baseUrl = "";
|
|
||||||
|
if ($baseUrl[0] != "/") {
|
||||||
|
$baseUrl = "/".$baseUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($baseUrl[strlen($baseUrl) -1] != "/") {
|
||||||
|
$baseUrl = $baseUrl."/";
|
||||||
|
}
|
||||||
|
|
||||||
return $baseUrl;
|
return $baseUrl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,20 +29,20 @@ class AudiopreviewController extends Zend_Controller_Action
|
||||||
$baseUrl = Application_Common_OsPath::getBaseDir();
|
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||||
|
|
||||||
$this->view->headScript()->appendFile(
|
$this->view->headScript()->appendFile(
|
||||||
$baseUrl.'/js/airtime/audiopreview/preview_jplayer.js?'.$CC_CONFIG['airtime_version'],
|
$baseUrl.'js/airtime/audiopreview/preview_jplayer.js?'.$CC_CONFIG['airtime_version'],
|
||||||
'text/javascript');
|
'text/javascript');
|
||||||
$this->view->headScript()->appendFile(
|
$this->view->headScript()->appendFile(
|
||||||
$baseUrl.'/js/jplayer/jplayer.playlist.min.js?'.$CC_CONFIG['airtime_version'],
|
$baseUrl.'js/jplayer/jplayer.playlist.min.js?'.$CC_CONFIG['airtime_version'],
|
||||||
'text/javascript');
|
'text/javascript');
|
||||||
$this->view->headLink()->appendStylesheet(
|
$this->view->headLink()->appendStylesheet(
|
||||||
$baseUrl.'/js/jplayer/skin/jplayer.airtime.audio.preview.css?'.$CC_CONFIG['airtime_version']);
|
$baseUrl.'js/jplayer/skin/jplayer.airtime.audio.preview.css?'.$CC_CONFIG['airtime_version']);
|
||||||
$this->_helper->layout->setLayout('audioPlayer');
|
$this->_helper->layout->setLayout('audioPlayer');
|
||||||
|
|
||||||
$logo = Application_Model_Preference::GetStationLogo();
|
$logo = Application_Model_Preference::GetStationLogo();
|
||||||
if ($logo) {
|
if ($logo) {
|
||||||
$this->view->logo = "data:image/png;base64,$logo";
|
$this->view->logo = "data:image/png;base64,$logo";
|
||||||
} else {
|
} else {
|
||||||
$this->view->logo = "$baseUrl/css/images/airtime_logo_jp.png";
|
$this->view->logo = $baseUrl."css/images/airtime_logo_jp.png";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($type == "audioclip") {
|
if ($type == "audioclip") {
|
||||||
|
@ -80,16 +80,16 @@ class AudiopreviewController extends Zend_Controller_Action
|
||||||
|
|
||||||
$baseUrl = Application_Common_OsPath::getBaseDir();
|
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||||
|
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/audiopreview/preview_jplayer.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/audiopreview/preview_jplayer.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/jplayer/jplayer.playlist.min.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/jplayer/jplayer.playlist.min.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/js/jplayer/skin/jplayer.airtime.audio.preview.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'js/jplayer/skin/jplayer.airtime.audio.preview.css?'.$CC_CONFIG['airtime_version']);
|
||||||
$this->_helper->layout->setLayout('audioPlayer');
|
$this->_helper->layout->setLayout('audioPlayer');
|
||||||
|
|
||||||
$logo = Application_Model_Preference::GetStationLogo();
|
$logo = Application_Model_Preference::GetStationLogo();
|
||||||
if ($logo) {
|
if ($logo) {
|
||||||
$this->view->logo = "data:image/png;base64,$logo";
|
$this->view->logo = "data:image/png;base64,$logo";
|
||||||
} else {
|
} else {
|
||||||
$this->view->logo = "$baseUrl/css/images/airtime_logo_jp.png";
|
$this->view->logo = $baseUrl."css/images/airtime_logo_jp.png";
|
||||||
}
|
}
|
||||||
$this->view->playlistIndex= $playlistIndex;
|
$this->view->playlistIndex= $playlistIndex;
|
||||||
$this->view->playlistID = $playlistID;
|
$this->view->playlistID = $playlistID;
|
||||||
|
@ -106,16 +106,16 @@ class AudiopreviewController extends Zend_Controller_Action
|
||||||
|
|
||||||
$baseUrl = Application_Common_OsPath::getBaseDir();
|
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||||
|
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/audiopreview/preview_jplayer.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/audiopreview/preview_jplayer.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/jplayer/jplayer.playlist.min.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/jplayer/jplayer.playlist.min.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/js/jplayer/skin/jplayer.airtime.audio.preview.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'js/jplayer/skin/jplayer.airtime.audio.preview.css?'.$CC_CONFIG['airtime_version']);
|
||||||
$this->_helper->layout->setLayout('audioPlayer');
|
$this->_helper->layout->setLayout('audioPlayer');
|
||||||
|
|
||||||
$logo = Application_Model_Preference::GetStationLogo();
|
$logo = Application_Model_Preference::GetStationLogo();
|
||||||
if ($logo) {
|
if ($logo) {
|
||||||
$this->view->logo = "data:image/png;base64,$logo";
|
$this->view->logo = "data:image/png;base64,$logo";
|
||||||
} else {
|
} else {
|
||||||
$this->view->logo = "$baseUrl/css/images/airtime_logo_jp.png";
|
$this->view->logo = $baseUrl."css/images/airtime_logo_jp.png";
|
||||||
}
|
}
|
||||||
$this->view->blockIndex= $blockIndex;
|
$this->view->blockIndex= $blockIndex;
|
||||||
$this->view->blockId = $blockId;
|
$this->view->blockId = $blockId;
|
||||||
|
@ -212,7 +212,7 @@ class AudiopreviewController extends Zend_Controller_Action
|
||||||
throw new Exception("Unknown file type: $mime");
|
throw new Exception("Unknown file type: $mime");
|
||||||
}
|
}
|
||||||
|
|
||||||
$elementMap['uri'] = $baseUrl."/api/get-media/file/".$track['item_id'];
|
$elementMap['uri'] = $baseUrl."api/get-media/file/".$track['item_id'];
|
||||||
} else {
|
} else {
|
||||||
$elementMap['uri'] = $track['path'];
|
$elementMap['uri'] = $track['path'];
|
||||||
}
|
}
|
||||||
|
@ -231,19 +231,18 @@ class AudiopreviewController extends Zend_Controller_Action
|
||||||
$showID = $this->_getParam('showID');
|
$showID = $this->_getParam('showID');
|
||||||
$showIndex = $this->_getParam('showIndex');
|
$showIndex = $this->_getParam('showIndex');
|
||||||
|
|
||||||
$baseUrl = dirname($_SERVER['SCRIPT_NAME']);
|
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||||
if (strcmp($baseUrl, '/') ==0) $baseUrl = "";
|
|
||||||
|
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/audiopreview/preview_jplayer.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/audiopreview/preview_jplayer.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/jplayer/jplayer.playlist.min.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/jplayer/jplayer.playlist.min.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/js/jplayer/skin/jplayer.airtime.audio.preview.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'js/jplayer/skin/jplayer.airtime.audio.preview.css?'.$CC_CONFIG['airtime_version']);
|
||||||
$this->_helper->layout->setLayout('audioPlayer');
|
$this->_helper->layout->setLayout('audioPlayer');
|
||||||
|
|
||||||
$logo = Application_Model_Preference::GetStationLogo();
|
$logo = Application_Model_Preference::GetStationLogo();
|
||||||
if ($logo) {
|
if ($logo) {
|
||||||
$this->view->logo = "data:image/png;base64,$logo";
|
$this->view->logo = "data:image/png;base64,$logo";
|
||||||
} else {
|
} else {
|
||||||
$this->view->logo = "$baseUrl/css/images/airtime_logo_jp.png";
|
$this->view->logo = $baseUrl."css/images/airtime_logo_jp.png";
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->view->showID = $showID;
|
$this->view->showID = $showID;
|
||||||
|
@ -298,7 +297,7 @@ class AudiopreviewController extends Zend_Controller_Action
|
||||||
throw new Exception("Unknown file type: $mime");
|
throw new Exception("Unknown file type: $mime");
|
||||||
}
|
}
|
||||||
|
|
||||||
$elementMap['uri'] = $baseUrl."/api/get-media/file/".$track['item_id'];
|
$elementMap['uri'] = $baseUrl."api/get-media/file/".$track['item_id'];
|
||||||
} else {
|
} else {
|
||||||
$elementMap['uri'] = $track['filepath'];
|
$elementMap['uri'] = $track['filepath'];
|
||||||
}
|
}
|
||||||
|
|
|
@ -100,14 +100,14 @@ class DashboardController extends Zend_Controller_Action
|
||||||
|
|
||||||
$baseUrl = Application_Common_OsPath::getBaseDir();
|
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||||
|
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/js/jplayer/skin/jplayer.blue.monday.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'js/jplayer/skin/jplayer.blue.monday.css?'.$CC_CONFIG['airtime_version']);
|
||||||
$this->_helper->layout->setLayout('bare');
|
$this->_helper->layout->setLayout('bare');
|
||||||
|
|
||||||
$logo = Application_Model_Preference::GetStationLogo();
|
$logo = Application_Model_Preference::GetStationLogo();
|
||||||
if ($logo) {
|
if ($logo) {
|
||||||
$this->view->logo = "data:image/png;base64,$logo";
|
$this->view->logo = "data:image/png;base64,$logo";
|
||||||
} else {
|
} else {
|
||||||
$this->view->logo = $baseUrl."/css/images/airtime_logo_jp.png";
|
$this->view->logo = $baseUrl."css/images/airtime_logo_jp.png";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,29 +30,29 @@ class LibraryController extends Zend_Controller_Action
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
$baseUrl = Application_Common_OsPath::getBaseDir();
|
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||||
|
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/blockui/jquery.blockUI.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/blockui/jquery.blockUI.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/contextmenu/jquery.contextMenu.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/contextmenu/jquery.contextMenu.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/datatables/js/jquery.dataTables.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/datatables/js/jquery.dataTables.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/datatables/plugin/dataTables.pluginAPI.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/datatables/plugin/dataTables.pluginAPI.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/datatables/plugin/dataTables.fnSetFilteringDelay.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/datatables/plugin/dataTables.fnSetFilteringDelay.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/datatables/plugin/dataTables.ColVis.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/datatables/plugin/dataTables.ColVis.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/datatables/plugin/dataTables.ColReorder.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/datatables/plugin/dataTables.ColReorder.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/datatables/plugin/dataTables.FixedColumns.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/datatables/plugin/dataTables.FixedColumns.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/datatables/plugin/dataTables.columnFilter.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/datatables/plugin/dataTables.columnFilter.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
||||||
|
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/buttons/buttons.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/buttons/buttons.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/utilities/utilities.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/utilities/utilities.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/library/library.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/library/library.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/library/events/library_playlistbuilder.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/library/events/library_playlistbuilder.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
||||||
|
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/css/media_library.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'css/media_library.css?'.$CC_CONFIG['airtime_version']);
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/css/jquery.contextMenu.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'css/jquery.contextMenu.css?'.$CC_CONFIG['airtime_version']);
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/css/datatables/css/ColVis.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'css/datatables/css/ColVis.css?'.$CC_CONFIG['airtime_version']);
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/css/datatables/css/ColReorder.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'css/datatables/css/ColReorder.css?'.$CC_CONFIG['airtime_version']);
|
||||||
|
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/library/spl.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/library/spl.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/playlist/smart_blockbuilder.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/playlist/smart_blockbuilder.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/css/playlist_builder.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'css/playlist_builder.css?'.$CC_CONFIG['airtime_version']);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
@ -186,16 +186,16 @@ class LibraryController extends Zend_Controller_Action
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($isAdminOrPM || $file->getFileOwnerId() == $user->getId()) {
|
if ($isAdminOrPM || $file->getFileOwnerId() == $user->getId()) {
|
||||||
$menu["del"] = array("name"=> _("Delete"), "icon" => "delete", "url" => $baseUrl."/library/delete");
|
$menu["del"] = array("name"=> _("Delete"), "icon" => "delete", "url" => $baseUrl."library/delete");
|
||||||
$menu["edit"] = array("name"=> _("Edit Metadata"), "icon" => "edit", "url" => $baseUrl."/library/edit-file-md/id/{$id}");
|
$menu["edit"] = array("name"=> _("Edit Metadata"), "icon" => "edit", "url" => $baseUrl."library/edit-file-md/id/{$id}");
|
||||||
}
|
}
|
||||||
|
|
||||||
$url = $file->getRelativeFileUrl($baseUrl).'/download/true';
|
$url = $file->getRelativeFileUrl($baseUrl).'download/true';
|
||||||
$menu["download"] = array("name" => _("Download"), "icon" => "download", "url" => $url);
|
$menu["download"] = array("name" => _("Download"), "icon" => "download", "url" => $url);
|
||||||
} elseif ($type === "playlist" || $type === "block") {
|
} elseif ($type === "playlist" || $type === "block") {
|
||||||
if ($type === 'playlist') {
|
if ($type === 'playlist') {
|
||||||
$obj = new Application_Model_Playlist($id);
|
$obj = new Application_Model_Playlist($id);
|
||||||
$menu["duplicate"] = array("name" => _("Duplicate Playlist"), "icon" => "edit", "url" => $baseUrl."/library/duplicate");
|
$menu["duplicate"] = array("name" => _("Duplicate Playlist"), "icon" => "edit", "url" => $baseUrl."library/duplicate");
|
||||||
} elseif ($type === 'block') {
|
} elseif ($type === 'block') {
|
||||||
$obj = new Application_Model_Block($id);
|
$obj = new Application_Model_Block($id);
|
||||||
if (!$obj->isStatic()) {
|
if (!$obj->isStatic()) {
|
||||||
|
@ -215,7 +215,7 @@ class LibraryController extends Zend_Controller_Action
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($isAdminOrPM || $obj->getCreatorId() == $user->getId()) {
|
if ($isAdminOrPM || $obj->getCreatorId() == $user->getId()) {
|
||||||
$menu["del"] = array("name"=> _("Delete"), "icon" => "delete", "url" => $baseUrl."/library/delete");
|
$menu["del"] = array("name"=> _("Delete"), "icon" => "delete", "url" => $baseUrl."library/delete");
|
||||||
}
|
}
|
||||||
} elseif ($type == "stream") {
|
} elseif ($type == "stream") {
|
||||||
$webstream = CcWebstreamQuery::create()->findPK($id);
|
$webstream = CcWebstreamQuery::create()->findPK($id);
|
||||||
|
@ -232,9 +232,9 @@ class LibraryController extends Zend_Controller_Action
|
||||||
}
|
}
|
||||||
if ($isAdminOrPM || $obj->getCreatorId() == $user->getId()) {
|
if ($isAdminOrPM || $obj->getCreatorId() == $user->getId()) {
|
||||||
if ($screen == "playlist") {
|
if ($screen == "playlist") {
|
||||||
$menu["edit"] = array("name"=> _("Edit"), "icon" => "edit", "url" => $baseUrl."/library/edit-file-md/id/{$id}");
|
$menu["edit"] = array("name"=> _("Edit"), "icon" => "edit", "url" => $baseUrl."library/edit-file-md/id/{$id}");
|
||||||
}
|
}
|
||||||
$menu["del"] = array("name"=> _("Delete"), "icon" => "delete", "url" => $baseUrl."/library/delete");
|
$menu["del"] = array("name"=> _("Delete"), "icon" => "delete", "url" => $baseUrl."library/delete");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -260,7 +260,7 @@ class LibraryController extends Zend_Controller_Action
|
||||||
$text = _("Upload to SoundCloud");
|
$text = _("Upload to SoundCloud");
|
||||||
}
|
}
|
||||||
|
|
||||||
$menu["soundcloud"]["items"]["upload"] = array("name" => $text, "icon" => "soundcloud", "url" => $baseUrl."/library/upload-file-soundcloud/id/{$id}");
|
$menu["soundcloud"]["items"]["upload"] = array("name" => $text, "icon" => "soundcloud", "url" => $baseUrl."library/upload-file-soundcloud/id/{$id}");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($menu)) {
|
if (empty($menu)) {
|
||||||
|
|
|
@ -15,19 +15,19 @@ class ListenerstatController extends Zend_Controller_Action
|
||||||
global $CC_CONFIG;
|
global $CC_CONFIG;
|
||||||
|
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
$baseUrl = $request->getBaseUrl();
|
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||||
|
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/flot/jquery.flot.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/flot/jquery.flot.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/flot/jquery.flot.crosshair.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/flot/jquery.flot.crosshair.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/listenerstat/listenerstat.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/listenerstat/listenerstat.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
|
|
||||||
$offset = date("Z") * -1;
|
$offset = date("Z") * -1;
|
||||||
$this->view->headScript()->appendScript("var serverTimezoneOffset = {$offset}; //in seconds");
|
$this->view->headScript()->appendScript("var serverTimezoneOffset = {$offset}; //in seconds");
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/timepicker/jquery.ui.timepicker.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/timepicker/jquery.ui.timepicker.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/buttons/buttons.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/buttons/buttons.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/utilities/utilities.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/utilities/utilities.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
|
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/css/jquery.ui.timepicker.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'css/jquery.ui.timepicker.css?'.$CC_CONFIG['airtime_version']);
|
||||||
|
|
||||||
//default time is the last 24 hours.
|
//default time is the last 24 hours.
|
||||||
$now = time();
|
$now = time();
|
||||||
|
|
|
@ -22,7 +22,7 @@ class LocaleController extends Zend_Controller_Action
|
||||||
file_get_contents(Application_Common_OsPath::join(
|
file_get_contents(Application_Common_OsPath::join(
|
||||||
$_SERVER["DOCUMENT_ROOT"],
|
$_SERVER["DOCUMENT_ROOT"],
|
||||||
$baseUrl,
|
$baseUrl,
|
||||||
"/js/datatables/i18n/",
|
"js/datatables/i18n/",
|
||||||
$locale.".txt")
|
$locale.".txt")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -391,4 +391,4 @@ class LocaleController extends Zend_Controller_Action
|
||||||
echo "var general_dict=".json_encode($translations);
|
echo "var general_dict=".json_encode($translations);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@ class LoginController extends Zend_Controller_Action
|
||||||
|
|
||||||
$baseUrl = Application_Common_OsPath::getBaseDir();
|
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||||
|
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/login/login.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/login/login.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
|
|
||||||
$form = new Application_Form_Login();
|
$form = new Application_Form_Login();
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ class LoginController extends Zend_Controller_Action
|
||||||
|
|
||||||
$baseUrl = Application_Common_OsPath::getBaseDir();
|
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||||
|
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/login/password-restore.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/login/password-restore.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
|
|
||||||
if (!Application_Model_Preference::GetEnableSystemEmail()) {
|
if (!Application_Model_Preference::GetEnableSystemEmail()) {
|
||||||
$this->_redirect('login');
|
$this->_redirect('login');
|
||||||
|
|
|
@ -38,23 +38,23 @@ class PlayouthistoryController extends Zend_Controller_Action
|
||||||
|
|
||||||
$this->view->date_form = $form;
|
$this->view->date_form = $form;
|
||||||
|
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/contextmenu/jquery.contextMenu.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/contextmenu/jquery.contextMenu.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/datatables/js/jquery.dataTables.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/datatables/js/jquery.dataTables.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/datatables/plugin/dataTables.pluginAPI.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/datatables/plugin/dataTables.pluginAPI.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/datatables/plugin/dataTables.fnSetFilteringDelay.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/datatables/plugin/dataTables.fnSetFilteringDelay.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/datatables/plugin/TableTools/js/ZeroClipboard.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/datatables/plugin/TableTools/js/ZeroClipboard.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/datatables/plugin/TableTools/js/TableTools.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/datatables/plugin/TableTools/js/TableTools.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
|
|
||||||
$offset = date("Z") * -1;
|
$offset = date("Z") * -1;
|
||||||
$this->view->headScript()->appendScript("var serverTimezoneOffset = {$offset}; //in seconds");
|
$this->view->headScript()->appendScript("var serverTimezoneOffset = {$offset}; //in seconds");
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/timepicker/jquery.ui.timepicker.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/timepicker/jquery.ui.timepicker.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/buttons/buttons.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/buttons/buttons.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/utilities/utilities.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/utilities/utilities.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/playouthistory/historytable.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/playouthistory/historytable.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
|
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/js/datatables/plugin/TableTools/css/TableTools.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'js/datatables/plugin/TableTools/css/TableTools.css?'.$CC_CONFIG['airtime_version']);
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/css/jquery.ui.timepicker.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'css/jquery.ui.timepicker.css?'.$CC_CONFIG['airtime_version']);
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/css/playouthistory.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'css/playouthistory.css?'.$CC_CONFIG['airtime_version']);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function playoutHistoryFeedAction()
|
public function playoutHistoryFeedAction()
|
||||||
|
|
|
@ -18,12 +18,12 @@ class PluploadController extends Zend_Controller_Action
|
||||||
$baseUrl = Application_Common_OsPath::getBaseDir();
|
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||||
$locale = Application_Model_Preference::GetLocale();
|
$locale = Application_Model_Preference::GetLocale();
|
||||||
|
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/plupload/plupload.full.min.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/plupload/plupload.full.min.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/plupload/jquery.plupload.queue.min.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/plupload/jquery.plupload.queue.min.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/library/plupload.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/library/plupload.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/plupload/i18n/'.$locale.'.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/plupload/i18n/'.$locale.'.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
|
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/css/plupload.queue.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'css/plupload.queue.css?'.$CC_CONFIG['airtime_version']);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function uploadAction()
|
public function uploadAction()
|
||||||
|
|
|
@ -27,7 +27,7 @@ class PreferenceController extends Zend_Controller_Action
|
||||||
|
|
||||||
$baseUrl = Application_Common_OsPath::getBaseDir();
|
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||||
|
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/preferences/preferences.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/preferences/preferences.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->statusMsg = "";
|
$this->view->statusMsg = "";
|
||||||
|
|
||||||
$form = new Application_Form_Preferences();
|
$form = new Application_Form_Preferences();
|
||||||
|
@ -86,7 +86,7 @@ class PreferenceController extends Zend_Controller_Action
|
||||||
|
|
||||||
$baseUrl = Application_Common_OsPath::getBaseDir();
|
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||||
|
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/preferences/support-setting.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/preferences/support-setting.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->statusMsg = "";
|
$this->view->statusMsg = "";
|
||||||
|
|
||||||
$form = new Application_Form_SupportSettings();
|
$form = new Application_Form_SupportSettings();
|
||||||
|
@ -142,8 +142,8 @@ class PreferenceController extends Zend_Controller_Action
|
||||||
|
|
||||||
$baseUrl = Application_Common_OsPath::getBaseDir();
|
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||||
|
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/serverbrowse/serverbrowser.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/serverbrowse/serverbrowser.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/preferences/musicdirs.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/preferences/musicdirs.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
|
|
||||||
$watched_dirs_pref = new Application_Form_WatchedDirPreferences();
|
$watched_dirs_pref = new Application_Form_WatchedDirPreferences();
|
||||||
|
|
||||||
|
@ -159,7 +159,7 @@ class PreferenceController extends Zend_Controller_Action
|
||||||
|
|
||||||
$baseUrl = Application_Common_OsPath::getBaseDir();
|
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||||
|
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/preferences/streamsetting.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/preferences/streamsetting.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
|
|
||||||
|
|
||||||
// get current settings
|
// get current settings
|
||||||
|
|
|
@ -42,51 +42,50 @@ class ScheduleController extends Zend_Controller_Action
|
||||||
{
|
{
|
||||||
global $CC_CONFIG;
|
global $CC_CONFIG;
|
||||||
|
|
||||||
$request = $this->getRequest();
|
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||||
$baseUrl = $request->getBaseUrl();
|
|
||||||
|
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/contextmenu/jquery.contextMenu.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/contextmenu/jquery.contextMenu.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
|
|
||||||
//full-calendar-functions.js requires this variable, so that datePicker widget can be offset to server time instead of client time
|
//full-calendar-functions.js requires this variable, so that datePicker widget can be offset to server time instead of client time
|
||||||
$this->view->headScript()->appendScript("var timezoneOffset = ".date("Z")."; //in seconds");
|
$this->view->headScript()->appendScript("var timezoneOffset = ".date("Z")."; //in seconds");
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/schedule/full-calendar-functions.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/schedule/full-calendar-functions.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
|
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/fullcalendar/fullcalendar.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/fullcalendar/fullcalendar.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/timepicker/jquery.ui.timepicker.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/timepicker/jquery.ui.timepicker.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/colorpicker/js/colorpicker.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/colorpicker/js/colorpicker.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
|
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/schedule/add-show.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/schedule/add-show.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/schedule/schedule.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/schedule/schedule.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/blockui/jquery.blockUI.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/blockui/jquery.blockUI.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
|
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/css/jquery.ui.timepicker.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'css/jquery.ui.timepicker.css?'.$CC_CONFIG['airtime_version']);
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/css/fullcalendar.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'css/fullcalendar.css?'.$CC_CONFIG['airtime_version']);
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/css/colorpicker/css/colorpicker.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'css/colorpicker/css/colorpicker.css?'.$CC_CONFIG['airtime_version']);
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/css/add-show.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'css/add-show.css?'.$CC_CONFIG['airtime_version']);
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/css/jquery.contextMenu.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'css/jquery.contextMenu.css?'.$CC_CONFIG['airtime_version']);
|
||||||
|
|
||||||
//Start Show builder JS/CSS requirements
|
//Start Show builder JS/CSS requirements
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/contextmenu/jquery.contextMenu.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/contextmenu/jquery.contextMenu.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/datatables/js/jquery.dataTables.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/datatables/js/jquery.dataTables.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/datatables/plugin/dataTables.pluginAPI.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/datatables/plugin/dataTables.pluginAPI.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/datatables/plugin/dataTables.fnSetFilteringDelay.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/datatables/plugin/dataTables.fnSetFilteringDelay.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/datatables/plugin/dataTables.ColVis.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/datatables/plugin/dataTables.ColVis.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/datatables/plugin/dataTables.ColReorder.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/datatables/plugin/dataTables.ColReorder.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/datatables/plugin/dataTables.FixedColumns.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/datatables/plugin/dataTables.FixedColumns.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/datatables/plugin/dataTables.TableTools.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/datatables/plugin/dataTables.TableTools.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/datatables/plugin/dataTables.columnFilter.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/datatables/plugin/dataTables.columnFilter.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
||||||
|
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/buttons/buttons.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/buttons/buttons.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/library/events/library_showbuilder.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/library/events/library_showbuilder.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/library/library.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/library/library.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/showbuilder/builder.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/showbuilder/builder.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
|
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/css/media_library.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'css/media_library.css?'.$CC_CONFIG['airtime_version']);
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/css/jquery.contextMenu.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'css/jquery.contextMenu.css?'.$CC_CONFIG['airtime_version']);
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/css/datatables/css/ColVis.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'css/datatables/css/ColVis.css?'.$CC_CONFIG['airtime_version']);
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/css/datatables/css/ColReorder.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'css/datatables/css/ColReorder.css?'.$CC_CONFIG['airtime_version']);
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/css/TableTools.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'css/TableTools.css?'.$CC_CONFIG['airtime_version']);
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/css/showbuilder.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'css/showbuilder.css?'.$CC_CONFIG['airtime_version']);
|
||||||
//End Show builder JS/CSS requirements
|
//End Show builder JS/CSS requirements
|
||||||
|
|
||||||
Application_Model_Schedule::createNewFormSections($this->view);
|
Application_Model_Schedule::createNewFormSections($this->view);
|
||||||
|
@ -251,7 +250,7 @@ class ScheduleController extends Zend_Controller_Action
|
||||||
$fileId = $file->getId();
|
$fileId = $file->getId();
|
||||||
|
|
||||||
$menu["view_recorded"] = array("name" => _("View Recorded File Metadata"), "icon" => "overview",
|
$menu["view_recorded"] = array("name" => _("View Recorded File Metadata"), "icon" => "overview",
|
||||||
"url" => $baseUrl."/library/edit-file-md/id/".$fileId);
|
"url" => $baseUrl."library/edit-file-md/id/".$fileId);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($epochNow < $showStartLocalDT->getTimestamp()) {
|
if ($epochNow < $showStartLocalDT->getTimestamp()) {
|
||||||
|
@ -260,16 +259,16 @@ class ScheduleController extends Zend_Controller_Action
|
||||||
&& !$instance->isRebroadcast()) {
|
&& !$instance->isRebroadcast()) {
|
||||||
|
|
||||||
$menu["schedule"] = array("name"=> _("Add / Remove Content"), "icon" => "add-remove-content",
|
$menu["schedule"] = array("name"=> _("Add / Remove Content"), "icon" => "add-remove-content",
|
||||||
"url" => $baseUrl."/showbuilder/builder-dialog/");
|
"url" => $baseUrl."showbuilder/builder-dialog/");
|
||||||
|
|
||||||
$menu["clear"] = array("name"=> _("Remove All Content"), "icon" => "remove-all-content",
|
$menu["clear"] = array("name"=> _("Remove All Content"), "icon" => "remove-all-content",
|
||||||
"url" => $baseUrl."/schedule/clear-show");
|
"url" => $baseUrl."schedule/clear-show");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$instance->isRecorded()) {
|
if (!$instance->isRecorded()) {
|
||||||
|
|
||||||
$menu["content"] = array("name"=> _("Show Content"), "icon" => "overview", "url" => $baseUrl."/schedule/show-content-dialog");
|
$menu["content"] = array("name"=> _("Show Content"), "icon" => "overview", "url" => $baseUrl."schedule/show-content-dialog");
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($showEndLocalDT->getTimestamp() <= $epochNow
|
if ($showEndLocalDT->getTimestamp() <= $epochNow
|
||||||
|
@ -297,7 +296,7 @@ class ScheduleController extends Zend_Controller_Action
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if (!$instance->isRebroadcast()) {
|
if (!$instance->isRebroadcast()) {
|
||||||
$menu["edit"] = array("name"=> _("Edit Show"), "icon" => "edit", "_type"=>"all", "url" => $baseUrl."/Schedule/populate-show-form");
|
$menu["edit"] = array("name"=> _("Edit Show"), "icon" => "edit", "_type"=>"all", "url" => $baseUrl."Schedule/populate-show-form");
|
||||||
}
|
}
|
||||||
|
|
||||||
$menu["cancel"] = array("name"=> _("Cancel Current Show"), "icon" => "delete");
|
$menu["cancel"] = array("name"=> _("Cancel Current Show"), "icon" => "delete");
|
||||||
|
@ -307,7 +306,7 @@ class ScheduleController extends Zend_Controller_Action
|
||||||
if ($epochNow < $showStartLocalDT->getTimestamp()) {
|
if ($epochNow < $showStartLocalDT->getTimestamp()) {
|
||||||
|
|
||||||
if (!$instance->isRebroadcast() && $isAdminOrPM) {
|
if (!$instance->isRebroadcast() && $isAdminOrPM) {
|
||||||
$menu["edit"] = array("name"=> _("Edit Show"), "icon" => "edit", "_type"=>"all", "url" => $baseUrl."/Schedule/populate-show-form");
|
$menu["edit"] = array("name"=> _("Edit Show"), "icon" => "edit", "_type"=>"all", "url" => $baseUrl."Schedule/populate-show-form");
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($instance->getShow()->isRepeating() && $isAdminOrPM) {
|
if ($instance->getShow()->isRepeating() && $isAdminOrPM) {
|
||||||
|
@ -315,12 +314,12 @@ class ScheduleController extends Zend_Controller_Action
|
||||||
//create delete sub menu.
|
//create delete sub menu.
|
||||||
$menu["del"] = array("name"=> _("Delete"), "icon" => "delete", "items" => array());
|
$menu["del"] = array("name"=> _("Delete"), "icon" => "delete", "items" => array());
|
||||||
|
|
||||||
$menu["del"]["items"]["single"] = array("name"=> _("Delete This Instance"), "icon" => "delete", "url" => $baseUrl."/schedule/delete-show");
|
$menu["del"]["items"]["single"] = array("name"=> _("Delete This Instance"), "icon" => "delete", "url" => $baseUrl."schedule/delete-show");
|
||||||
|
|
||||||
$menu["del"]["items"]["following"] = array("name"=> _("Delete This Instance and All Following"), "icon" => "delete", "url" => $baseUrl."/schedule/cancel-show");
|
$menu["del"]["items"]["following"] = array("name"=> _("Delete This Instance and All Following"), "icon" => "delete", "url" => $baseUrl."schedule/cancel-show");
|
||||||
} elseif ($isAdminOrPM) {
|
} elseif ($isAdminOrPM) {
|
||||||
|
|
||||||
$menu["del"] = array("name"=> _("Delete"), "icon" => "delete", "url" => $baseUrl."/schedule/delete-show");
|
$menu["del"] = array("name"=> _("Delete"), "icon" => "delete", "url" => $baseUrl."schedule/delete-show");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -895,7 +894,7 @@ class ScheduleController extends Zend_Controller_Action
|
||||||
$file = Application_Model_StoredFile::Recall($file_id);
|
$file = Application_Model_StoredFile::Recall($file_id);
|
||||||
|
|
||||||
$baseUrl = $this->getRequest()->getBaseUrl();
|
$baseUrl = $this->getRequest()->getBaseUrl();
|
||||||
$url = $file->getRelativeFileUrl($baseUrl).'/download/true';
|
$url = $file->getRelativeFileUrl($baseUrl).'download/true';
|
||||||
$menu[] = array('action' => array('type' => 'gourl', 'url' => $url),
|
$menu[] = array('action' => array('type' => 'gourl', 'url' => $url),
|
||||||
'title' => _('Download'));
|
'title' => _('Download'));
|
||||||
|
|
||||||
|
|
|
@ -45,26 +45,26 @@ class ShowbuilderController extends Zend_Controller_Action
|
||||||
$this->view->headScript()->appendScript("localStorage.setItem( 'datatables-timeline', '' );");
|
$this->view->headScript()->appendScript("localStorage.setItem( 'datatables-timeline', '' );");
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/contextmenu/jquery.contextMenu.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/contextmenu/jquery.contextMenu.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/datatables/js/jquery.dataTables.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/datatables/js/jquery.dataTables.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/datatables/plugin/dataTables.pluginAPI.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/datatables/plugin/dataTables.pluginAPI.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/datatables/plugin/dataTables.fnSetFilteringDelay.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/datatables/plugin/dataTables.fnSetFilteringDelay.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/datatables/plugin/dataTables.ColVis.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/datatables/plugin/dataTables.ColVis.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/datatables/plugin/dataTables.ColReorder.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/datatables/plugin/dataTables.ColReorder.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/datatables/plugin/dataTables.FixedColumns.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/datatables/plugin/dataTables.FixedColumns.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/datatables/plugin/dataTables.columnFilter.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/datatables/plugin/dataTables.columnFilter.js?'.$CC_CONFIG['airtime_version'], 'text/javascript');
|
||||||
|
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/blockui/jquery.blockUI.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/blockui/jquery.blockUI.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/buttons/buttons.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/buttons/buttons.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/utilities/utilities.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/utilities/utilities.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/library/library.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/library/library.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
|
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/css/media_library.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'css/media_library.css?'.$CC_CONFIG['airtime_version']);
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/css/jquery.contextMenu.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'css/jquery.contextMenu.css?'.$CC_CONFIG['airtime_version']);
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/css/datatables/css/ColVis.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'css/datatables/css/ColVis.css?'.$CC_CONFIG['airtime_version']);
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/css/datatables/css/ColReorder.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'css/datatables/css/ColReorder.css?'.$CC_CONFIG['airtime_version']);
|
||||||
|
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/library/events/library_showbuilder.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/library/events/library_showbuilder.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$refer_sses = new Zend_Session_Namespace('referrer');
|
$refer_sses = new Zend_Session_Namespace('referrer');
|
||||||
|
|
||||||
if ($request->isPost()) {
|
if ($request->isPost()) {
|
||||||
|
@ -106,7 +106,7 @@ class ShowbuilderController extends Zend_Controller_Action
|
||||||
$this->view->logoImg = $logo;
|
$this->view->logoImg = $logo;
|
||||||
}
|
}
|
||||||
$this->view->dialog = $form;
|
$this->view->dialog = $form;
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/nowplaying/register.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/nowplaying/register.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -121,7 +121,7 @@ class ShowbuilderController extends Zend_Controller_Action
|
||||||
$this->view->logoImg = $logo;
|
$this->view->logoImg = $logo;
|
||||||
}
|
}
|
||||||
$this->view->dialog = $form;
|
$this->view->dialog = $form;
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/nowplaying/register.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/nowplaying/register.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
}
|
}
|
||||||
|
|
||||||
//determine whether to remove/hide/display the library.
|
//determine whether to remove/hide/display the library.
|
||||||
|
@ -164,12 +164,12 @@ class ShowbuilderController extends Zend_Controller_Action
|
||||||
|
|
||||||
$offset = date("Z") * -1;
|
$offset = date("Z") * -1;
|
||||||
$this->view->headScript()->appendScript("var serverTimezoneOffset = {$offset}; //in seconds");
|
$this->view->headScript()->appendScript("var serverTimezoneOffset = {$offset}; //in seconds");
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/timepicker/jquery.ui.timepicker.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/timepicker/jquery.ui.timepicker.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/showbuilder/builder.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/showbuilder/builder.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/showbuilder/main_builder.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/showbuilder/main_builder.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
|
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/css/jquery.ui.timepicker.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'css/jquery.ui.timepicker.css?'.$CC_CONFIG['airtime_version']);
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/css/showbuilder.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'css/showbuilder.css?'.$CC_CONFIG['airtime_version']);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function contextMenuAction()
|
public function contextMenuAction()
|
||||||
|
@ -195,7 +195,7 @@ class ShowbuilderController extends Zend_Controller_Action
|
||||||
if ($now < floatval($item->getDbEnds("U.u")) && $user->canSchedule($instance->getDbShowId())) {
|
if ($now < floatval($item->getDbEnds("U.u")) && $user->canSchedule($instance->getDbShowId())) {
|
||||||
|
|
||||||
//remove/truncate the item from the schedule
|
//remove/truncate the item from the schedule
|
||||||
$menu["del"] = array("name"=> _("Delete"), "icon" => "delete", "url" => $baseUrl."/showbuilder/schedule-remove");
|
$menu["del"] = array("name"=> _("Delete"), "icon" => "delete", "url" => $baseUrl."showbuilder/schedule-remove");
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->view->items = $menu;
|
$this->view->items = $menu;
|
||||||
|
|
|
@ -8,7 +8,7 @@ class SystemstatusController extends Zend_Controller_Action
|
||||||
|
|
||||||
$baseUrl = Application_Common_OsPath::getBaseDir();
|
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||||
|
|
||||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/status/status.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
$this->view->headScript()->appendFile($baseUrl.'js/airtime/status/status.js?'.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function indexAction()
|
public function indexAction()
|
||||||
|
|
|
@ -22,9 +22,9 @@ class UserController extends Zend_Controller_Action
|
||||||
$baseUrl = Application_Common_OsPath::getBaseDir();
|
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||||
|
|
||||||
$js_files = array(
|
$js_files = array(
|
||||||
'/js/datatables/js/jquery.dataTables.js?',
|
'js/datatables/js/jquery.dataTables.js?',
|
||||||
'/js/datatables/plugin/dataTables.pluginAPI.js?',
|
'js/datatables/plugin/dataTables.pluginAPI.js?',
|
||||||
'/js/airtime/user/user.js?'
|
'js/airtime/user/user.js?'
|
||||||
);
|
);
|
||||||
|
|
||||||
foreach ($js_files as $js) {
|
foreach ($js_files as $js) {
|
||||||
|
@ -32,7 +32,7 @@ class UserController extends Zend_Controller_Action
|
||||||
$baseUrl.$js.$CC_CONFIG['airtime_version'],'text/javascript');
|
$baseUrl.$js.$CC_CONFIG['airtime_version'],'text/javascript');
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->view->headLink()->appendStylesheet($baseUrl.'/css/users.css?'.$CC_CONFIG['airtime_version']);
|
$this->view->headLink()->appendStylesheet($baseUrl.'css/users.css?'.$CC_CONFIG['airtime_version']);
|
||||||
|
|
||||||
$form = new Application_Form_AddUser();
|
$form = new Application_Form_AddUser();
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
<div class="personal-block solo">
|
<div class="personal-block solo">
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a id="current-user" href=<?php echo $baseUrl . "/User/edit-user"?>><span class="name"><?php echo $this->loggedInAs()?></span></a> | <a href=<?php echo $baseUrl . "/Login/logout"?>><?php echo _("Logout")?></a>
|
<a id="current-user" href=<?php echo $baseUrl . "User/edit-user"?>><span class="name"><?php echo $this->loggedInAs()?></span></a> | <a href=<?php echo $baseUrl . "Login/logout"?>><?php echo _("Logout")?></a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -532,7 +532,7 @@ SQL;
|
||||||
*/
|
*/
|
||||||
public function getRelativeFileUrl($baseUrl)
|
public function getRelativeFileUrl($baseUrl)
|
||||||
{
|
{
|
||||||
return $baseUrl."/api/get-media/file/".$this->getId().".".$this->getFileExtension();
|
return $baseUrl."api/get-media/file/".$this->getId().".".$this->getFileExtension();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function Insert($md)
|
public static function Insert($md)
|
||||||
|
@ -807,14 +807,14 @@ SQL;
|
||||||
// ugly
|
// ugly
|
||||||
if ($type == "au") {
|
if ($type == "au") {
|
||||||
$row['audioFile'] = $row['id'].".".pathinfo($row['filepath'], PATHINFO_EXTENSION);
|
$row['audioFile'] = $row['id'].".".pathinfo($row['filepath'], PATHINFO_EXTENSION);
|
||||||
$row['image'] = '<img title="'._("Track preview").'" src="'.$baseUrl.'/css/images/icon_audioclip.png">';
|
$row['image'] = '<img title="'._("Track preview").'" src="'.$baseUrl.'css/images/icon_audioclip.png">';
|
||||||
} elseif ($type == "pl") {
|
} elseif ($type == "pl") {
|
||||||
$row['image'] = '<img title="'._("Playlist preview").'" src="'.$baseUrl.'/css/images/icon_playlist.png">';
|
$row['image'] = '<img title="'._("Playlist preview").'" src="'.$baseUrl.'css/images/icon_playlist.png">';
|
||||||
} elseif ($type == "st") {
|
} elseif ($type == "st") {
|
||||||
$row['audioFile'] = $row['id'];
|
$row['audioFile'] = $row['id'];
|
||||||
$row['image'] = '<img title="'._("Webstream preview").'" src="'.$baseUrl.'/css/images/icon_webstream.png">';
|
$row['image'] = '<img title="'._("Webstream preview").'" src="'.$baseUrl.'css/images/icon_webstream.png">';
|
||||||
} elseif ($type == "bl") {
|
} elseif ($type == "bl") {
|
||||||
$row['image'] = '<img title="'._("Smart Block").'" src="'.$baseUrl.'/css/images/icon_smart-block.png">';
|
$row['image'] = '<img title="'._("Smart Block").'" src="'.$baseUrl.'css/images/icon_smart-block.png">';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php $baseUrl = Application_Common_OsPath::getBaseDir(); ?>
|
<?php $baseUrl = Application_Common_OsPath::getBaseDir(); ?>
|
||||||
<div id="import_status" class="library_import" style="display:none"><? echo _("File import in progress..."); ?><img src=<?php echo $baseUrl . "/css/images/file_import_loader.gif"?>></img></div>
|
<div id="import_status" class="library_import" style="display:none"><? echo _("File import in progress..."); ?><img src=<?php echo $baseUrl . "css/images/file_import_loader.gif"?>></img></div>
|
||||||
|
|
||||||
<fieldset class="toggle closed" id="filter_options">
|
<fieldset class="toggle closed" id="filter_options">
|
||||||
<legend style="cursor: pointer;"><span class="ui-icon ui-icon-triangle-2-n-s"></span><? echo _("Advanced Search Options") ?></legend>
|
<legend style="cursor: pointer;"><span class="ui-icon ui-icon-triangle-2-n-s"></span><? echo _("Advanced Search Options") ?></legend>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<div class="ui-widget ui-widget-content block-shadow simple-formblock clearfix padded-strong preferences" id="support-feedback-view">
|
<div class="ui-widget ui-widget-content block-shadow simple-formblock clearfix padded-strong preferences" id="support-feedback-view">
|
||||||
<h2><?php echo $this->section_title?></h2>
|
<h2><?php echo $this->section_title?></h2>
|
||||||
<?php $baseUrl = Application_Common_OsPath::getBaseDir(); ?>
|
<?php $baseUrl = Application_Common_OsPath::getBaseDir(); ?>
|
||||||
<form method="post" action=<?php echo $baseUrl."/Preference/support-setting"?> enctype="multipart/form-data" id="support-feedback-form">
|
<form method="post" action=<?php echo $baseUrl."Preference/support-setting"?> enctype="multipart/form-data" id="support-feedback-form">
|
||||||
<div id="support-settings">
|
<div id="support-settings">
|
||||||
<?php echo $this->statusMsg ?>
|
<?php echo $this->statusMsg ?>
|
||||||
<?php echo $this->form ?>
|
<?php echo $this->form ?>
|
||||||
|
|
|
@ -76,7 +76,7 @@ function playAllPlaylist(p_playlistID, p_playlistIndex) {
|
||||||
if ( _idToPostionLookUp !== undefined && viewsPlaylistID == p_playlistID ) {
|
if ( _idToPostionLookUp !== undefined && viewsPlaylistID == p_playlistID ) {
|
||||||
play(p_playlistIndex);
|
play(p_playlistIndex);
|
||||||
}else {
|
}else {
|
||||||
buildplaylist(baseUrl+"/audiopreview/get-playlist/playlistID/"+p_playlistID, p_playlistIndex);
|
buildplaylist(baseUrl+"audiopreview/get-playlist/playlistID/"+p_playlistID, p_playlistIndex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@ function playBlock(p_blockId, p_blockIndex)
|
||||||
if ( _idToPostionLookUp !== undefined && viewsBlockId == p_blockId ) {
|
if ( _idToPostionLookUp !== undefined && viewsBlockId == p_blockId ) {
|
||||||
play(p_blockIndex);
|
play(p_blockIndex);
|
||||||
} else {
|
} else {
|
||||||
buildplaylist(baseUrl+"/audiopreview/get-block/blockId/"+p_blockId, p_blockIndex);
|
buildplaylist(baseUrl+"audiopreview/get-block/blockId/"+p_blockId, p_blockIndex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ function playAllShow(p_showID, p_index) {
|
||||||
if ( _idToPostionLookUp !== undefined && viewsShowID == p_showID ) {
|
if ( _idToPostionLookUp !== undefined && viewsShowID == p_showID ) {
|
||||||
play(p_index);
|
play(p_index);
|
||||||
}else {
|
}else {
|
||||||
buildplaylist(baseUrl+"/audiopreview/get-show/showID/"+p_showID, p_index);
|
buildplaylist(baseUrl+"audiopreview/get-show/showID/"+p_showID, p_index);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -103,7 +103,7 @@ function open_playlist_preview(p_playlistID, p_playlistIndex) {
|
||||||
if (_preview_window != null && !_preview_window.closed)
|
if (_preview_window != null && !_preview_window.closed)
|
||||||
_preview_window.playAllPlaylist(p_playlistID, p_playlistIndex);
|
_preview_window.playAllPlaylist(p_playlistID, p_playlistIndex);
|
||||||
else
|
else
|
||||||
openPreviewWindow(baseUrl+'/audiopreview/playlist-preview/playlistIndex/'+p_playlistIndex+'/playlistID/'+p_playlistID);
|
openPreviewWindow(baseUrl+'audiopreview/playlist-preview/playlistIndex/'+p_playlistIndex+'/playlistID/'+p_playlistID);
|
||||||
_preview_window.focus();
|
_preview_window.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -114,7 +114,7 @@ function open_block_preview(p_blockId, p_blockIndex) {
|
||||||
if (_preview_window != null && !_preview_window.closed)
|
if (_preview_window != null && !_preview_window.closed)
|
||||||
_preview_window.playBlock(p_blockId, p_blockIndex);
|
_preview_window.playBlock(p_blockId, p_blockIndex);
|
||||||
else
|
else
|
||||||
openPreviewWindow(baseUrl+'/audiopreview/block-preview/blockIndex/'+p_blockIndex+'/blockId/'+p_blockId);
|
openPreviewWindow(baseUrl+'audiopreview/block-preview/blockIndex/'+p_blockIndex+'/blockId/'+p_blockId);
|
||||||
_preview_window.focus();
|
_preview_window.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -128,7 +128,7 @@ function open_show_preview(p_showID, p_showIndex) {
|
||||||
if (_preview_window != null && !_preview_window.closed)
|
if (_preview_window != null && !_preview_window.closed)
|
||||||
_preview_window.playAllShow(p_showID, p_showIndex);
|
_preview_window.playAllShow(p_showID, p_showIndex);
|
||||||
else
|
else
|
||||||
openPreviewWindow(baseUrl+'/audiopreview/show-preview/showID/'+p_showID+'/showIndex/'+p_showIndex);
|
openPreviewWindow(baseUrl+'audiopreview/show-preview/showID/'+p_showID+'/showIndex/'+p_showIndex);
|
||||||
_preview_window.focus();
|
_preview_window.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -360,7 +360,7 @@ function controlSwitchLight(){
|
||||||
}
|
}
|
||||||
|
|
||||||
function getScheduleFromServer(){
|
function getScheduleFromServer(){
|
||||||
$.ajax({ url: baseUrl+"/Schedule/get-current-playlist/format/json", dataType:"json", success:function(data){
|
$.ajax({ url: baseUrl+"Schedule/get-current-playlist/format/json", dataType:"json", success:function(data){
|
||||||
parseItems(data.entries);
|
parseItems(data.entries);
|
||||||
parseSourceStatus(data.source_status);
|
parseSourceStatus(data.source_status);
|
||||||
parseSwitchStatus(data.switch_status);
|
parseSwitchStatus(data.switch_status);
|
||||||
|
|
|
@ -310,7 +310,7 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
|
|
||||||
mod.fnDeleteItems = function(aMedia) {
|
mod.fnDeleteItems = function(aMedia) {
|
||||||
|
|
||||||
$.post(baseUrl+"/library/delete",
|
$.post(baseUrl+"library/delete",
|
||||||
{"format": "json", "media": aMedia},
|
{"format": "json", "media": aMedia},
|
||||||
function(json){
|
function(json){
|
||||||
if (json.message !== undefined) {
|
if (json.message !== undefined) {
|
||||||
|
@ -481,7 +481,7 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
"fnStateSave": function (oSettings, oData) {
|
"fnStateSave": function (oSettings, oData) {
|
||||||
localStorage.setItem('datatables-library', JSON.stringify(oData));
|
localStorage.setItem('datatables-library', JSON.stringify(oData));
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: baseUrl+"/usersettings/set-library-datatable",
|
url: baseUrl+"usersettings/set-library-datatable",
|
||||||
type: "POST",
|
type: "POST",
|
||||||
data: {settings : oData, format: "json"},
|
data: {settings : oData, format: "json"},
|
||||||
dataType: "json"
|
dataType: "json"
|
||||||
|
@ -522,7 +522,7 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
oData.iCreate = parseInt(oData.iCreate, 10);
|
oData.iCreate = parseInt(oData.iCreate, 10);
|
||||||
},
|
},
|
||||||
|
|
||||||
"sAjaxSource": baseUrl+"/Library/contents-feed",
|
"sAjaxSource": baseUrl+"Library/contents-feed",
|
||||||
"sAjaxDataProp": "files",
|
"sAjaxDataProp": "files",
|
||||||
|
|
||||||
"fnServerData": function ( sSource, aoData, fnCallback ) {
|
"fnServerData": function ( sSource, aoData, fnCallback ) {
|
||||||
|
@ -615,7 +615,7 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
text: aData.track_title
|
text: aData.track_title
|
||||||
},
|
},
|
||||||
ajax: {
|
ajax: {
|
||||||
url: baseUrl+"/Library/get-file-metadata",
|
url: baseUrl+"Library/get-file-metadata",
|
||||||
type: "get",
|
type: "get",
|
||||||
data: ({format: "html", id : aData.id, type: aData.ftype}),
|
data: ({format: "html", id : aData.id, type: aData.ftype}),
|
||||||
success: function(data, status) {
|
success: function(data, status) {
|
||||||
|
@ -800,13 +800,13 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
};
|
};
|
||||||
} else if (data.ftype === "playlist" || data.ftype === "block") {
|
} else if (data.ftype === "playlist" || data.ftype === "block") {
|
||||||
callback = function() {
|
callback = function() {
|
||||||
var url = baseUrl+'/Playlist/edit';
|
var url = baseUrl+'Playlist/edit';
|
||||||
AIRTIME.playlist.fnEdit(data.id, data.ftype, url);
|
AIRTIME.playlist.fnEdit(data.id, data.ftype, url);
|
||||||
AIRTIME.playlist.validatePlaylistElements();
|
AIRTIME.playlist.validatePlaylistElements();
|
||||||
};
|
};
|
||||||
} else if (data.ftype === "stream") {
|
} else if (data.ftype === "stream") {
|
||||||
callback = function() {
|
callback = function() {
|
||||||
var url = baseUrl+'/Webstream/edit';
|
var url = baseUrl+'Webstream/edit';
|
||||||
AIRTIME.playlist.fnEdit(data.id, data.ftype, url);
|
AIRTIME.playlist.fnEdit(data.id, data.ftype, url);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -932,7 +932,7 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
}
|
}
|
||||||
|
|
||||||
request = $.ajax({
|
request = $.ajax({
|
||||||
url: baseUrl+"/library/context-menu",
|
url: baseUrl+"library/context-menu",
|
||||||
type: "GET",
|
type: "GET",
|
||||||
data: {id : data.id, type: data.ftype, format: "json", "screen": screen},
|
data: {id : data.id, type: data.ftype, format: "json", "screen": screen},
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
|
@ -974,7 +974,7 @@ function closeDialog(event, ui) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkImportStatus() {
|
function checkImportStatus() {
|
||||||
$.getJSON(baseUrl+'/Preference/is-import-in-progress', function(data){
|
$.getJSON(baseUrl+'Preference/is-import-in-progress', function(data){
|
||||||
var div = $('#import_status');
|
var div = $('#import_status');
|
||||||
var table = $('#library_display').dataTable();
|
var table = $('#library_display').dataTable();
|
||||||
if (data == true){
|
if (data == true){
|
||||||
|
@ -1006,7 +1006,7 @@ function addProgressIcon(id) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkLibrarySCUploadStatus(){
|
function checkLibrarySCUploadStatus(){
|
||||||
var url = baseUrl+'/Library/get-upload-to-soundcloud-status',
|
var url = baseUrl+'Library/get-upload-to-soundcloud-status',
|
||||||
span,
|
span,
|
||||||
id;
|
id;
|
||||||
|
|
||||||
|
@ -1066,7 +1066,7 @@ function addQtipToSCIcons(){
|
||||||
content: {
|
content: {
|
||||||
text: $.i18n._("Retrieving data from the server..."),
|
text: $.i18n._("Retrieving data from the server..."),
|
||||||
ajax: {
|
ajax: {
|
||||||
url: baseUrl+"/Library/get-upload-to-soundcloud-status",
|
url: baseUrl+"Library/get-upload-to-soundcloud-status",
|
||||||
type: "post",
|
type: "post",
|
||||||
data: ({format: "json", id : id, type: "file"}),
|
data: ({format: "json", id : id, type: "file"}),
|
||||||
success: function(json, status){
|
success: function(json, status){
|
||||||
|
@ -1096,7 +1096,7 @@ function addQtipToSCIcons(){
|
||||||
content: {
|
content: {
|
||||||
text: $.i18n._("Retreiving data from the server..."),
|
text: $.i18n._("Retreiving data from the server..."),
|
||||||
ajax: {
|
ajax: {
|
||||||
url: baseUrl+"/Library/get-upload-to-soundcloud-status",
|
url: baseUrl+"Library/get-upload-to-soundcloud-status",
|
||||||
type: "post",
|
type: "post",
|
||||||
data: ({format: "json", id : id, type: "file"}),
|
data: ({format: "json", id : id, type: "file"}),
|
||||||
success: function(json, status){
|
success: function(json, status){
|
||||||
|
@ -1281,7 +1281,7 @@ $(document).ready(function() {
|
||||||
$('#editmdsave').live("click", function() {
|
$('#editmdsave').live("click", function() {
|
||||||
var file_id = $('#file_id').val(),
|
var file_id = $('#file_id').val(),
|
||||||
data = $("#edit-md-dialog form").serializeArray();
|
data = $("#edit-md-dialog form").serializeArray();
|
||||||
$.post(baseUrl+'/library/edit-file-md', {format: "json", id: file_id, data: data}, function() {
|
$.post(baseUrl+'library/edit-file-md', {format: "json", id: file_id, data: data}, function() {
|
||||||
$("#edit-md-dialog").dialog().remove();
|
$("#edit-md-dialog").dialog().remove();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -5,7 +5,7 @@ $(document).ready(function() {
|
||||||
$("#plupload_files").pluploadQueue({
|
$("#plupload_files").pluploadQueue({
|
||||||
// General settings
|
// General settings
|
||||||
runtimes : 'gears, html5, html4',
|
runtimes : 'gears, html5, html4',
|
||||||
url : baseUrl+'/Plupload/upload/format/json',
|
url : baseUrl+'Plupload/upload/format/json',
|
||||||
chunk_size : '5mb',
|
chunk_size : '5mb',
|
||||||
unique_names : 'true',
|
unique_names : 'true',
|
||||||
multiple_queues : 'true',
|
multiple_queues : 'true',
|
||||||
|
@ -28,7 +28,7 @@ $(document).ready(function() {
|
||||||
$("#plupload_error table").css("display", "inline-table");
|
$("#plupload_error table").css("display", "inline-table");
|
||||||
}else{
|
}else{
|
||||||
var tempFileName = j.tempfilepath;
|
var tempFileName = j.tempfilepath;
|
||||||
$.get(baseUrl+'/Plupload/copyfile/format/json/name/'+
|
$.get(baseUrl+'Plupload/copyfile/format/json/name/'+
|
||||||
encodeURIComponent(file.name)+'/tempname/' +
|
encodeURIComponent(file.name)+'/tempname/' +
|
||||||
encodeURIComponent(tempFileName), function(json){
|
encodeURIComponent(tempFileName), function(json){
|
||||||
var jr = jQuery.parseJSON(json);
|
var jr = jQuery.parseJSON(json);
|
||||||
|
|
|
@ -66,7 +66,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
var span = $(this),
|
var span = $(this),
|
||||||
id = span.parent().attr("id").split("_").pop(),
|
id = span.parent().attr("id").split("_").pop(),
|
||||||
url = baseUrl+"/Playlist/set-cue",
|
url = baseUrl+"Playlist/set-cue",
|
||||||
cueIn = $.trim(span.text()),
|
cueIn = $.trim(span.text()),
|
||||||
li = span.parents("li"),
|
li = span.parents("li"),
|
||||||
unqid = li.attr("unqid"),
|
unqid = li.attr("unqid"),
|
||||||
|
@ -103,7 +103,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
var span = $(this),
|
var span = $(this),
|
||||||
id = span.parent().attr("id").split("_").pop(),
|
id = span.parent().attr("id").split("_").pop(),
|
||||||
url = baseUrl+"/Playlist/set-cue",
|
url = baseUrl+"Playlist/set-cue",
|
||||||
cueOut = $.trim(span.text()),
|
cueOut = $.trim(span.text()),
|
||||||
li = span.parents("li"),
|
li = span.parents("li"),
|
||||||
unqid = li.attr("unqid"),
|
unqid = li.attr("unqid"),
|
||||||
|
@ -142,7 +142,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
|
|
||||||
var span = $(this),
|
var span = $(this),
|
||||||
id = span.parent().attr("id").split("_").pop(),
|
id = span.parent().attr("id").split("_").pop(),
|
||||||
url = baseUrl+"/Playlist/set-fade",
|
url = baseUrl+"Playlist/set-fade",
|
||||||
fadeIn = $.trim(span.text()),
|
fadeIn = $.trim(span.text()),
|
||||||
li = span.parents("li"),
|
li = span.parents("li"),
|
||||||
unqid = li.attr("unqid"),
|
unqid = li.attr("unqid"),
|
||||||
|
@ -180,7 +180,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
|
|
||||||
var span = $(this),
|
var span = $(this),
|
||||||
id = span.parent().attr("id").split("_").pop(),
|
id = span.parent().attr("id").split("_").pop(),
|
||||||
url = baseUrl+"/Playlist/set-fade",
|
url = baseUrl+"Playlist/set-fade",
|
||||||
fadeOut = $.trim(span.text()),
|
fadeOut = $.trim(span.text()),
|
||||||
li = span.parents("li"),
|
li = span.parents("li"),
|
||||||
unqid = li.attr("unqid"),
|
unqid = li.attr("unqid"),
|
||||||
|
@ -265,7 +265,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
|
|
||||||
/* --until we decide whether Playlist name should autosave or not
|
/* --until we decide whether Playlist name should autosave or not
|
||||||
|
|
||||||
url = baseUrl+'/Playlist/set-playlist-name';
|
url = baseUrl+'Playlist/set-playlist-name';
|
||||||
|
|
||||||
$.post(url,
|
$.post(url,
|
||||||
{format: "json", name: nameElement.text(), modified: lastMod, type: type},
|
{format: "json", name: nameElement.text(), modified: lastMod, type: type},
|
||||||
|
@ -448,7 +448,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
var id = parseInt($(this).attr("id").split("_").pop(), 10);
|
var id = parseInt($(this).attr("id").split("_").pop(), 10);
|
||||||
var blockId = parseInt($(this).attr("blockId"), 10);
|
var blockId = parseInt($(this).attr("blockId"), 10);
|
||||||
if ($(this).hasClass('close')) {
|
if ($(this).hasClass('close')) {
|
||||||
var sUrl = baseUrl+"/playlist/get-block-info";
|
var sUrl = baseUrl+"playlist/get-block-info";
|
||||||
mod.disableUI();
|
mod.disableUI();
|
||||||
$.post(sUrl, {format:"json", id:blockId}, function(json){
|
$.post(sUrl, {format:"json", id:blockId}, function(json){
|
||||||
$html = "";
|
$html = "";
|
||||||
|
@ -531,7 +531,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
else {
|
else {
|
||||||
$(this).addClass("ui-state-active");
|
$(this).addClass("ui-state-active");
|
||||||
|
|
||||||
var url = baseUrl+'/Playlist/get-playlist-fades';
|
var url = baseUrl+'Playlist/get-playlist-fades';
|
||||||
$.post(url,
|
$.post(url,
|
||||||
{format: "json", modified: lastMod, type: type},
|
{format: "json", modified: lastMod, type: type},
|
||||||
function(json){
|
function(json){
|
||||||
|
@ -568,7 +568,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
$pl.on("blur", "span.spl_main_fade_in", function(event){
|
$pl.on("blur", "span.spl_main_fade_in", function(event){
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
|
||||||
var url = baseUrl+"/Playlist/set-playlist-fades",
|
var url = baseUrl+"Playlist/set-playlist-fades",
|
||||||
span = $(this),
|
span = $(this),
|
||||||
fadeIn = $.trim(span.text()),
|
fadeIn = $.trim(span.text()),
|
||||||
lastMod = getModified(),
|
lastMod = getModified(),
|
||||||
|
@ -592,7 +592,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
$pl.on("blur", "span.spl_main_fade_out", function(event){
|
$pl.on("blur", "span.spl_main_fade_out", function(event){
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
|
||||||
var url = baseUrl+"/Playlist/set-playlist-fades",
|
var url = baseUrl+"Playlist/set-playlist-fades",
|
||||||
span = $(this),
|
span = $(this),
|
||||||
fadeOut = $.trim(span.text()),
|
fadeOut = $.trim(span.text()),
|
||||||
lastMod = getModified(),
|
lastMod = getModified(),
|
||||||
|
@ -641,7 +641,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
|
|
||||||
$pl.on("click", 'button[id="playlist_shuffle_button"]', function(){
|
$pl.on("click", 'button[id="playlist_shuffle_button"]', function(){
|
||||||
obj_id = $('input[id="obj_id"]').val();
|
obj_id = $('input[id="obj_id"]').val();
|
||||||
url = baseUrl+"/Playlist/shuffle";
|
url = baseUrl+"Playlist/shuffle";
|
||||||
enableLoadingIcon();
|
enableLoadingIcon();
|
||||||
$.post(url, {format: "json", obj_id: obj_id}, function(data){
|
$.post(url, {format: "json", obj_id: obj_id}, function(data){
|
||||||
var json = $.parseJSON(data)
|
var json = $.parseJSON(data)
|
||||||
|
@ -674,7 +674,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
//hide any previous errors (if any)
|
//hide any previous errors (if any)
|
||||||
$("#side_playlist .errors").empty().hide();
|
$("#side_playlist .errors").empty().hide();
|
||||||
|
|
||||||
var url = baseUrl+'/Webstream/save';
|
var url = baseUrl+'Webstream/save';
|
||||||
$.post(url,
|
$.post(url,
|
||||||
{format: "json", id:id, description: description, url:streamurl, length: length, name: name},
|
{format: "json", id:id, description: description, url:streamurl, length: length, name: name},
|
||||||
function(json){
|
function(json){
|
||||||
|
@ -719,7 +719,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
var criteria = $('form').serializeArray(),
|
var criteria = $('form').serializeArray(),
|
||||||
block_name = $('#playlist_name_display').text(),
|
block_name = $('#playlist_name_display').text(),
|
||||||
block_desc = $('textarea[name="description"]').val(),
|
block_desc = $('textarea[name="description"]').val(),
|
||||||
save_action = baseUrl+'/Playlist/save',
|
save_action = baseUrl+'Playlist/save',
|
||||||
obj_id = $('input[id="obj_id"]').val(),
|
obj_id = $('input[id="obj_id"]').val(),
|
||||||
obj_type = $('#obj_type').val(),
|
obj_type = $('#obj_type').val(),
|
||||||
lastMod = getModified(),
|
lastMod = getModified(),
|
||||||
|
@ -844,7 +844,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
}
|
}
|
||||||
|
|
||||||
mod.fnNew = function() {
|
mod.fnNew = function() {
|
||||||
var url = baseUrl+'/Playlist/new';
|
var url = baseUrl+'Playlist/new';
|
||||||
|
|
||||||
stopAudioPreview();
|
stopAudioPreview();
|
||||||
|
|
||||||
|
@ -857,7 +857,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
};
|
};
|
||||||
|
|
||||||
mod.fnWsNew = function() {
|
mod.fnWsNew = function() {
|
||||||
var url = baseUrl+'/Webstream/new';
|
var url = baseUrl+'Webstream/new';
|
||||||
|
|
||||||
stopAudioPreview();
|
stopAudioPreview();
|
||||||
|
|
||||||
|
@ -871,7 +871,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
|
|
||||||
|
|
||||||
mod.fnNewBlock = function() {
|
mod.fnNewBlock = function() {
|
||||||
var url = baseUrl+'/Playlist/new';
|
var url = baseUrl+'Playlist/new';
|
||||||
|
|
||||||
stopAudioPreview();
|
stopAudioPreview();
|
||||||
|
|
||||||
|
@ -902,7 +902,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
id = (plid === undefined) ? getId() : plid;
|
id = (plid === undefined) ? getId() : plid;
|
||||||
lastMod = getModified();
|
lastMod = getModified();
|
||||||
type = $('#obj_type').val();
|
type = $('#obj_type').val();
|
||||||
url = baseUrl+'/Playlist/delete';
|
url = baseUrl+'Playlist/delete';
|
||||||
|
|
||||||
$.post(url,
|
$.post(url,
|
||||||
{format: "json", ids: id, modified: lastMod, type: type},
|
{format: "json", ids: id, modified: lastMod, type: type},
|
||||||
|
@ -919,7 +919,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
id = (wsid === undefined) ? getId() : wsid;
|
id = (wsid === undefined) ? getId() : wsid;
|
||||||
lastMod = getModified();
|
lastMod = getModified();
|
||||||
type = $('#obj_type').val();
|
type = $('#obj_type').val();
|
||||||
url = baseUrl+'/Webstream/delete';
|
url = baseUrl+'Webstream/delete';
|
||||||
|
|
||||||
$.post(url,
|
$.post(url,
|
||||||
{format: "json", ids: id, modified: lastMod, type: type},
|
{format: "json", ids: id, modified: lastMod, type: type},
|
||||||
|
@ -992,20 +992,20 @@ var AIRTIME = (function(AIRTIME){
|
||||||
}
|
}
|
||||||
|
|
||||||
mod.fnAddItems = function(aItems, iAfter, sAddType) {
|
mod.fnAddItems = function(aItems, iAfter, sAddType) {
|
||||||
var sUrl = baseUrl+"/playlist/add-items";
|
var sUrl = baseUrl+"playlist/add-items";
|
||||||
oData = {"aItems": aItems, "afterItem": iAfter, "type": sAddType};
|
oData = {"aItems": aItems, "afterItem": iAfter, "type": sAddType};
|
||||||
playlistRequest(sUrl, oData);
|
playlistRequest(sUrl, oData);
|
||||||
};
|
};
|
||||||
|
|
||||||
mod.fnMoveItems = function(aIds, iAfter) {
|
mod.fnMoveItems = function(aIds, iAfter) {
|
||||||
var sUrl = baseUrl+"/playlist/move-items",
|
var sUrl = baseUrl+"playlist/move-items",
|
||||||
oData = {"ids": aIds, "afterItem": iAfter};
|
oData = {"ids": aIds, "afterItem": iAfter};
|
||||||
|
|
||||||
playlistRequest(sUrl, oData);
|
playlistRequest(sUrl, oData);
|
||||||
};
|
};
|
||||||
|
|
||||||
mod.fnDeleteItems = function(aItems) {
|
mod.fnDeleteItems = function(aItems) {
|
||||||
var sUrl = baseUrl+"/playlist/delete-items",
|
var sUrl = baseUrl+"playlist/delete-items",
|
||||||
oData = {"ids": aItems};
|
oData = {"ids": aItems};
|
||||||
|
|
||||||
playlistRequest(sUrl, oData);
|
playlistRequest(sUrl, oData);
|
||||||
|
|
|
@ -22,7 +22,7 @@ $(document).ready(function() {
|
||||||
|
|
||||||
function getDataAndPlot(startTimestamp, endTimestamp){
|
function getDataAndPlot(startTimestamp, endTimestamp){
|
||||||
// get data
|
// get data
|
||||||
$.get(baseUrl+'/Listenerstat/get-data', {startTimestamp: startTimestamp, endTimestamp: endTimestamp}, function(data){
|
$.get(baseUrl+'Listenerstat/get-data', {startTimestamp: startTimestamp, endTimestamp: endTimestamp}, function(data){
|
||||||
data = JSON.parse(data);
|
data = JSON.parse(data);
|
||||||
out = new Object();
|
out = new Object();
|
||||||
$.each(data, function(mpName, v){
|
$.each(data, function(mpName, v){
|
||||||
|
@ -177,4 +177,4 @@ function plot(datasets){
|
||||||
listenerstat_content.find(timeStartId).timepicker(oBaseTimePickerSettings);
|
listenerstat_content.find(timeStartId).timepicker(oBaseTimePickerSettings);
|
||||||
listenerstat_content.find(dateEndId).datepicker(oBaseDatePickerSettings);
|
listenerstat_content.find(dateEndId).datepicker(oBaseDatePickerSettings);
|
||||||
listenerstat_content.find(timeEndId).timepicker(oBaseTimePickerSettings);
|
listenerstat_content.find(timeEndId).timepicker(oBaseTimePickerSettings);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
|
||||||
function doNotShowPopup(){
|
function doNotShowPopup(){
|
||||||
$.get(baseUrl+"/Usersettings/donotshowregistrationpopup", {format:"json"});
|
$.get(baseUrl+"Usersettings/donotshowregistrationpopup", {format:"json"});
|
||||||
}
|
}
|
||||||
|
|
||||||
var dialog = $("#register_popup");
|
var dialog = $("#register_popup");
|
||||||
|
@ -19,7 +19,7 @@ $(document).ready(function(){
|
||||||
text: $.i18n._("Remind me in 1 week"),
|
text: $.i18n._("Remind me in 1 week"),
|
||||||
"class": "btn",
|
"class": "btn",
|
||||||
click: function() {
|
click: function() {
|
||||||
var url = baseUrl+'/Usersettings/remindme';
|
var url = baseUrl+'Usersettings/remindme';
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: url,
|
url: url,
|
||||||
data: {format:"json"}
|
data: {format:"json"}
|
||||||
|
@ -32,7 +32,7 @@ $(document).ready(function(){
|
||||||
text: $.i18n._("Remind me never"),
|
text: $.i18n._("Remind me never"),
|
||||||
"class": "btn",
|
"class": "btn",
|
||||||
click: function() {
|
click: function() {
|
||||||
var url =baseUrl+'/Usersettings/remindme-never';
|
var url =baseUrl+'Usersettings/remindme-never';
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: url,
|
url: url,
|
||||||
data: {format:"json"}
|
data: {format:"json"}
|
||||||
|
|
|
@ -75,7 +75,7 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
|
|
||||||
"bProcessing": true,
|
"bProcessing": true,
|
||||||
"bServerSide": true,
|
"bServerSide": true,
|
||||||
"sAjaxSource": baseUrl+"/Playouthistory/playout-history-feed",
|
"sAjaxSource": baseUrl+"Playouthistory/playout-history-feed",
|
||||||
"sAjaxDataProp": "history",
|
"sAjaxDataProp": "history",
|
||||||
|
|
||||||
"fnServerData": fnServerData,
|
"fnServerData": fnServerData,
|
||||||
|
@ -92,7 +92,7 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
"sDom": 'lf<"dt-process-rel"r><"H"T><"dataTables_scrolling"t><"F"ip>',
|
"sDom": 'lf<"dt-process-rel"r><"H"T><"dataTables_scrolling"t><"F"ip>',
|
||||||
|
|
||||||
"oTableTools": {
|
"oTableTools": {
|
||||||
"sSwfPath": baseUrl+"/js/datatables/plugin/TableTools/swf/copy_cvs_xls_pdf.swf",
|
"sSwfPath": baseUrl+"js/datatables/plugin/TableTools/swf/copy_cvs_xls_pdf.swf",
|
||||||
"aButtons": [
|
"aButtons": [
|
||||||
{
|
{
|
||||||
"sExtends": "copy",
|
"sExtends": "copy",
|
||||||
|
|
|
@ -13,8 +13,8 @@ function setWatchedDirEvents() {
|
||||||
//knownPaths: [{text:'Desktop', image:'desktop.png', path:'/home'}],
|
//knownPaths: [{text:'Desktop', image:'desktop.png', path:'/home'}],
|
||||||
knownPaths: [],
|
knownPaths: [],
|
||||||
imageUrl: 'img/icons/',
|
imageUrl: 'img/icons/',
|
||||||
systemImageUrl: baseUrl+'/css/img/',
|
systemImageUrl: baseUrl+'css/img/',
|
||||||
handlerUrl: baseUrl+'/Preference/server-browse/format/json',
|
handlerUrl: baseUrl+'Preference/server-browse/format/json',
|
||||||
title: $.i18n._('Choose Storage Folder'),
|
title: $.i18n._('Choose Storage Folder'),
|
||||||
basePath: '',
|
basePath: '',
|
||||||
requestMethod: 'POST',
|
requestMethod: 'POST',
|
||||||
|
@ -33,8 +33,8 @@ function setWatchedDirEvents() {
|
||||||
//knownPaths: [{text:'Desktop', image:'desktop.png', path:'/home'}],
|
//knownPaths: [{text:'Desktop', image:'desktop.png', path:'/home'}],
|
||||||
knownPaths: [],
|
knownPaths: [],
|
||||||
imageUrl: 'img/icons/',
|
imageUrl: 'img/icons/',
|
||||||
systemImageUrl: baseUrl+'/css/img/',
|
systemImageUrl: baseUrl+'css/img/',
|
||||||
handlerUrl: baseUrl+'/Preference/server-browse/format/json',
|
handlerUrl: baseUrl+'Preference/server-browse/format/json',
|
||||||
title: $.i18n._('Choose Folder to Watch'),
|
title: $.i18n._('Choose Folder to Watch'),
|
||||||
basePath: '',
|
basePath: '',
|
||||||
requestMethod: 'POST',
|
requestMethod: 'POST',
|
||||||
|
@ -44,7 +44,7 @@ function setWatchedDirEvents() {
|
||||||
var url, chosen;
|
var url, chosen;
|
||||||
|
|
||||||
if(confirm($.i18n._("Are you sure you want to change the storage folder?\nThis will remove the files from your Airtime library!"))){
|
if(confirm($.i18n._("Are you sure you want to change the storage folder?\nThis will remove the files from your Airtime library!"))){
|
||||||
url = baseUrl+"/Preference/change-stor-directory";
|
url = baseUrl+"Preference/change-stor-directory";
|
||||||
chosen = $('#storageFolder').val();
|
chosen = $('#storageFolder').val();
|
||||||
|
|
||||||
$.post(url,
|
$.post(url,
|
||||||
|
@ -64,7 +64,7 @@ function setWatchedDirEvents() {
|
||||||
$('#watchedFolder-ok').click(function(){
|
$('#watchedFolder-ok').click(function(){
|
||||||
var url, chosen;
|
var url, chosen;
|
||||||
|
|
||||||
url = baseUrl+"/Preference/reload-watch-directory";
|
url = baseUrl+"Preference/reload-watch-directory";
|
||||||
chosen = $('#watchedFolder').val();
|
chosen = $('#watchedFolder').val();
|
||||||
|
|
||||||
$.post(url,
|
$.post(url,
|
||||||
|
@ -80,7 +80,7 @@ function setWatchedDirEvents() {
|
||||||
|
|
||||||
$('.selected-item').find('.ui-icon-refresh').click(function(){
|
$('.selected-item').find('.ui-icon-refresh').click(function(){
|
||||||
var folder = $(this).prev().text();
|
var folder = $(this).prev().text();
|
||||||
$.get(baseUrl+"/Preference/rescan-watch-directory", {format: "json", dir: folder});
|
$.get(baseUrl+"Preference/rescan-watch-directory", {format: "json", dir: folder});
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.selected-item').find('.ui-icon-close').click(function(){
|
$('.selected-item').find('.ui-icon-close').click(function(){
|
||||||
|
@ -88,7 +88,7 @@ function setWatchedDirEvents() {
|
||||||
var row = $(this).parent();
|
var row = $(this).parent();
|
||||||
var folder = row.find('#folderPath').text();
|
var folder = row.find('#folderPath').text();
|
||||||
|
|
||||||
url = baseUrl+"/Preference/remove-watch-directory";
|
url = baseUrl+"Preference/remove-watch-directory";
|
||||||
|
|
||||||
$.post(url,
|
$.post(url,
|
||||||
{format: "json", dir: folder},
|
{format: "json", dir: folder},
|
||||||
|
|
|
@ -106,7 +106,7 @@ $(document).ready(function() {
|
||||||
|
|
||||||
$('#pref_save').live('click', function() {
|
$('#pref_save').live('click', function() {
|
||||||
var data = $('#pref_form').serialize();
|
var data = $('#pref_form').serialize();
|
||||||
var url = baseUrl+'/Preference/index';
|
var url = baseUrl+'Preference/index';
|
||||||
|
|
||||||
$.post(url, {format: "json", data: data}, function(data){
|
$.post(url, {format: "json", data: data}, function(data){
|
||||||
var json = $.parseJSON(data);
|
var json = $.parseJSON(data);
|
||||||
|
|
|
@ -75,7 +75,7 @@ function showForIcecast(ele){
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkLiquidsoapStatus(){
|
function checkLiquidsoapStatus(){
|
||||||
var url = baseUrl+'/Preference/get-liquidsoap-status/format/json';
|
var url = baseUrl+'Preference/get-liquidsoap-status/format/json';
|
||||||
var id = $(this).attr("id");
|
var id = $(this).attr("id");
|
||||||
$.post(url, function(json){
|
$.post(url, function(json){
|
||||||
var json_obj = jQuery.parseJSON(json);
|
var json_obj = jQuery.parseJSON(json);
|
||||||
|
@ -127,7 +127,7 @@ function setLiveSourceConnectionOverrideListener(){
|
||||||
live_dj_input.val(url)
|
live_dj_input.val(url)
|
||||||
live_dj_input.attr("readonly", "readonly")
|
live_dj_input.attr("readonly", "readonly")
|
||||||
live_dj_actions.hide()
|
live_dj_actions.hide()
|
||||||
$.get(baseUrl+"/Preference/set-source-connection-url/", {format: "json", type: "livedj", url:encodeURIComponent(url), override: 1});
|
$.get(baseUrl+"Preference/set-source-connection-url/", {format: "json", type: "livedj", url:encodeURIComponent(url), override: 1});
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -142,7 +142,7 @@ function setLiveSourceConnectionOverrideListener(){
|
||||||
live_dj_input.val(url)
|
live_dj_input.val(url)
|
||||||
live_dj_input.attr("readonly", "readonly")
|
live_dj_input.attr("readonly", "readonly")
|
||||||
live_dj_actions.hide()
|
live_dj_actions.hide()
|
||||||
$.get(baseUrl+"/Preference/set-source-connection-url", {format: "json", type: "livedj", url:encodeURIComponent(url), override: 0});
|
$.get(baseUrl+"Preference/set-source-connection-url", {format: "json", type: "livedj", url:encodeURIComponent(url), override: 0});
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -151,7 +151,7 @@ function setLiveSourceConnectionOverrideListener(){
|
||||||
master_dj_input.val(url)
|
master_dj_input.val(url)
|
||||||
master_dj_input.attr("readonly", "readonly")
|
master_dj_input.attr("readonly", "readonly")
|
||||||
master_dj_actions.hide()
|
master_dj_actions.hide()
|
||||||
$.get(baseUrl+"/Preference/set-source-connection-url", {format: "json", type: "masterdj", url:encodeURIComponent(url), override: 1})
|
$.get(baseUrl+"Preference/set-source-connection-url", {format: "json", type: "masterdj", url:encodeURIComponent(url), override: 1})
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -165,7 +165,7 @@ function setLiveSourceConnectionOverrideListener(){
|
||||||
master_dj_input.val(url)
|
master_dj_input.val(url)
|
||||||
master_dj_input.attr("readonly", "readonly")
|
master_dj_input.attr("readonly", "readonly")
|
||||||
master_dj_actions.hide()
|
master_dj_actions.hide()
|
||||||
$.get(baseUrl+"/Preference/set-source-connection-url", {format: "json", type: "masterdj", url:encodeURIComponent(url), override: 0})
|
$.get(baseUrl+"Preference/set-source-connection-url", {format: "json", type: "masterdj", url:encodeURIComponent(url), override: 0})
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -420,7 +420,7 @@ $(document).ready(function() {
|
||||||
var confirm_pypo_restart_text = $.i18n._("If you change the username or password values for an enabled stream the playout engine will be rebooted and your listeners will hear silence for 5-10 seconds. Changing the following fields will NOT cause a reboot: Stream Label (Global Settings), and Switch Transition Fade(s), Master Username, and Master Password (Input Stream Settings). If Airtime is recording, and if the change causes a playout engine restart, the recording will be interrupted.");
|
var confirm_pypo_restart_text = $.i18n._("If you change the username or password values for an enabled stream the playout engine will be rebooted and your listeners will hear silence for 5-10 seconds. Changing the following fields will NOT cause a reboot: Stream Label (Global Settings), and Switch Transition Fade(s), Master Username, and Master Password (Input Stream Settings). If Airtime is recording, and if the change causes a playout engine restart, the recording will be interrupted.");
|
||||||
if (confirm(confirm_pypo_restart_text)) {
|
if (confirm(confirm_pypo_restart_text)) {
|
||||||
var data = $('#stream_form').serialize();
|
var data = $('#stream_form').serialize();
|
||||||
var url = baseUrl+'/Preference/stream-setting';
|
var url = baseUrl+'Preference/stream-setting';
|
||||||
|
|
||||||
$.post(url, {format:"json", data: data}, function(data){
|
$.post(url, {format:"json", data: data}, function(data){
|
||||||
var json = $.parseJSON(data);
|
var json = $.parseJSON(data);
|
||||||
|
|
|
@ -50,7 +50,7 @@ function autoSelect(event, ui) {
|
||||||
function findHosts(request, callback) {
|
function findHosts(request, callback) {
|
||||||
var search, url;
|
var search, url;
|
||||||
|
|
||||||
url = baseUrl+"/User/get-hosts";
|
url = baseUrl+"User/get-hosts";
|
||||||
search = request.term;
|
search = request.term;
|
||||||
|
|
||||||
var noResult = new Array();
|
var noResult = new Array();
|
||||||
|
@ -410,7 +410,7 @@ function setAddShowEvents() {
|
||||||
.fullCalendar('render');
|
.fullCalendar('render');
|
||||||
|
|
||||||
$("#add-show-form").hide();
|
$("#add-show-form").hide();
|
||||||
$.get(baseUrl+"/Schedule/get-form", {format:"json"}, function(json){
|
$.get(baseUrl+"Schedule/get-form", {format:"json"}, function(json){
|
||||||
$("#add-show-form")
|
$("#add-show-form")
|
||||||
.empty()
|
.empty()
|
||||||
.append(json.form);
|
.append(json.form);
|
||||||
|
@ -456,7 +456,7 @@ function setAddShowEvents() {
|
||||||
applyPlatformOpacityRules: false
|
applyPlatformOpacityRules: false
|
||||||
});
|
});
|
||||||
|
|
||||||
var action = baseUrl+"/Schedule/"+String(addShowButton.attr("data-action"));
|
var action = baseUrl+"Schedule/"+String(addShowButton.attr("data-action"));
|
||||||
|
|
||||||
$.post(action, {format: "json", data: data, hosts: hosts, days: days}, function(json){
|
$.post(action, {format: "json", data: data, hosts: hosts, days: days}, function(json){
|
||||||
//addShowButton.removeClass("disabled");
|
//addShowButton.removeClass("disabled");
|
||||||
|
@ -476,7 +476,7 @@ function setAddShowEvents() {
|
||||||
.fullCalendar('render');
|
.fullCalendar('render');
|
||||||
|
|
||||||
$("#add-show-form").hide();
|
$("#add-show-form").hide();
|
||||||
$.get(baseUrl+"/Schedule/get-form", {format:"json"}, function(json){
|
$.get(baseUrl+"Schedule/get-form", {format:"json"}, function(json){
|
||||||
$("#add-show-form")
|
$("#add-show-form")
|
||||||
.empty()
|
.empty()
|
||||||
.append(json.form);
|
.append(json.form);
|
||||||
|
@ -592,7 +592,7 @@ function setAddShowEvents() {
|
||||||
var loadingIcon = $('#icon-loader-small');
|
var loadingIcon = $('#icon-loader-small');
|
||||||
|
|
||||||
loadingIcon.show();
|
loadingIcon.show();
|
||||||
$.post(baseUrl+"/Schedule/calculate-duration", {startTime: startDateTime, endTime: endDateTime}, function(data){
|
$.post(baseUrl+"Schedule/calculate-duration", {startTime: startDateTime, endTime: endDateTime}, function(data){
|
||||||
$('#add_show_duration').val(JSON.parse(data));
|
$('#add_show_duration').val(JSON.parse(data));
|
||||||
loadingIcon.hide();
|
loadingIcon.hide();
|
||||||
});
|
});
|
||||||
|
|
|
@ -176,7 +176,7 @@ function viewDisplay( view ) {
|
||||||
.fullCalendar( 'gotoDate', date );
|
.fullCalendar( 'gotoDate', date );
|
||||||
|
|
||||||
//save slotMin value to db
|
//save slotMin value to db
|
||||||
var url = baseUrl+'/Schedule/set-time-interval/format/json';
|
var url = baseUrl+'Schedule/set-time-interval/format/json';
|
||||||
$.post(url, {timeInterval: slotMin});
|
$.post(url, {timeInterval: slotMin});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -201,7 +201,7 @@ function viewDisplay( view ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//save view name to db
|
//save view name to db
|
||||||
var url = baseUrl+'/Schedule/set-time-scale/format/json';
|
var url = baseUrl+'Schedule/set-time-scale/format/json';
|
||||||
$.post(url, {timeScale: view.name});
|
$.post(url, {timeScale: view.name});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -293,7 +293,7 @@ function eventAfterRender( event, element, view ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function eventDrop(event, dayDelta, minuteDelta, allDay, revertFunc, jsEvent, ui, view) {
|
function eventDrop(event, dayDelta, minuteDelta, allDay, revertFunc, jsEvent, ui, view) {
|
||||||
var url = baseUrl+'/Schedule/move-show/format/json';
|
var url = baseUrl+'Schedule/move-show/format/json';
|
||||||
|
|
||||||
$.post(url,
|
$.post(url,
|
||||||
{day: dayDelta, min: minuteDelta, showInstanceId: event.id},
|
{day: dayDelta, min: minuteDelta, showInstanceId: event.id},
|
||||||
|
@ -309,7 +309,7 @@ function eventDrop(event, dayDelta, minuteDelta, allDay, revertFunc, jsEvent, ui
|
||||||
}
|
}
|
||||||
|
|
||||||
function eventResize( event, dayDelta, minuteDelta, revertFunc, jsEvent, ui, view ) {
|
function eventResize( event, dayDelta, minuteDelta, revertFunc, jsEvent, ui, view ) {
|
||||||
var url = baseUrl+'/Schedule/resize-show/format/json';
|
var url = baseUrl+'Schedule/resize-show/format/json';
|
||||||
|
|
||||||
$.post(url,
|
$.post(url,
|
||||||
{day: dayDelta, min: minuteDelta, showId: event.showId},
|
{day: dayDelta, min: minuteDelta, showId: event.showId},
|
||||||
|
@ -332,7 +332,7 @@ function getFullCalendarEvents(start, end, callback) {
|
||||||
start_date = makeTimeStamp(start);
|
start_date = makeTimeStamp(start);
|
||||||
end_date = makeTimeStamp(end);
|
end_date = makeTimeStamp(end);
|
||||||
|
|
||||||
url = baseUrl+'/Schedule/event-feed';
|
url = baseUrl+'Schedule/event-feed';
|
||||||
|
|
||||||
var d = new Date();
|
var d = new Date();
|
||||||
|
|
||||||
|
@ -342,7 +342,7 @@ function getFullCalendarEvents(start, end, callback) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkSCUploadStatus(){
|
function checkSCUploadStatus(){
|
||||||
var url = baseUrl+'/Library/get-upload-to-soundcloud-status/format/json';
|
var url = baseUrl+'Library/get-upload-to-soundcloud-status/format/json';
|
||||||
$("span[class*=progress]").each(function(){
|
$("span[class*=progress]").each(function(){
|
||||||
var id = $(this).attr("id");
|
var id = $(this).attr("id");
|
||||||
$.post(url, {format: "json", id: id, type:"show"}, function(json){
|
$.post(url, {format: "json", id: id, type:"show"}, function(json){
|
||||||
|
@ -358,7 +358,7 @@ function checkSCUploadStatus(){
|
||||||
* show icon
|
* show icon
|
||||||
*/
|
*/
|
||||||
function getCurrentShow(){
|
function getCurrentShow(){
|
||||||
var url = baseUrl+'/Schedule/get-current-show/format/json',
|
var url = baseUrl+'Schedule/get-current-show/format/json',
|
||||||
id,
|
id,
|
||||||
$el;
|
$el;
|
||||||
$.post(url, {format: "json"}, function(json) {
|
$.post(url, {format: "json"}, function(json) {
|
||||||
|
@ -436,7 +436,7 @@ function addQtipsToIcons(ele){
|
||||||
content: {
|
content: {
|
||||||
text: $.i18n._("Retreiving data from the server..."),
|
text: $.i18n._("Retreiving data from the server..."),
|
||||||
ajax: {
|
ajax: {
|
||||||
url: baseUrl+"/Library/get-upload-to-soundcloud-status",
|
url: baseUrl+"Library/get-upload-to-soundcloud-status",
|
||||||
type: "post",
|
type: "post",
|
||||||
data: ({format: "json", id : id, type: "show"}),
|
data: ({format: "json", id : id, type: "show"}),
|
||||||
success: function(json, status){
|
success: function(json, status){
|
||||||
|
@ -465,7 +465,7 @@ function addQtipsToIcons(ele){
|
||||||
content: {
|
content: {
|
||||||
text: $.i18n._("Retreiving data from the server..."),
|
text: $.i18n._("Retreiving data from the server..."),
|
||||||
ajax: {
|
ajax: {
|
||||||
url: baseUrl+"/Library/get-upload-to-soundcloud-status",
|
url: baseUrl+"Library/get-upload-to-soundcloud-status",
|
||||||
type: "post",
|
type: "post",
|
||||||
data: ({format: "json", id : id, type: "show"}),
|
data: ({format: "json", id : id, type: "show"}),
|
||||||
success: function(json, status){
|
success: function(json, status){
|
||||||
|
|
|
@ -34,7 +34,7 @@ function checkShowLength(json) {
|
||||||
|
|
||||||
function confirmCancelShow(show_instance_id){
|
function confirmCancelShow(show_instance_id){
|
||||||
if (confirm($.i18n._('Cancel Current Show?'))) {
|
if (confirm($.i18n._('Cancel Current Show?'))) {
|
||||||
var url = baseUrl+"/Schedule/cancel-current-show";
|
var url = baseUrl+"Schedule/cancel-current-show";
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: url,
|
url: url,
|
||||||
data: {format: "json", id: show_instance_id},
|
data: {format: "json", id: show_instance_id},
|
||||||
|
@ -47,7 +47,7 @@ function confirmCancelShow(show_instance_id){
|
||||||
|
|
||||||
function confirmCancelRecordedShow(show_instance_id){
|
function confirmCancelRecordedShow(show_instance_id){
|
||||||
if (confirm($.i18n._('Stop recording current show?'))) {
|
if (confirm($.i18n._('Stop recording current show?'))) {
|
||||||
var url = baseUrl+"/Schedule/cancel-current-show";
|
var url = baseUrl+"Schedule/cancel-current-show";
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: url,
|
url: url,
|
||||||
data: {format: "json", id: show_instance_id},
|
data: {format: "json", id: show_instance_id},
|
||||||
|
@ -60,7 +60,7 @@ function confirmCancelRecordedShow(show_instance_id){
|
||||||
|
|
||||||
function uploadToSoundCloud(show_instance_id){
|
function uploadToSoundCloud(show_instance_id){
|
||||||
|
|
||||||
var url = baseUrl+"/Schedule/upload-to-sound-cloud";
|
var url = baseUrl+"Schedule/upload-to-sound-cloud";
|
||||||
var span = $(window.triggerElement).find(".recording");
|
var span = $(window.triggerElement).find(".recording");
|
||||||
|
|
||||||
$.post(url,
|
$.post(url,
|
||||||
|
@ -80,7 +80,7 @@ function uploadToSoundCloud(show_instance_id){
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkCalendarSCUploadStatus(){
|
function checkCalendarSCUploadStatus(){
|
||||||
var url = baseUrl+'/Library/get-upload-to-soundcloud-status',
|
var url = baseUrl+'Library/get-upload-to-soundcloud-status',
|
||||||
span,
|
span,
|
||||||
id;
|
id;
|
||||||
|
|
||||||
|
@ -328,7 +328,7 @@ function alertShowErrorAndReload(){
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$.ajax({ url: baseUrl+"/Api/calendar-init/format/json", dataType:"json", success:createFullCalendar
|
$.ajax({ url: baseUrl+"Api/calendar-init/format/json", dataType:"json", success:createFullCalendar
|
||||||
, error:function(jqXHR, textStatus, errorThrown){}});
|
, error:function(jqXHR, textStatus, errorThrown){}});
|
||||||
|
|
||||||
setInterval(checkCalendarSCUploadStatus, 5000);
|
setInterval(checkCalendarSCUploadStatus, 5000);
|
||||||
|
@ -498,7 +498,7 @@ $(document).ready(function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: baseUrl+"/schedule/make-context-menu",
|
url: baseUrl+"schedule/make-context-menu",
|
||||||
type: "GET",
|
type: "GET",
|
||||||
data: {id : data.id, format: "json"},
|
data: {id : data.id, format: "json"},
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
|
|
|
@ -42,7 +42,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
mod.updateCalendarStatusIcon = function(json) {
|
mod.updateCalendarStatusIcon = function(json) {
|
||||||
|
|
||||||
|
|
||||||
if (window.location.pathname.toLowerCase() != baseUrl+"/schedule") {
|
if (window.location.pathname.toLowerCase() != baseUrl+"schedule") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -288,7 +288,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
|
|
||||||
mod.disableUI();
|
mod.disableUI();
|
||||||
|
|
||||||
$.post(baseUrl+"/showbuilder/schedule-add",
|
$.post(baseUrl+"showbuilder/schedule-add",
|
||||||
{"format": "json", "mediaIds": aMediaIds, "schedIds": aSchedIds},
|
{"format": "json", "mediaIds": aMediaIds, "schedIds": aSchedIds},
|
||||||
mod.fnItemCallback
|
mod.fnItemCallback
|
||||||
);
|
);
|
||||||
|
@ -298,7 +298,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
|
|
||||||
mod.disableUI();
|
mod.disableUI();
|
||||||
|
|
||||||
$.post(baseUrl+"/showbuilder/schedule-move",
|
$.post(baseUrl+"showbuilder/schedule-move",
|
||||||
{"format": "json", "selectedItem": aSelect, "afterItem": aAfter},
|
{"format": "json", "selectedItem": aSelect, "afterItem": aAfter},
|
||||||
mod.fnItemCallback
|
mod.fnItemCallback
|
||||||
);
|
);
|
||||||
|
@ -308,7 +308,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
|
|
||||||
mod.disableUI();
|
mod.disableUI();
|
||||||
if (confirm($.i18n._("Delete selected item(s)?"))) {
|
if (confirm($.i18n._("Delete selected item(s)?"))) {
|
||||||
$.post( baseUrl+"/showbuilder/schedule-remove",
|
$.post( baseUrl+"showbuilder/schedule-remove",
|
||||||
{"items": aItems, "format": "json"},
|
{"items": aItems, "format": "json"},
|
||||||
mod.fnItemCallback
|
mod.fnItemCallback
|
||||||
);
|
);
|
||||||
|
@ -417,7 +417,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
localStorage.setItem('datatables-timeline', JSON.stringify(oData));
|
localStorage.setItem('datatables-timeline', JSON.stringify(oData));
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: baseUrl+"/usersettings/set-timeline-datatable",
|
url: baseUrl+"usersettings/set-timeline-datatable",
|
||||||
type: "POST",
|
type: "POST",
|
||||||
data: {settings : oData, format: "json"},
|
data: {settings : oData, format: "json"},
|
||||||
dataType: "json"
|
dataType: "json"
|
||||||
|
@ -579,7 +579,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
if (!isAudioSupported(aData.mime)) {
|
if (!isAudioSupported(aData.mime)) {
|
||||||
$image.html('<span class="ui-icon ui-icon-locked"></span>');
|
$image.html('<span class="ui-icon ui-icon-locked"></span>');
|
||||||
} else {
|
} else {
|
||||||
$image.html('<img title="'+$.i18n._("Track preview")+'" src="'+baseUrl+'/css/images/icon_audioclip.png"></img>')
|
$image.html('<img title="'+$.i18n._("Track preview")+'" src="'+baseUrl+'css/images/icon_audioclip.png"></img>')
|
||||||
.click(function() {
|
.click(function() {
|
||||||
open_show_preview(aData.instance, aData.pos);
|
open_show_preview(aData.instance, aData.pos);
|
||||||
return false;
|
return false;
|
||||||
|
@ -817,7 +817,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
|
|
||||||
"sAjaxDataProp": "schedule",
|
"sAjaxDataProp": "schedule",
|
||||||
"oLanguage": datatables_dict,
|
"oLanguage": datatables_dict,
|
||||||
"sAjaxSource": baseUrl+"/showbuilder/builder-feed"
|
"sAjaxSource": baseUrl+"showbuilder/builder-feed"
|
||||||
});
|
});
|
||||||
|
|
||||||
$sbTable.find("tbody").on("click", "input:checkbox", function(ev) {
|
$sbTable.find("tbody").on("click", "input:checkbox", function(ev) {
|
||||||
|
@ -1061,7 +1061,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
}
|
}
|
||||||
|
|
||||||
if (confirm(msg)) {
|
if (confirm(msg)) {
|
||||||
var url = baseUrl+"/Schedule/cancel-current-show";
|
var url = baseUrl+"Schedule/cancel-current-show";
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: url,
|
url: url,
|
||||||
data: {format: "json", id: data.instance},
|
data: {format: "json", id: data.instance},
|
||||||
|
@ -1243,7 +1243,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
}
|
}
|
||||||
|
|
||||||
request = $.ajax({
|
request = $.ajax({
|
||||||
url: baseUrl+"/showbuilder/context-menu",
|
url: baseUrl+"showbuilder/context-menu",
|
||||||
type: "GET",
|
type: "GET",
|
||||||
data: {id : data.id, format: "json"},
|
data: {id : data.id, format: "json"},
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
|
|
|
@ -171,7 +171,7 @@ AIRTIME = (function(AIRTIME) {
|
||||||
schedTable.fnDraw();
|
schedTable.fnDraw();
|
||||||
|
|
||||||
$.ajax( {
|
$.ajax( {
|
||||||
url : baseUrl+"/usersettings/set-now-playing-screen-settings",
|
url : baseUrl+"usersettings/set-now-playing-screen-settings",
|
||||||
type : "POST",
|
type : "POST",
|
||||||
data : {
|
data : {
|
||||||
settings : {
|
settings : {
|
||||||
|
@ -197,7 +197,7 @@ AIRTIME = (function(AIRTIME) {
|
||||||
schedTable.fnDraw();
|
schedTable.fnDraw();
|
||||||
|
|
||||||
$.ajax( {
|
$.ajax( {
|
||||||
url : baseUrl+"/usersettings/set-now-playing-screen-settings",
|
url : baseUrl+"usersettings/set-now-playing-screen-settings",
|
||||||
type : "POST",
|
type : "POST",
|
||||||
data : {
|
data : {
|
||||||
settings : {
|
settings : {
|
||||||
|
@ -271,7 +271,7 @@ AIRTIME = (function(AIRTIME) {
|
||||||
$.ajax( {
|
$.ajax( {
|
||||||
"dataType" : "json",
|
"dataType" : "json",
|
||||||
"type" : "GET",
|
"type" : "GET",
|
||||||
"url" : baseUrl+"/showbuilder/check-builder-feed",
|
"url" : baseUrl+"showbuilder/check-builder-feed",
|
||||||
"data" : data,
|
"data" : data,
|
||||||
"success" : function(json) {
|
"success" : function(json) {
|
||||||
if (json.update === true) {
|
if (json.update === true) {
|
||||||
|
|
|
@ -69,7 +69,7 @@ function success(data, textStatus, jqXHR){
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateStatus(getDiskInfo){
|
function updateStatus(getDiskInfo){
|
||||||
$.getJSON( baseUrl+"/api/status/format/json/diskinfo/"+getDiskInfo, null, success);
|
$.getJSON( baseUrl+"api/status/format/json/diskinfo/"+getDiskInfo, null, success);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,13 +26,13 @@ function populateForm(entries){
|
||||||
}
|
}
|
||||||
|
|
||||||
function rowClickCallback(row_id){
|
function rowClickCallback(row_id){
|
||||||
$.ajax({ url: baseUrl+'/User/get-user-data/id/'+ row_id +'/format/json', dataType:"json", success:function(data){
|
$.ajax({ url: baseUrl+'User/get-user-data/id/'+ row_id +'/format/json', dataType:"json", success:function(data){
|
||||||
populateForm(data.entries);
|
populateForm(data.entries);
|
||||||
}});
|
}});
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeUserCallback(row_id, nRow){
|
function removeUserCallback(row_id, nRow){
|
||||||
$.ajax({ url: baseUrl+'/User/remove-user/id/'+ row_id +'/format/json', dataType:"text", success:function(data){
|
$.ajax({ url: baseUrl+'User/remove-user/id/'+ row_id +'/format/json', dataType:"text", success:function(data){
|
||||||
var o = $('#users_datatable').dataTable().fnDeleteRow(nRow);
|
var o = $('#users_datatable').dataTable().fnDeleteRow(nRow);
|
||||||
}});
|
}});
|
||||||
}
|
}
|
||||||
|
@ -66,7 +66,7 @@ function populateUserTable() {
|
||||||
$('#users_datatable').dataTable( {
|
$('#users_datatable').dataTable( {
|
||||||
"bProcessing": true,
|
"bProcessing": true,
|
||||||
"bServerSide": true,
|
"bServerSide": true,
|
||||||
"sAjaxSource": baseUrl+"/User/get-user-data-table-info/format/json",
|
"sAjaxSource": baseUrl+"User/get-user-data-table-info/format/json",
|
||||||
"fnServerData": function ( sSource, aoData, fnCallback ) {
|
"fnServerData": function ( sSource, aoData, fnCallback ) {
|
||||||
$.ajax( {
|
$.ajax( {
|
||||||
"dataType": 'json',
|
"dataType": 'json',
|
||||||
|
@ -187,7 +187,7 @@ $(document).ready(function() {
|
||||||
|
|
||||||
$('#save_user').live('click', function(){
|
$('#save_user').live('click', function(){
|
||||||
var data = $('#user_form').serialize();
|
var data = $('#user_form').serialize();
|
||||||
var url = baseUrl+'/User/add-user';
|
var url = baseUrl+'User/add-user';
|
||||||
|
|
||||||
$.post(url, {format: "json", data: data}, function(data){
|
$.post(url, {format: "json", data: data}, function(data){
|
||||||
var json = $.parseJSON(data);
|
var json = $.parseJSON(data);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue