1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-12 09:44:38 +02:00

Fix issue processwire/processwire-issues#821 front-edit modal "link" dialog in CKEditor was not respecting current language for link helper tools (autocomplete and PageList selection)

This commit is contained in:
Ryan Cramer
2019-03-01 06:28:10 -05:00
parent 7dbdcec2a0
commit b76deded68
2 changed files with 3 additions and 1 deletions

View File

@@ -148,6 +148,8 @@
$langWrapper = $textarea.parents('.InputfieldTable_langTabs').find('li.ui-state-active a')
if($langWrapper.length && typeof $langWrapper.data('lang') != "undefined") {
modalUrl += "&lang=" + $langWrapper.data('lang');
} else if(jQuery('#pw-edit-lang').length) {
modalUrl += "&lang=" + jQuery('#pw-edit-lang').val(); // front-end editor
}
}

File diff suppressed because one or more lines are too long