mirror of
https://github.com/e107inc/e107.git
synced 2025-08-08 07:36:32 +02:00
completely removed legacy JS inclusion
This commit is contained in:
@@ -62,18 +62,15 @@ include_once (e107::coreTemplatePath('usersettings')); //correct way to load a c
|
|||||||
$usersettings_shortcodes = e107::getScBatch('usersettings');
|
$usersettings_shortcodes = e107::getScBatch('usersettings');
|
||||||
|
|
||||||
|
|
||||||
e107::js('inline',"
|
// include JS, headerjs not called in header anymore
|
||||||
|
$js = e107::getJs();
|
||||||
|
$js->footerInline("
|
||||||
function addtext_us(sc)
|
function addtext_us(sc)
|
||||||
{
|
{
|
||||||
document.getElementById('dataform').image.value = sc;
|
document.getElementById('dataform').image.value = sc;
|
||||||
}
|
}
|
||||||
");
|
");
|
||||||
|
|
||||||
|
|
||||||
// include JS, headerjs not called in header anymore
|
|
||||||
$js = e107::getJs();
|
|
||||||
$js->footerInline(headerjs());
|
|
||||||
|
|
||||||
$photo_to_delete = '';
|
$photo_to_delete = '';
|
||||||
$avatar_to_delete = '';
|
$avatar_to_delete = '';
|
||||||
$ue_fields = '';
|
$ue_fields = '';
|
||||||
@@ -833,21 +830,6 @@ function delete_file($fname, $dir = 'avatars/')
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function headerjs()
|
|
||||||
{
|
|
||||||
|
|
||||||
$script = "
|
|
||||||
function addtext_us(sc)
|
|
||||||
{
|
|
||||||
document.getElementById('dataform').image.value = sc;
|
|
||||||
}
|
|
||||||
";
|
|
||||||
|
|
||||||
|
|
||||||
return $script;
|
|
||||||
}
|
|
||||||
|
|
||||||
function usersettings_adminmenu()
|
function usersettings_adminmenu()
|
||||||
{
|
{
|
||||||
include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/admin/lan_admin.php');
|
include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/admin/lan_admin.php');
|
||||||
|
Reference in New Issue
Block a user