Renamed a podcast.js function for clarity

This commit is contained in:
Albert Santoni 2015-09-21 17:59:31 -04:00
parent f9ace20075
commit a21c4612c9
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@
</button> </button>
</div> </div>
<div class='btn-group pull-right'> <div class='btn-group pull-right'>
<button ng-click="put()" class="btn" title='<?php echo _("Save podcast") ?>' type="button"> <button ng-click="savePodcast()" class="btn" title='<?php echo _("Save podcast") ?>' type="button">
<?php echo _("Save") ?> <?php echo _("Save") ?>
</button> </button>
</div> </div>

View file

@ -6,7 +6,7 @@ var podcastApp = angular.module('podcast', [])
console.log(podcast); console.log(podcast);
AIRTIME.tabs.setActiveTabName($scope.podcast.title); AIRTIME.tabs.setActiveTabName($scope.podcast.title);
$scope.put = function() { $scope.savePodcast = function() {
$http.put(endpoint + $scope.podcast.id, { csrf_token: jQuery("#csrf").val(), podcast: $scope.podcast }) $http.put(endpoint + $scope.podcast.id, { csrf_token: jQuery("#csrf").val(), podcast: $scope.podcast })
.success(function() { .success(function() {
// TODO // TODO