From a2d35e30236c5d233516fa8b77c219665f97e77c Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Mon, 7 Dec 2015 15:40:05 -0800 Subject: custom fields edit popup, RT#34237 --- rt/share/html/Search/Schedule.html | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'rt/share/html/Search/Schedule.html') diff --git a/rt/share/html/Search/Schedule.html b/rt/share/html/Search/Schedule.html index f021df702..96670cdb2 100644 --- a/rt/share/html/Search/Schedule.html +++ b/rt/share/html/Search/Schedule.html @@ -175,7 +175,18 @@ % #remove their droppable $('#'+n_td_id).droppable('destroy'); if ( d == 0 ) { - $('#'+n_td_id).html(label + ' view' ); + var title = + label + + ' view ' + + <% include('/elements/popup_link.html', + action=>$RT::WebPath.'/Ticket/ModifyCustomFieldsPopup.html?id=__MAGIC_TICKET_ID__', + label =>'edit', + actionlabel => 'Edit appointment', + height => 436, # better: A + B * (num_custom_fields) + ) |n,js_string + %>; + title = title.replace( /__MAGIC_TICKET_ID__/, ticketid ); + $('#'+n_td_id).html( title ); % #(and make the top draggable, so we could do it all over again) $('#'+n_td_id).draggable({ containment: '.titlebox-content', -- cgit v1.2.1