From 896d6c9fe957ce7e74fa4371b6138accac53a8e0 Mon Sep 17 00:00:00 2001 From: Pierre Slamich Date: Thu, 28 Jul 2022 19:26:53 +0200 Subject: [PATCH] fix: Fix typos in the Folksonomy JS code (#7147) --- html/js/folksonomy.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/html/js/folksonomy.js b/html/js/folksonomy.js index f981b4e89e800..e1863dbbb0717 100644 --- a/html/js/folksonomy.js +++ b/html/js/folksonomy.js @@ -55,7 +55,7 @@ function folskonomy_engine_init() { // See https://stackoverflow.com/questions/4376431/javascript-heredoc const css = ` /* - * OFF web app already load jquery-ui.css but it doesn't work properly with "dialog" function. + * The Open Food Facts web app already loads jquery-ui.css but it doesn't work properly with the "dialog" function. * We add the CSS this way so that the embedded, relatively linked images load correctly. * (Use //ajax... so that https or http is selected as appropriate to avoid "mixed content".) */ @@ -149,9 +149,9 @@ function displayFolksonomyPropertyValues() { $("div[itemtype='https://schema.org/Product']").append( String('' + '
' + - '

User properties (beta)

' + + '

Personalized properties (beta)

' + '

' + - "

This properties are created and filed by users for any kind of usages. Feel free to add your own. " + + "

These properties are created and filed by users for any kind of usages. Feel free to add your own. " + "You can dive into the list of properties already used by the community " + "or explore the properties' documentation and its search engine.

" + "

Be aware the data model might be modified. Use at your own risk.

" + @@ -666,7 +666,7 @@ function updatePropertyValue(_code, _k, _v, _owner, _version) { /** - * Display all the free properties created and filed by users (product edition mode). + * Displays all the free properties created and filed by users (product edition mode). * Examples: * * Photo_Front: To be updated * @@ -747,7 +747,7 @@ function isPageType() { // Detect page containing a list of products (home page, search results...) if ($("body").hasClass("list_of_products_page")) { return "list"; } - // Hack for Open Products Facts, Open Beauty Facts, etc. + // Hack for Open Products Facts, Open Pet Food Facts, Open Beauty Facts if ($(".products")[0]) { return "list"; } // Detect search form @@ -768,7 +768,7 @@ function isPageType() { function loginProcess(callback) { - // Firstly try to athenticate by the OFF cookie + // Try to authenticate using the Open Food Facts cookie first var cookie = $.cookie('session') ? $.cookie('session') : ""; if (cookie) { console.log("FEUS - loginProcess(callback) => getCredentialsFromCookie()"); @@ -781,7 +781,7 @@ function loginProcess(callback) { //return; } - + // TODO: Reenable login ? // Else display a form // const loginWindow = // '