Update hesk_javascript
This commit is contained in:
parent
26c2b10d4b
commit
b5955502e5
@ -241,9 +241,10 @@ function hesk_suggestKBsearch(isAdmin) {
|
|||||||
setTimeout('hesk_suggestKBsearch(' + isAdmin + ');', 2000);
|
setTimeout('hesk_suggestKBsearch(' + isAdmin + ');', 2000);
|
||||||
}
|
}
|
||||||
|
|
||||||
function hesk_suggestEmail(isAdmin) {
|
function hesk_suggestEmail(emailField, displayDiv, padDiv, isAdmin, allowMultiple) {
|
||||||
var email = document.form1.email.value;
|
allowMultiple = allowMultiple || 0;
|
||||||
var element = document.getElementById('email_suggestions');
|
var email = document.getElementById(emailField).value;
|
||||||
|
var element = document.getElementById(displayDiv);
|
||||||
|
|
||||||
if (isAdmin) {
|
if (isAdmin) {
|
||||||
var path = '../suggest_email.php';
|
var path = '../suggest_email.php';
|
||||||
@ -253,7 +254,11 @@ function hesk_suggestEmail(isAdmin) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (email != '') {
|
if (email != '') {
|
||||||
var params = "e=" + encodeURIComponent(email);
|
var params = "e=" + encodeURIComponent(email) + "&ef=" + encodeURIComponent(emailField) + "&dd=" + encodeURIComponent(displayDiv) + "&pd=" + encodeURIComponent(padDiv);
|
||||||
|
|
||||||
|
if (allowMultiple) {
|
||||||
|
params += "&am=1";
|
||||||
|
}
|
||||||
|
|
||||||
xmlHttp = GetXmlHttpObject();
|
xmlHttp = GetXmlHttpObject();
|
||||||
if (xmlHttp == null) {
|
if (xmlHttp == null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user