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

oops: use text instead of html

parent cbc003fd
No related branches found
No related tags found
No related merge requests found
......@@ -32,8 +32,8 @@ if ($_POST)
$.userLookup('ajax.php/tickets/<?php echo $ticket->getId(); ?>/change-user',
function(user) {
$('input#user_id').val(user.id);
$('#client-name').html(user.name);
$('#client-email').html('&lt;'+user.email+'&gt;');
$('#client-name').text(user.name);
$('#client-email').text('<'+user.email+'>');
});
return false;
"><i class="icon-edit"></i> Change</a>
......
......@@ -34,7 +34,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
$.userLookup('ajax.php/users/select/'+$('input#uid').val(),
function(user) {
$('input#uid').val(user.id);
$('#client-name').html(user.name);
$('#client-name').text(user.name);
$('#client-email').text('<'+user.email+'>');
});
return false;
......
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