Files
dss.web/client/app/dialogs/sharing/shareMix.controller.js
Fergal Moran d2c529bafe Screw you git!
2015-12-01 19:50:20 +00:00

19 lines
710 B
JavaScript

angular.module('dssWebApp')
.controller('ShareMixCtrl', function ($scope, $modalInstance, $http, SERVER_CONFIG, data) {
var embedLink = SERVER_CONFIG.apiUrl + '/_embed/mix/' + data.mix.slug;
$scope.vm = {
embedLink: embedLink,
embedIframe:
'<iframe width="100%" height="166" scrolling="no" frameborder="no" ' +
'src="' + embedLink + '">' +
'</iframe>'
};
$scope.doClose = function (result) {
$modalInstance.close(result);
};
$('.nav-tabs').click(function (e) {
e.preventDefault()
$(this).tab('show')
});
$('#embed-tab').tab();
});