Fix compatibility with plugins using old jquery
This commit is contained in:
parent
8aaa716e33
commit
239b7d56b4
@ -1862,7 +1862,11 @@ function top_menu_user(User $user, Translate $langs)
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>';
|
||||||
|
|
||||||
|
if (! defined('JS_JQUERY_DISABLE_DROPDOWN')) // This may be set by some pages that use different jquery version to avoid errors
|
||||||
|
{
|
||||||
|
$btnUser .= '
|
||||||
<!-- Code to show/hide the user drop-down -->
|
<!-- Code to show/hide the user drop-down -->
|
||||||
<script>
|
<script>
|
||||||
$( document ).ready(function() {
|
$( document ).ready(function() {
|
||||||
@ -1889,7 +1893,7 @@ function top_menu_user(User $user, Translate $langs)
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
';
|
';
|
||||||
|
}
|
||||||
|
|
||||||
return $btnUser;
|
return $btnUser;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user