[Koha-devel] Clear OPAC self-registration form when back button pressed

David Cook dcook at prosentient.com.au
Fri Apr 13 03:55:07 CEST 2018


What do people think about clearing the OPAC self-registration form when
back button pressed? 

 

I used some code* from
https://stackoverflow.com/questions/8861181/clear-all-fields-in-a-form-upon-
going-back-with-browser-back-button to implement it and it worked pretty
well on the latest Chrome on Windows 10.

 

That way you don't have people finding personal information about other
people just by pressing "Back" on a public computer. 

 

 

*

$(window).bind("pageshow", function() {

    var form = $('#memberentry-form'); 

    // let the browser natively reset defaults

    form[0].reset();

});

 

David Cook

Systems Librarian

Prosentient Systems

72/330 Wattle St

Ultimo, NSW 2007

Australia

 

Office: 02 9212 0899

Direct: 02 8005 0595

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20180413/b8355580/attachment.html>


More information about the Koha-devel mailing list