mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-23 22:01:47 +01:00
* eMail: handle problem popup foldertree does not show subfolders of folders with umlauts
This commit is contained in:
parent
fb0dc8d5be
commit
a980a31d77
@ -20,6 +20,13 @@
|
||||
$this->charset = $GLOBALS['egw']->translation->charset();
|
||||
}
|
||||
|
||||
function decodeFolderName($_folderName) {
|
||||
$folderName = translation::convert(html_entity_decode($_folderName, ENT_QUOTES, $this->charset),'UTF7-IMAP', $this->charset);
|
||||
$response = new xajaxResponse();
|
||||
$response->addScript("decodedFolder ='".$folderName."'");
|
||||
return $response->getXML();
|
||||
}
|
||||
|
||||
function searchAddress($_searchString) {
|
||||
if ($GLOBALS['egw_info']['user']['apps']['addressbook']) {
|
||||
if (method_exists($GLOBALS['egw']->contacts,'search')) {
|
||||
|
@ -13,7 +13,7 @@
|
||||
/* $Id$ */
|
||||
|
||||
class uicompose
|
||||
{
|
||||
{
|
||||
var $public_functions = array
|
||||
(
|
||||
'action' => True,
|
||||
@ -424,14 +424,14 @@
|
||||
foreach($signatures as $signature) {
|
||||
$selectSignatures[$signature['fm_signatureid']] = lang('Signature').': '.$signature['fm_description'];
|
||||
}
|
||||
|
||||
|
||||
$bostationery = new felamimail_bostationery();
|
||||
$selectStationeries = array(
|
||||
'0' => lang('no stationery')
|
||||
);
|
||||
$showStationaries = false;
|
||||
$validStationaries = $bostationery->get_valid_templates();
|
||||
if (is_array($validStationaries) && count($validStationaries)>0)
|
||||
if (is_array($validStationaries) && count($validStationaries)>0)
|
||||
{
|
||||
$showStationaries = true;
|
||||
$selectStationeries += $validStationaries;
|
||||
@ -640,8 +640,8 @@
|
||||
lang('IMAP Server'),
|
||||
$mailPreferences['username'].'@'.$mailPreferences['imapServerAddress'],
|
||||
'divFolderTree',
|
||||
false,
|
||||
true
|
||||
false//,
|
||||
//true
|
||||
);
|
||||
print '<div id="divFolderTree" style="overflow:auto; width:320px; height:450px; margin-bottom: 0px;padding-left: 0px; padding-top:0px; z-index:100; border : 1px solid Silver;"></div>';
|
||||
print $folderTree;
|
||||
|
@ -36,6 +36,7 @@ var KEYCODE_DOWN=40;
|
||||
// quickserach input field
|
||||
var disabledKeys1 = new Array(KEYCODE_TAB, KEYCODE_ENTER, KEYCODE_UP, KEYCODE_DOWN);
|
||||
//var disabledKeys1 = new Array(KEYCODE_ENTER, KEYCODE_UP, KEYCODE_DOWN);
|
||||
var decodedFolder;
|
||||
|
||||
function initAll()
|
||||
{
|
||||
@ -522,7 +523,9 @@ function fm_compose_changeInputType(_selectBox) {
|
||||
|
||||
function fm_compose_setFolderSelectValue(_folderName) {
|
||||
if(currentFolderSelectField) {
|
||||
currentFolderSelectField.value = _folderName;
|
||||
xajax_doXMLHTTPsync("felamimail.ajax_contacts.decodeFolderName",_folderName);
|
||||
|
||||
currentFolderSelectField.value = (decodedFolder?decodedFolder:_folderName);
|
||||
if(!currentFolderSelectField.parentNode.parentNode.nextSibling) {
|
||||
addAddressRow(currentFolderSelectField.parentNode.parentNode);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user