Sha256: 1502930365d0afeda9cddf1ca383c0f3057bf57f8394e6c705f043370f25fd05
Contents?: true
Size: 392 Bytes
Versions: 2
Compression:
Stored size: 392 Bytes
Contents
/*global window */ window.addEventListener("beforeunload", function (event) { "use strict"; var message, shouldLock = document.body.className.match(/\bpromethee-page-locked\b/); if (shouldLock) { message = "You have modified this page. If you quit without saving, your changes will be lost."; event.returnValue = message; return message; } });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
promethee-1.7.0 | app/assets/javascripts/promethee/unload.js |
promethee-1.6.63 | app/assets/javascripts/promethee/unload.js |