Skip to content
Snippets Groups Projects
Commit 6b900453 authored by Peter Rotich's avatar Peter Rotich
Browse files

Require user to create a ticket

parent 8a83f563
No related branches found
No related tags found
No related merge requests found
......@@ -391,6 +391,14 @@ $(document).ready(function(){
});
$(document).on('click', 'a#new-ticket', function(e) {
e.preventDefault();
var $elem = $(this);
$.userLookup('ajax.php/users/lookup/form', function (user) {
window.location.href = $elem.attr('href')+'&uid='+user.id;
});
});
$.userLookup = function (url, callback) {
$('.dialog#popup .body').load(url, function () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment