Commit ebc0934a authored by Kyle Milka's avatar Kyle Milka Committed by Commit Bot

[NTP] Properly apply collection title on background selection dialog

This was broken for the current version of the picker in
https://crrev.com/c/1603206.

Bug: None
Change-Id: I90474ff2fa6c0a64a1f886d53cdb92d6522fbc16
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1618266
Commit-Queue: Kyle Milka <kmilka@chromium.org>
Commit-Queue: Gayane Petrosyan <gayane@chromium.org>
Auto-Submit: Kyle Milka <kmilka@chromium.org>
Reviewed-by: default avatarGayane Petrosyan <gayane@chromium.org>
Cr-Commit-Position: refs/heads/master@{#661086}
parent 79b03a6f
...@@ -681,10 +681,11 @@ customBackgrounds.showImageSelectionDialog = function(dialogTitle) { ...@@ -681,10 +681,11 @@ customBackgrounds.showImageSelectionDialog = function(dialogTitle) {
$(customBackgrounds.IDS.CUSTOMIZATION_MENU) : $(customBackgrounds.IDS.CUSTOMIZATION_MENU) :
$(customBackgrounds.IDS.MENU); $(customBackgrounds.IDS.MENU);
$(customBackgrounds.IDS.MENU_TITLE).textContent = dialogTitle;
if (configData.richerPicker) { if (configData.richerPicker) {
$(customBackgrounds.IDS.MENU_TITLE).textContent = dialogTitle;
menu.classList.toggle(customBackgrounds.CLASSES.ON_IMAGE_MENU, true); menu.classList.toggle(customBackgrounds.CLASSES.ON_IMAGE_MENU, true);
} else { } else {
$(customBackgrounds.IDS.TITLE).textContent = dialogTitle;
menu.classList.remove(customBackgrounds.CLASSES.COLLECTION_DIALOG); menu.classList.remove(customBackgrounds.CLASSES.COLLECTION_DIALOG);
menu.classList.add(customBackgrounds.CLASSES.IMAGE_DIALOG); menu.classList.add(customBackgrounds.CLASSES.IMAGE_DIALOG);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment