Hi again,
When a staff search for ticket in simple-mode by typing some characters in query textbox, the pop-up list box will appear, and when this staff click on one of the items in the list, the ticket list beneath the form does not adjust to the item that has been selected by this staff. :(
So I made a MOD to solve this problem. After implementing this MOD, then each time a staff click on the item in the list-box that appear while client typing some characters, then the ticket list will automatically be adjusted or filtered to the ticket record belongs to the information selected by this staff.
Please note that this will be in effect only for basic-search, and not for advanced search.
Open \include\staff\tickets.inc.php, and FIND:
SEARCH FORM START
<div id='basic' style="display:<?=$basic_display?'block':'none'?>">
<form action="tickets.php" method="get">
REPLACE WITH:
SEARCH FORM START
<div id='basic' style="display:<?php echo $basic_display?'block':'none'?>">
<form name="frmSearchSimple" id="frmSearchSimple" action="tickets.php" method="get">
FIND:
callback: function (obj) { document.getElementById('query').value = obj.id; document.forms.submit();}
REPLACE WITH:
callback: function (obj) {
document.getElementById('query').value = obj.id;
document.getElementById('frmSearchSimple').submit();
}
That's all everyone, and enjoy the result! :)
Best regards,
Masino Sinaga