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

Version Path
typus-3.0.11.rc3 app/assets/vendor/typus/javascripts/jquery.application.js
typus-3.0.11.rc2 app/assets/vendor/typus/javascripts/jquery.application.js
typus-3.0.11.rc1 app/assets/vendor/typus/javascripts/jquery.application.js
typus-3.0.10 lib/generators/templates/public/vendor/typus/javascripts/jquery.application.js
typus-3.0.10 test/fixtures/rails_app/public/vendor/typus/javascripts/jquery.application.js
typus-3.0.9 lib/generators/templates/public/vendor/typus/javascripts/jquery.application.js
typus-3.0.9 test/fixtures/rails_app/public/vendor/typus/javascripts/jquery.application.js
typus-3.0.8 lib/generators/templates/public/vendor/typus/javascripts/jquery.application.js
typus-3.0.8 test/fixtures/rails_app/public/vendor/typus/javascripts/jquery.application.js
typus-3.0.7 test/fixtures/rails_app/public/vendor/typus/javascripts/jquery.application.js
typus-3.0.7 lib/generators/templates/public/vendor/typus/javascripts/jquery.application.js