mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-08 22:35:00 +02:00
fixes #2238 javascript error due to single quotes
in other languages where single quotes are used this breaks the JS execution resolved by putting translation conveyed through js variables inside ""
This commit is contained in:
@@ -66,13 +66,13 @@ jQuery("a.preview-box").colorbox( {
|
||||
photo: true
|
||||
});
|
||||
|
||||
str_are_you_sure = '{'Are you sure?'|translate|escape:javascript}';
|
||||
str_yes = '{'Yes, delete'|translate|escape:javascript}';
|
||||
str_no = '{'No, I have changed my mind'|translate|@escape:'javascript'}';
|
||||
str_orphan = '{'This photo is an orphan'|@translate|escape:javascript}';
|
||||
str_meta_warning = '{'Warning ! Unsaved changes will be lost'|translate|escape:javascript}';
|
||||
str_meta_yes = '{'I want to continue'|translate|escape:javascript}'
|
||||
const str_title_ab = '{'Associate to album'|@translate}';
|
||||
str_are_you_sure = "{'Are you sure?'|translate|escape:javascript}";
|
||||
str_yes = "{'Yes, delete'|translate|escape:javascript}";
|
||||
str_no = "{'No, I have changed my mind'|translate|@escape:'javascript'}";
|
||||
str_orphan = "{'This photo is an orphan'|@translate|escape:javascript}";
|
||||
str_meta_warning = "{'Warning ! Unsaved changes will be lost'|translate|escape:javascript}";
|
||||
str_meta_yes = "{'I want to continue'|translate|escape:javascript}";
|
||||
const str_title_ab = "{'Associate to album'|@translate}";
|
||||
|
||||
const strs_privacy = {
|
||||
"0" : "{$level_options[8]}",
|
||||
|
||||
Reference in New Issue
Block a user