@ -52,7 +52,7 @@ $htmlHeadXtra[] = '<script>
function setFocus(){
$("#title").focus();
}
$(window).load(function () {
$(window).on("load", function () {
setFocus();
});
</script>';
@ -47,7 +47,7 @@ function setFocus() {
$("#document_title").focus();
@ -46,7 +46,7 @@ $htmlHeadXtra[] = '<script>
$("#idTitle").focus();
@ -1,6 +1,6 @@
{% if add_ready %}
$(document).ready(function() {
{% endif %}
var my_text = $(".glossary-content").html();
var ajaxRequestUrl = "{{ _p.web }}main/glossary/glossary_ajax_request.php?{{ _p.web_cid_query }}";
@ -105,7 +105,7 @@ $(document).ready(function() {
// Removes the yellow input in Chrome
if (navigator.userAgent.toLowerCase().indexOf("chrome") >= 0) {
$(window).load(function(){
$('input:-webkit-autofill').each(function(){
var text = $(this).val();
var name = $(this).attr('name');
@ -116,7 +116,7 @@ $(document).ready(function() {