added new afterprint event and the customAfterPrint function in customizations.js

As in https://github.com/qgis/QGIS-Web-Client/pull/93

here is the correct commit.

Sorry for the confunsion.