Sha256: 320018598c4de9895d27e4d223c14a2aa9e04ff2f96053d7f2759eb5e1d4a611

Contents?: true

Size: 578 Bytes

Versions: 23

Compression:

Stored size: 578 Bytes

Contents

if (navigator.userAgent.match("MSIE"))
  $("form").validate();

initialize_audio();

$('input[name=revision]:radio').on('click', function() {
  $('#save_version_note').fadeIn('slow');
});

confirmation_needed = false;
window.onbeforeunload = confirmExit;

function confirmExit(){
  if(confirmation_needed) {
    // if you return a string it will be displayed in between "don't navigate away"
    // and "click Ok to navigate away or cancel to stay put" in the confirm dialog
    return "Your metadata has not been saved.";
  }
}

// only valid for perm tab
set_access_levels();

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
sufia-6.7.0 app/views/generic_files/_edit.js.erb
sufia-6.6.1 app/views/generic_files/_edit.js.erb
sufia-6.6.0 app/views/generic_files/_edit.js.erb
sufia-6.5.0 app/views/generic_files/_edit.js.erb
sufia-6.4.0 app/views/generic_files/_edit.js.erb
sufia-6.3.0 app/views/generic_files/_edit.js.erb
sufia-6.2.0 app/views/generic_files/_edit.js.erb
sufia-6.1.0 app/views/generic_files/_edit.js.erb
sufia-5.0.0 app/views/generic_files/_edit.js.erb
sufia-6.0.0 app/views/generic_files/_edit.js.erb
sufia-6.0.0.rc4 app/views/generic_files/_edit.js.erb
sufia-6.0.0.rc3 app/views/generic_files/_edit.js.erb
sufia-5.0.0.rc1 app/views/generic_files/_edit.js.erb
sufia-6.0.0.rc2 app/views/generic_files/_edit.js.erb
sufia-6.0.0.rc1 app/views/generic_files/_edit.js.erb
sufia-4.3.1 app/views/generic_files/_edit.js.erb
sufia-6.0.0.beta1 app/views/generic_files/_edit.js.erb
sufia-4.2.0 app/views/generic_files/_edit.js.erb
sufia-4.1.0 app/views/generic_files/_edit.js.erb
sufia-4.0.1 app/views/generic_files/_edit.js.erb