Merge branch 'saas-dev-publishing' into saas-dev-publishing-station-podcast
This commit is contained in:
commit
7569e936ce
|
@ -45,12 +45,12 @@
|
||||||
|
|
||||||
<div class="btn-toolbar clearfix">
|
<div class="btn-toolbar clearfix">
|
||||||
<div class="btn-group pull-right">
|
<div class="btn-group pull-right">
|
||||||
<button ng-click="discard()" class="btn" type="button" name="cancel">
|
<button ng-click="discard()" class="btn" type="button" name="close">
|
||||||
<?php echo _("Close") ?>
|
<?php echo _("Close") ?>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class='btn-group pull-right'>
|
<div class='btn-group pull-right'>
|
||||||
<button ng-click="publish()" class="btn" title='<?php echo _("Publish") ?>' type="button">
|
<button disabled="disabled" ng-click="publish()" class="btn publish-btn" title='<?php echo _("Publish") ?>' type="button">
|
||||||
<?php echo _("Publish") ?>
|
<?php echo _("Publish") ?>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -19,6 +19,16 @@ var AIRTIME = (function (AIRTIME) {
|
||||||
$scope.publishData = {};
|
$scope.publishData = {};
|
||||||
var sourceInterval;
|
var sourceInterval;
|
||||||
|
|
||||||
|
tab.contents.on("click", "input[type='checkbox']", function () {
|
||||||
|
var noSourcesChecked = true;
|
||||||
|
$.each(tab.contents.find("input[type='checkbox']"), function () {
|
||||||
|
if ($(this).is(":checked")) {
|
||||||
|
noSourcesChecked = false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
tab.contents.find(".publish-btn").prop("disabled", noSourcesChecked);
|
||||||
|
});
|
||||||
|
|
||||||
function fetchSourceData() {
|
function fetchSourceData() {
|
||||||
var csrfToken = jQuery("#csrf").val();
|
var csrfToken = jQuery("#csrf").val();
|
||||||
$http.get(endpoint + mediaId, {csrf_token: csrfToken})
|
$http.get(endpoint + mediaId, {csrf_token: csrfToken})
|
||||||
|
|
Loading…
Reference in New Issue