From 6d4cf5d1bdeb8529316664cc6f41acc1f2fca084 Mon Sep 17 00:00:00 2001 From: Marion Muszynski Date: Thu, 8 Jun 2017 12:23:30 +0200 Subject: [PATCH] fill and translate meta auto --- js/admin.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/js/admin.js b/js/admin.js index 58905e82..2398490b 100755 --- a/js/admin.js +++ b/js/admin.js @@ -146,6 +146,13 @@ function copy2friendlyURLCategory() $('#meta_keywords_' + id_language).val('Vente privée ' + str2urlName($('#name_' + id_language).val().replace(/^[0-9]+\./, ''), 'UTF-8')); $('#meta_title_' + id_language).val('Vente privée ' +str2urlName($('#name_' + id_language).val().replace(/^[0-9]+\./, ''), 'UTF-8')); $('#meta_description_' + id_language).val('Vente privée ' + str2urlName($('#name_' + id_language).val().replace(/^[0-9]+\./, ''), 'UTF-8')); + + // @Override Antadis + $('#link_rewrite_3').val(str2url($('#name_' + id_language).val().replace(/^[0-9]+\./, ''), 'UTF-8')); + $('#meta_keywords_3').val('Venta privada ' + str2urlName($('#name_' + id_language).val().replace(/^[0-9]+\./, ''), 'UTF-8')); + $('#meta_title_3').val('Venta privada ' + str2urlName($('#name_' + id_language).val().replace(/^[0-9]+\./, ''), 'UTF-8')); + $('#meta_description_3').val('Venta privada ' + str2urlName($('#name_' + id_language).val().replace(/^[0-9]+\./, ''), 'UTF-8')); + // @End override } function copyMeta2friendlyURL()