diff --git a/src/page.html b/src/page.html index f234da2..94dd215 100644 --- a/src/page.html +++ b/src/page.html @@ -197,7 +197,7 @@ function showAdminLoginModal(){ m.id='mb-admin-modal'; m.innerHTML=''+ '
Admin Authentication Required
'+ - ''+ + ''+ ''+ '
'; document.body.appendChild(m); @@ -209,6 +209,12 @@ function showAdminLoginModal(){ document.getElementById('admin-password').focus(); } +function handleAdminKeyPress(e){ + if(e.key==='Enter'||e.keyCode===13){ + submitAdminLogin(); + } +} + function submitAdminLogin(){ var pwd=document.getElementById('admin-password').value;