Add loadAdditionalScripts events to admin and personal for plugins that have no section
This commit is contained in:
parent
a296cbd203
commit
c670c23455
|
@ -41,6 +41,8 @@ OC_Util::addScript('settings', 'certificates');
|
|||
OC_Util::addScript('files', 'jquery.iframe-transport');
|
||||
OC_Util::addScript('files', 'jquery.fileupload');
|
||||
|
||||
\OC::$server->getEventDispatcher()->dispatch('OC\Settings\Admin::loadAdditionalScripts');
|
||||
|
||||
$showLog = (\OC::$server->getConfig()->getSystemValue('log_type', 'owncloud') === 'owncloud');
|
||||
$numEntriesToLoad = 3;
|
||||
$entries = OC_Log_Owncloud::getEntries($numEntriesToLoad + 1);
|
||||
|
|
|
@ -54,6 +54,8 @@ if ($config->getSystemValue('enable_avatars', true) === true) {
|
|||
\OC_Util::addVendorStyle('jcrop/css/jquery.Jcrop');
|
||||
}
|
||||
|
||||
\OC::$server->getEventDispatcher()->dispatch('OC\Settings\Personal::loadAdditionalScripts');
|
||||
|
||||
// Highlight navigation entry
|
||||
OC::$server->getNavigationManager()->setActiveEntry('personal');
|
||||
|
||||
|
|
Loading…
Reference in New Issue