<div id="edit_ticket_toolbar"></div>
<script type="text/javascript">
jQuery('#edit_ticket_toolbar').closest('.widget').removeClass('widget'); // Hide widget from sidebar
jQuery(document).on("ticket_view_loaded", function(event, data) {
var obj_target = jQuery('#watcher_toggle').parent();
jQuery('<li class="ticket-btns"><a class="btn info" id="edit_ticket_btn_toolbar" title="Client Details" href="http://www.docs2data.co.za">Client Details</a></li>').insertBefore(obj_target);
});
</script>