Localization and verbiage improvements for adding podcasts
This commit is contained in:
parent
01618b55af
commit
3e97ee5d62
|
@ -2,11 +2,11 @@
|
||||||
<form name="podcast_url_form">
|
<form name="podcast_url_form">
|
||||||
<?php echo $this->csrf ?>
|
<?php echo $this->csrf ?>
|
||||||
<label>
|
<label>
|
||||||
Podcast URL
|
<?php echo _("Podcast URL"); ?>
|
||||||
<input type="text" name="url" />
|
<input type="text" name="url" />
|
||||||
</label>
|
</label>
|
||||||
<button class="btn btn-new right-floated" type="button" onclick="AIRTIME.podcast.addPodcast()">
|
<button class="btn btn-new right-floated" type="button" onclick="AIRTIME.podcast.addPodcast()">
|
||||||
Add
|
<?php echo _("Subscribe"); ?>
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
|
@ -1276,6 +1276,7 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
var ajaxSourceURL = baseUrl+"rest/podcast";
|
var ajaxSourceURL = baseUrl+"rest/podcast";
|
||||||
|
|
||||||
var podcastToolbarButtons = AIRTIME.widgets.Table.getStandardToolbarButtons();
|
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) {
|
podcastToolbarButtons[AIRTIME.widgets.Table.TOOLBAR_BUTTON_ROLES.NEW].eventHandlers.click = function(e) {
|
||||||
AIRTIME.podcast.createUrlDialog();
|
AIRTIME.podcast.createUrlDialog();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue