Skip to content

Commit

Permalink
Function was used before it was defined
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Delisle <marc@infomarc.info>
  • Loading branch information
lem9 committed Jun 15, 2014
1 parent c5eab29 commit 1ee589f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions js/functions.js
Expand Up @@ -56,6 +56,18 @@ $.ajaxPrefilter(function (options, originalOptions, jqXHR) {
}
});

/**
* HTML escaping
*/
function escapeHtml(unsafe) {
return unsafe
.replace(/&/g, "&amp;")
.replace(/</g, "&lt;")
.replace(/>/g, "&gt;")
.replace(/"/g, "&quot;")
.replace(/'/g, "&#039;");
}

/**
* Hides/shows the default value input field, depending on the default type
* Ticks the NULL checkbox if NULL is chosen as default value.
Expand Down Expand Up @@ -3995,18 +4007,6 @@ function PMA_clearSelection() {
}
}

/**
* HTML escaping
*/
function escapeHtml(unsafe) {
return unsafe
.replace(/&/g, "&amp;")
.replace(/</g, "&lt;")
.replace(/>/g, "&gt;")
.replace(/"/g, "&quot;")
.replace(/'/g, "&#039;");
}

/**
* Print button
*/
Expand Down

0 comments on commit 1ee589f

Please sign in to comment.