Browse Source

Update hesk_javascript

tags/3.0.0-beta-1^2
Mike Koch 3 years ago
parent
commit
b5955502e5
1 changed files with 10 additions and 5 deletions
  1. 10
    5
      hesk_javascript.js

+ 10
- 5
hesk_javascript.js View File

@@ -241,9 +241,10 @@ function hesk_suggestKBsearch(isAdmin) {
setTimeout('hesk_suggestKBsearch(' + isAdmin + ');', 2000);
}

function hesk_suggestEmail(isAdmin) {
var email = document.form1.email.value;
var element = document.getElementById('email_suggestions');
function hesk_suggestEmail(emailField, displayDiv, padDiv, isAdmin, allowMultiple) {
allowMultiple = allowMultiple || 0;
var email = document.getElementById(emailField).value;
var element = document.getElementById(displayDiv);

if (isAdmin) {
var path = '../suggest_email.php';
@@ -253,7 +254,11 @@ function hesk_suggestEmail(isAdmin) {
}

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();
if (xmlHttp == null) {
@@ -369,7 +374,7 @@ function hesk_contains(password, validChars) {
}

function setCookie(name, value, expires, path, domain, secure) {
document.cookie = name + "=" + escape(value) +
document.cookie= name + "=" + escape(value) +
((expires) ? "; expires=" + expires.toGMTString() : "") +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +

Loading…
Cancel
Save