Localization and verbiage improvements for adding podcasts

This commit is contained in:
Albert Santoni 2015-10-22 14:39:12 -04:00
parent 01618b55af
commit 3e97ee5d62
2 changed files with 3 additions and 2 deletions

View File

@ -2,11 +2,11 @@
<form name="podcast_url_form">
<?php echo $this->csrf ?>
<label>
Podcast URL
<?php echo _("Podcast URL"); ?>
<input type="text" name="url" />
</label>
<button class="btn btn-new right-floated" type="button" onclick="AIRTIME.podcast.addPodcast()">
Add
<?php echo _("Subscribe"); ?>
</button>
</form>
</div>

View File

@ -1276,6 +1276,7 @@ var AIRTIME = (function(AIRTIME) {
var ajaxSourceURL = baseUrl+"rest/podcast";
var podcastToolbarButtons = AIRTIME.widgets.Table.getStandardToolbarButtons();
podcastToolbarButtons[AIRTIME.widgets.Table.TOOLBAR_BUTTON_ROLES.NEW].title = $.i18n._('Add'); //"New" Podcast is misleading
podcastToolbarButtons[AIRTIME.widgets.Table.TOOLBAR_BUTTON_ROLES.NEW].eventHandlers.click = function(e) {
AIRTIME.podcast.createUrlDialog();
};