Force focus with query param to show focus message

This commit is contained in:
Jeremy Zhang 2017-06-10 01:38:20 +00:00
parent a4ed38e59d
commit f4341b6e36

View File

@ -153,6 +153,7 @@
$('select').material_select(); $('select').material_select();
} }
if (getParameterByName("forcefocus") == "1") {
if (document.hasFocus()) { if (document.hasFocus()) {
primeEmbed(); primeEmbed();
} }
@ -162,6 +163,9 @@
primeEmbed(); primeEmbed();
} }
}); });
} else {
primeEmbed();
}
}); });
function changeTheme(theme) { function changeTheme(theme) {