Skip to content
Snippets Groups Projects
ticket-view.inc.php 48.7 KiB
Newer Older
  • Learn to ignore specific revisions
  •         var cid = <?php echo $ticket->getOwnerId(); ?>;
            var url = 'ajax.php/'+$(this).attr('href').substr(1);
            $.userLookup(url, function(user) {
                if(cid!=user.id
                        && $('.dialog#confirm-action #changeuser-confirm').length) {
    
                    $('#newuser').html(user.name +' &lt;'+user.email+'&gt;');
    
                    $('.dialog#confirm-action #action').val('changeuser');
                    $('#confirm-form').append('<input type=hidden name=user_id value='+user.id+' />');
                    $('#overlay').show();
                    $('.dialog#confirm-action .confirm-action').hide();
                    $('.dialog#confirm-action p#changeuser-confirm')
                    .show()
                    .parent('div').show().trigger('click');
                }
            });
        });
    });
    </script>