Use input fields for urls.
authorJan Schneider <jan@horde.org>
Mon, 19 Apr 2010 11:49:53 +0000 (13:49 +0200)
committerJan Schneider <jan@horde.org>
Mon, 19 Apr 2010 11:49:53 +0000 (13:49 +0200)
kronolith/js/kronolith.js
kronolith/templates/chunks/calendar.php

index 4c809e2..712b26a 100644 (file)
@@ -2533,9 +2533,7 @@ KronolithCore = {
                 } 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);
@@ -2544,9 +2542,7 @@ KronolithCore = {
                     ? 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);
index e5547a2..ef601c6 100644 (file)
@@ -45,12 +45,12 @@ $file_upload = $GLOBALS['browser']->allowFileUploads();
   <div>
     <label><?php echo _("Subscription URL") ?></label>
     <span class="kronolithSeparator">&mdash; <?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">&mdash; <?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>
 
@@ -137,7 +137,7 @@ $file_upload = $GLOBALS['browser']->allowFileUploads();
 <div id="kronolithCalendartasklistsUrls" style="display:none">
   <label><?php echo _("Subscription URL") ?></label>
   <span class="kronolithSeparator">&mdash; <?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">