From 5ce8722bbe69256b3578beeb5d83fe75d5905665 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 19 Apr 2010 13:49:53 +0200 Subject: [PATCH] Use input fields for urls. --- kronolith/js/kronolith.js | 8 ++------ kronolith/templates/chunks/calendar.php | 6 +++--- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index 4c809e2d8..712b26a6a 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -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); diff --git a/kronolith/templates/chunks/calendar.php b/kronolith/templates/chunks/calendar.php index e5547a2df..ef601c668 100644 --- a/kronolith/templates/chunks/calendar.php +++ b/kronolith/templates/chunks/calendar.php @@ -45,12 +45,12 @@ $file_upload = $GLOBALS['browser']->allowFileUploads();

-
+

-
+
@@ -137,7 +137,7 @@ $file_upload = $GLOBALS['browser']->allowFileUploads();
-- 2.11.0