Sha256: db2074dc0b79f56dabba8bf124478537a16186c5964ebfa9cda3fd53bf81e04d

Contents?: true

Size: 517 Bytes

Versions: 3

Compression:

Stored size: 517 Bytes

Contents

$(document).ready(function() {
  $("#quicksearch").searchField();
  $('.resource :input', document.myForm).bind("change", function() { setConfirmUnload(true); });
  $("a.fancybox").fancybox({
    'titlePosition': 'over',
    'type': 'image'
  });
});

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

3 entries across 3 versions & 1 rubygems

Version Path
typus-3.0.6 lib/generators/templates/public/admin/javascripts/jquery.application.js
typus-3.0.5 lib/generators/templates/public/admin/javascripts/jquery.application.js
typus-3.0.4 lib/generators/templates/public/admin/javascripts/jquery.application.js