SAAS-1234 - bind station feed url to angular data model

This commit is contained in:
Duncan Sommerville 2015-11-19 17:09:49 -05:00
parent c328515f4b
commit 641cfb9432
5 changed files with 11 additions and 28 deletions

View file

@ -107,7 +107,7 @@ var AIRTIME = (function (AIRTIME) {
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
data: { stationPodcastPrivacy: $("#podcast-settings").find("input:checked").val() }
}).success(function (data) {
$("#preferences_podcast-stationPodcastFeedUrl").val(data.url);
jQuery.extend($scope.podcast, data);
$(".success").text($.i18n._("Podcast settings saved")).slideDown("fast");
setTimeout(function () {
$(".success").slideUp("fast");
@ -138,13 +138,6 @@ var AIRTIME = (function (AIRTIME) {
});
};
/**
* Open metadata editor tabs for each of the selected episodes.
*/
StationPodcastController.prototype.openSelectedTabEditors = function () {
mod.editSelectedEpisodes(this.episodeTable.getSelectedRows());
};
/**
* Initialize the Station podcast episode table.
*