rename create() js errorHandler function to errorHandlerCreateDOM()
This commit is contained in:
@@ -142,7 +142,7 @@ if (!function_exists('errorToExceptionHandler')) {
|
||||
// while being in tags like <select> to push on top of page, else return non javascript use $str just there
|
||||
// sadly we can not use HEREDOC notation here, since this does not execute the javascript after finished writing
|
||||
echo "\n".'<script>
|
||||
var fragment = window.top.create("Error redirect: '.addslashes($str).'");
|
||||
var fragment = window.top.errorHandlerCreateDOM("Error redirect: '.addslashes($str).'");
|
||||
document.body.insertBefore(fragment, document.body.childNodes[0]);
|
||||
' . "\n</script>\n<noscript>" . $str . "</noscript>\n";
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ function serendipity_plugin_api_core_event_hook($event, &$bag, &$eventData, &$ad
|
||||
// hardened by admin only - better have that here, to be reachable everywhere
|
||||
if( $serendipity['serendipityUserlevel'] >= USERLEVEL_ADMIN ) {
|
||||
echo "
|
||||
function create(htmlStr) {
|
||||
function errorHandlerCreateDOM(htmlStr) {
|
||||
var frag = document.createDocumentFragment(),
|
||||
temp = document.createElement('div');
|
||||
temp.innerHTML = htmlStr;
|
||||
|
||||
Reference in New Issue
Block a user