diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-12-07 15:40:05 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-12-07 15:40:05 -0800 |
commit | a2d35e30236c5d233516fa8b77c219665f97e77c (patch) | |
tree | e04366c55227287ce10817ec325e862b49106138 /rt/share/html/Search | |
parent | 7c08f01e1a05fe4bab903bd44277b5c3784aebc5 (diff) |
custom fields edit popup, RT#34237
Diffstat (limited to 'rt/share/html/Search')
-rw-r--r-- | rt/share/html/Search/Schedule.html | 13 |
1 files changed, 12 insertions, 1 deletions
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 + ' <A HREF="<%$RT::WebPath%>/Ticket/Display.html?id=' + ticketid + '">view</A>' ); + var title = + label + + ' <A HREF="<%$RT::WebPath%>/Ticket/Display.html?id=' + ticketid + '" target="_blank">view</A> ' + + <% 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', |