diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-12-04 19:45:01 -0800 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2016-02-03 17:48:42 -0600 |
commit | 9c11fac3f8d3f31306de62185f623b7afb6e94ee (patch) | |
tree | dcf735d56e8f3e3e7c3b3231d4e33f0496aee988 | |
parent | 8ed14c4f01f47c35a4a21e2daa6e642d51a7270c (diff) |
link to ticket, RT#34237
-rw-r--r-- | httemplate/misc/xmlhttp-ticket-update.html | 2 | ||||
-rw-r--r-- | rt/share/html/Elements/CalendarSlotSchedule | 4 | ||||
-rw-r--r-- | rt/share/html/Search/Schedule.html | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/httemplate/misc/xmlhttp-ticket-update.html b/httemplate/misc/xmlhttp-ticket-update.html index 46ed5bbad..bd58b95c6 100644 --- a/httemplate/misc/xmlhttp-ticket-update.html +++ b/httemplate/misc/xmlhttp-ticket-update.html @@ -50,7 +50,7 @@ if ( $ticket ) { 'sched_label' => FS::sched_avail::pretty_time($sh*60+$sm). '-'. FS::sched_avail::pretty_time($eh*60+$em). ': '. - $cust_main[0]->_FreesideURILabel, + encode_entities($cust_main[0]->_FreesideURILabel), }; } else { $return = { 'error' => $smsg }; diff --git a/rt/share/html/Elements/CalendarSlotSchedule b/rt/share/html/Elements/CalendarSlotSchedule index bf66dcae5..538a41a94 100644 --- a/rt/share/html/Elements/CalendarSlotSchedule +++ b/rt/share/html/Elements/CalendarSlotSchedule @@ -19,6 +19,7 @@ % % my $bgcolor = '666666;border-color:#555555'; % my $content = ''; +% my $link = ''; % my $selectable = 0; % my $draggable_ticketid = 0; % my $draggable_length = 0; @@ -59,6 +60,7 @@ % FS::sched_avail::pretty_time($due). % ': '. $cust_main[0]->_FreesideURILabel; % #'install for custname XX miles away'; #XXX placeholder/more +% $link = qq( <A HREF="$RT::WebPath/Ticket/Display.html?id=$id">view</A>); % $draggable_ticketid = $id; % $draggable_length = $due - $starts; % @@ -126,7 +128,7 @@ % } % % } - ><% $content |h %></td> + ><% $content |h %><% $link |n %></td> <SCRIPT TYPE="text/javascript"> $('#<% $td_id %>').data('username', "<% $username %>"); diff --git a/rt/share/html/Search/Schedule.html b/rt/share/html/Search/Schedule.html index c51832cad..03cd880d0 100644 --- a/rt/share/html/Search/Schedule.html +++ b/rt/share/html/Search/Schedule.html @@ -175,7 +175,7 @@ % #remove their droppable $('#'+n_td_id).droppable('destroy'); if ( d == 0 ) { - $('#'+n_td_id).text(label); + $('#'+n_td_id).html(label + ' <A HREF="<%$RT::WebPath%>/Ticket/Display.html?id=' + ticketid + '">view</A>' ); % #(and make the top draggable, so we could do it all over again) $('#'+n_td_id).draggable({ containment: '.titlebox-content', |