diff --git a/airtime_mvc/application/common/HTTPHelper.php b/airtime_mvc/application/common/HTTPHelper.php index c702da480..a27f81075 100644 --- a/airtime_mvc/application/common/HTTPHelper.php +++ b/airtime_mvc/application/common/HTTPHelper.php @@ -18,7 +18,14 @@ class Application_Common_HTTPHelper ); } - public static function getStationUrl() + /** + * Construct the base station URL + * + * @param boolean $secured whether or not to use HTTPS + * + * @return string the station URL + */ + public static function getStationUrl($secured = true) { $CC_CONFIG = Config::getConfig(); $baseUrl = $CC_CONFIG['baseUrl']; @@ -32,7 +39,7 @@ class Application_Common_HTTPHelper } $scheme = "http"; - if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') { + if ($secured && !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') { $scheme = "https"; $basePort = "443"; //Airtime Pro compatibility hack } diff --git a/airtime_mvc/application/forms/SoundCloudPreferences.php b/airtime_mvc/application/forms/SoundCloudPreferences.php index d6478fbf0..987244ced 100644 --- a/airtime_mvc/application/forms/SoundCloudPreferences.php +++ b/airtime_mvc/application/forms/SoundCloudPreferences.php @@ -40,7 +40,6 @@ class Application_Form_SoundcloudPreferences extends Zend_Form_SubForm $this->addElement('image', 'SoundCloudConnect', array( 'src' => 'http://connect.soundcloud.com/2/btn-connect-sc-l.png', - 'target' => '_blank', 'decorators' => array( 'ViewHelper' ) @@ -48,7 +47,6 @@ class Application_Form_SoundcloudPreferences extends Zend_Form_SubForm $this->addElement('image', 'SoundCloudDisconnect', array( 'src' => 'http://connect.soundcloud.com/2/btn-disconnect-l.png', - 'target' => '_blank', 'decorators' => array( 'ViewHelper' ) diff --git a/airtime_mvc/application/layouts/scripts/layout.phtml b/airtime_mvc/application/layouts/scripts/layout.phtml index 5c20ca575..e4033667e 100644 --- a/airtime_mvc/application/layouts/scripts/layout.phtml +++ b/airtime_mvc/application/layouts/scripts/layout.phtml @@ -66,7 +66,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= - + @@ -74,7 +74,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= diff --git a/airtime_mvc/public/css/station_podcast.css b/airtime_mvc/public/css/station_podcast.css index a8b66924e..54b828d5d 100644 --- a/airtime_mvc/public/css/station_podcast.css +++ b/airtime_mvc/public/css/station_podcast.css @@ -13,6 +13,10 @@ margin: 0; } +#station_podcast .inner_editor_title button { + margin: 0 0 0 4px; +} + #station_podcast .collapsible-header { margin: 0 0 20px; top: 20px; diff --git a/airtime_mvc/public/js/airtime/library/library.js b/airtime_mvc/public/js/airtime/library/library.js index b2bc13168..e30b45295 100644 --- a/airtime_mvc/public/js/airtime/library/library.js +++ b/airtime_mvc/public/js/airtime/library/library.js @@ -1301,8 +1301,8 @@ var AIRTIME = (function(AIRTIME) { } var dt = $datatables[table], wrapper = $(dt).closest(".dataTables_wrapper"); - if (oTable && typeof oTable.fnClearTable === 'function') { - oTable.fnClearTable(false); + if (dt && typeof dt.fnClearTable === 'function') { + dt.fnClearTable(false); } // Don't redraw if we're switching to another hash for the library table $.when(redraw ? dt.fnDraw() : function () {}).done(function () { @@ -1386,6 +1386,7 @@ var AIRTIME = (function(AIRTIME) { }); var openPodcastEpisodeTable = function (podcast) { + $("#library_filter").append(" - " + podcast.title); mod.podcastEpisodeTableWidget.reload(podcast.id); mod.podcastTableWidget.clearSelection(); mod.setCurrentTable(mod.DataTableTypeEnum.PODCAST_EPISODES); @@ -1427,7 +1428,6 @@ var AIRTIME = (function(AIRTIME) { // in the left-hand pane. mod.podcastTableWidget.assignDblClickHandler(function () { var podcast = mod.podcastDataTable.fnGetData(this); - $("#library_filter").append(" - " + $(this).find(".library_title").text()); openPodcastEpisodeTable(podcast); }); diff --git a/airtime_mvc/public/js/airtime/library/podcast.js b/airtime_mvc/public/js/airtime/library/podcast.js index 03c4b244a..1a01e777c 100644 --- a/airtime_mvc/public/js/airtime/library/podcast.js +++ b/airtime_mvc/public/js/airtime/library/podcast.js @@ -516,6 +516,8 @@ var AIRTIME = (function (AIRTIME) { remainingDiskSpace -= this.enclosure.length; }); + + dt.clearSelection(); }; /**