From b0d184008788821760b2457dd24c12ff75a885e9 Mon Sep 17 00:00:00 2001 From: wukko Date: Sun, 28 Jan 2024 14:13:53 +0600 Subject: [PATCH] front: update picker descriptions --- src/front/cobalt.js | 9 +++------ src/modules/pageRender/page.js | 2 -- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/front/cobalt.js b/src/front/cobalt.js index 8c7ef4d2..71467a71 100644 --- a/src/front/cobalt.js +++ b/src/front/cobalt.js @@ -221,11 +221,11 @@ function popup(type, action, text) { if (navigator.canShare) eid("pd-share").style.display = "flex"; break; case "picker": + eid("picker-title").innerHTML = loc.MediaPickerTitle; + eid("picker-subtitle").innerHTML = isMobile ? loc.MediaPickerExplanationPhone : loc.MediaPickerExplanationPC; + switch (text.type) { case "images": - eid("picker-title").innerHTML = loc.MediaPickerTitle; - eid("picker-subtitle").innerHTML = isMobile ? loc.ImagePickerExplanationPhone : loc.ImagePickerExplanationPC; - eid("picker-holder").classList.remove("various"); eid("picker-download").href = text.audio; @@ -241,9 +241,6 @@ function popup(type, action, text) { } break; default: - eid("picker-title").innerHTML = loc.MediaPickerTitle; - eid("picker-subtitle").innerHTML = isMobile ? loc.MediaPickerExplanationPhone : loc.MediaPickerExplanationPC; - eid("picker-holder").classList.add("various"); for (let i in text.arr) { diff --git a/src/modules/pageRender/page.js b/src/modules/pageRender/page.js index 3b46cbce..81e6d514 100644 --- a/src/modules/pageRender/page.js +++ b/src/modules/pageRender/page.js @@ -637,8 +637,6 @@ export default function(obj) { 'MediaPickerTitle', 'MediaPickerExplanationPhone', 'MediaPickerExplanationPC', - 'ImagePickerExplanationPhone', - 'ImagePickerExplanationPC', 'FeatureErrorGeneric', 'ClipboardErrorNoPermission', 'ClipboardErrorFirefox',