SAAS-1184 - bugfixes and polish

This commit is contained in:
Duncan Sommerville 2015-11-10 15:10:36 -05:00
parent f352b61707
commit bb7f8c1ed3
10 changed files with 105 additions and 24 deletions

View file

@ -59,7 +59,7 @@ var AIRTIME = (function (AIRTIME) {
}
});
if (Object.keys(data).length > 0) {
if (data && Object.keys(data).length > 0) {
$http.put(endpoint + mediaId + '/publish', {csrf_token: jQuery("#csrf").val(), sources: data})
.success(function () {
init();