Sha256: b0eddd84696b3be3b2ca74da2dab077a18e68c1da704c9f0d6c8eb5df05e5a08

Contents?: true

Size: 804 Bytes

Versions: 6

Compression:

Stored size: 804 Bytes

Contents

$(document).ready(function() {

  $("#quicksearch").searchField();

  $('.resource :input', document.myForm).bind("change", function() { setConfirmUnload(true); });

  $("a.fancybox").fancybox({
    'titlePosition': 'over',
    'type': 'image',
    'centerOnScroll': true,
    'scrolling': false,
  });

  $(".iframe").fancybox({
    'width': '75%',
    'height': '100%',
    'autoScale': false,
    'transitionIn': 'none',
    'transitionOut': 'none',
    'type': 'iframe',
    'centerOnScroll': true,
    'scrolling': false,
  });

});

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

6 entries across 6 versions & 1 rubygems

Version Path
typus-3.1.0.rc6 app/assets/javascripts/typus/jquery.application.js
typus-3.1.0.rc5 app/assets/javascripts/typus/jquery.application.js
typus-3.1.0.rc4 app/assets/javascripts/typus/jquery.application.js
typus-3.1.0.rc3 app/assets/javascripts/typus/jquery.application.js
typus-3.1.0.rc2 app/assets/javascripts/typus/jquery.application.js
typus-3.1.0.rc1 app/assets/javascripts/typus/jquery.application.js