} else {
$('kronolithCalendar' + type + 'LinkImport').up('li').hide();
}
- $('kronolithCalendar' + type + 'UrlFeed')
- .writeAttribute('href', info.feed)
- .update(info.feed.escapeHTML());
+ $('kronolithCalendar' + type + 'UrlFeed').setValue(info.feed);
// Fall through.
case 'tasklists':
$('kronolithCalendar' + type + 'Description').setValue(info.desc);
? Kronolith.conf.URI_CALENDAR_EXPORT + '=' + calendar
: Kronolith.conf.tasks.URI_TASKLIST_EXPORT + '=' + calendar.substring(6);
$('kronolithCalendar' + type + 'Urls').show();
- $('kronolithCalendar' + type + 'UrlSub')
- .writeAttribute('href', info.sub)
- .update(info.sub.escapeHTML());
+ $('kronolithCalendar' + type + 'UrlSub').setValue(info.sub);
break;
case 'remote':
$('kronolithCalendarremoteUrl').setValue(calendar);
<div>
<label><?php echo _("Subscription URL") ?></label>
<span class="kronolithSeparator">— <?php echo _("Subscribe from another calendar program") ?></span><br />
- <a id="kronolithCalendarinternalUrlSub" href="#" target="_blank"></a><br />
+ <input type="text" id="kronolithCalendarinternalUrlSub" class="kronolithLongField" onfocus="this.select()" /><br />
</div>
<div>
<label><?php echo _("Feed URL") ?></label>
<span class="kronolithSeparator">— <?php echo _("Subscribe from a feed reader") ?></span><br />
- <a id="kronolithCalendarinternalUrlFeed" href="#" target="_blank"></a><br />
+ <input type="text" id="kronolithCalendarinternalUrlFeed" class="kronolithLongField" onfocus="this.select()" /><br />
</div>
</div>
<div id="kronolithCalendartasklistsUrls" style="display:none">
<label><?php echo _("Subscription URL") ?></label>
<span class="kronolithSeparator">— <?php echo _("Subscribe from another program") ?></span><br />
- <a id="kronolithCalendartasklistsUrlSub" href="#" target="_blank"></a><br />
+ <input type="text" id="kronolithCalendartasklistsUrlSub" class="kronolithLongField" onfocus="this.select()"><br />
</div>
<div class="tabset">