Sha256: 3f7f71e10f2c48b9b4875414a86c93ff6921ba0a5ea43451b5ee87207beeeb23
Contents?: true
Size: 698 Bytes
Versions: 11
Compression:
Stored size: 698 Bytes
Contents
$(document).ready(function() { $("#quicksearch").searchField(); $('.resource :input', document.myForm).bind("change", function() { setConfirmUnload(true); }); $("a.fancybox").fancybox({ 'titlePosition': 'over', 'type': 'image' }); $(".iframe").fancybox({ 'width': '75%', 'height': '100%', 'autoScale': false, 'transitionIn': 'none', 'transitionOut': 'none', 'type': 'iframe' }); }); function setConfirmUnload(on) { window.onbeforeunload = (on) ? unloadMessage : null; } function unloadMessage() { return "You have entered new data on this page. If you navigate away from this page without first saving your data, the changes will be lost."; }
Version data entries
11 entries across 7 versions & 1 rubygems