Skip to content
Snippets Groups Projects
Commit 08478e65 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

fixed newlines in JavaScript alerts

darcs-hash:20050904112930-7ad00-fb2b246c6b4872ae97cd859d452a1c0f0ca77613.gz
parent 506fa893
No related branches found
No related tags found
No related merge requests found
...@@ -63,7 +63,8 @@ $lang['lockedby'] = 'Currently locked by'; ...@@ -63,7 +63,8 @@ $lang['lockedby'] = 'Currently locked by';
$lang['lockexpire'] = 'Lock expires at'; $lang['lockexpire'] = 'Lock expires at';
$lang['willexpire'] = 'Your lock for editing this page is about to expire in a minute.\nTo avoid conflicts use the preview button to reset the locktimer.'; $lang['willexpire'] = 'Your lock for editing this page is about to expire in a minute.\nTo avoid conflicts use the preview button to reset the locktimer.';
$lang['notsavedyet'] = 'There are unsaved changes, that will be lost.\nReally continue?'; $lang['notsavedyet'] = 'Unsaved changes will be lost.\nReally continue?';
$lang['rssfailed'] = 'An error occured while fetching this feed: '; $lang['rssfailed'] = 'An error occured while fetching this feed: ';
$lang['nothingfound']= 'Nothing was found.'; $lang['nothingfound']= 'Nothing was found.';
......
...@@ -204,8 +204,8 @@ function tpl_metaheaders(){ ...@@ -204,8 +204,8 @@ function tpl_metaheaders(){
// include some JavaScript language strings // include some JavaScript language strings
ptln('<script language="javascript" type="text/javascript" charset="utf-8">',$it); ptln('<script language="javascript" type="text/javascript" charset="utf-8">',$it);
ptln(" var alertText = '".addslashes($lang['qb_alert'])."'",$it); ptln(" var alertText = '".str_replace('\\\\n','\\n',addslashes($lang['qb_alert']))."'",$it);
ptln(" var notSavedYet = '".addslashes($lang['notsavedyet'])."'",$it); ptln(" var notSavedYet = '".str_replace('\\\\n','\\n',addslashes($lang['notsavedyet']))."'",$it);
ptln(" var DOKU_BASE = '".DOKU_BASE."'",$it); ptln(" var DOKU_BASE = '".DOKU_BASE."'",$it);
ptln('</script>',$it); ptln('</script>',$it);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment