mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
b3c28155b7
|
|
@ -252,7 +252,7 @@ class DolEditor
|
|||
}
|
||||
*/
|
||||
},
|
||||
disableNativeSpellChecker: '.(!getDolGlobalString('CKEDITOR_NATIVE_SPELLCHECKER') ? 'true' : 'false');
|
||||
disableNativeSpellChecker: '.(getDolGlobalString('CKEDITOR_NATIVE_SPELLCHECKER') ? 'false' : 'true');
|
||||
|
||||
if ($this->uselocalbrowser) {
|
||||
$out .= ','."\n";
|
||||
|
|
|
|||
|
|
@ -184,6 +184,8 @@ function OpenFolder( folderPath )
|
|||
|
||||
function LoadFolders( folderPath )
|
||||
{
|
||||
console.log("LoadFolders folderPath="+folderPath);
|
||||
|
||||
// Clear the folders list.
|
||||
oListManager.Clear();
|
||||
|
||||
|
|
|
|||
|
|
@ -131,6 +131,8 @@ oListManager.GetFileRowHtml = function( fileName, fileUrl, fileSize )
|
|||
|
||||
function OpenFolder( folderPath )
|
||||
{
|
||||
console.log("OpenFolder folderPath="+folderPath);
|
||||
|
||||
// Load the resources list for this folder.
|
||||
window.parent.frames['frmFolders'].LoadFolders( folderPath );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -742,7 +742,7 @@ function IsAllowedCommand($sCommand)
|
|||
*/
|
||||
function GetCurrentFolder()
|
||||
{
|
||||
$sCurrentFolder = isset($_GET['CurrentFolder']) ? GETPOST('CurrentFolder', '', 1) : '/';
|
||||
$sCurrentFolder = isset($_GET['CurrentFolder']) ? GETPOST('CurrentFolder', 'alphanohtml', 1) : '/';
|
||||
|
||||
// Check the current folder syntax (must begin and start with a slash).
|
||||
if (!preg_match('|/$|', $sCurrentFolder)) {
|
||||
|
|
|
|||
|
|
@ -3430,6 +3430,8 @@ if (!GETPOST('hide_websitemenu')) {
|
|||
// Edit CKEditor
|
||||
if (getDolGlobalInt('WEBSITE_ALLOW_CKEDITOR')) {
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?website='.$object->ref.'&pageid='.$pageid.'&action=editcontent&token='.newToken().'" class="button bordertransp"'.$disabled.'>'.dol_escape_htmltag("CKEditor").'</a>';
|
||||
} else {
|
||||
print '<!-- Add option WEBSITE_ALLOW_CKEDITOR to allow ckeditor -->';
|
||||
}
|
||||
|
||||
print '</span>';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user