
/* Merged Plone Javascript file
 * This file is dynamically assembled from separate parts.
 * Some of these parts have 3rd party licenses or copyright information attached
 * Such information is valid for that section,
 * not for the entire composite file
 * originating files are separated by - filename.js -
 */

/* - duration_formfield.js - */
// http://criticalcommons.org/portal_javascripts/duration_formfield.js?original=1
function update_duration_field(field,hour,minute,second){var field=document.getElementById(field)
var hour=document.getElementById(hour)
var minute=document.getElementById(minute)
var second=document.getElementById(second)
if(0<=hour.value){field.value=hour.value+":"+minute.value+":"+second.value}
else{field.value=''
hour.options[0].selected=1
minute.options[0].selected=1
second.options[0].selected=1}}


/* - upload_form_spinner.js - */
// http://criticalcommons.org/portal_javascripts/upload_form_spinner.js?original=1
$(document).ready(function(){var loading_html='<div id="upload_form_spinner"><p><b>Please be patient while your file is uploading. It may take a long time. Thanks.</b> <p> <img id="loading" src="ajax-loader.gif"/></p></p></div>';$('form#atengagevideo-base-edit').find('#file_file').each(function(){$('#file_file').after(loading_html);$('#upload_form_spinner').hide()});$('form#atengagevideo-base-edit').submit(function(){$('form#atengagevideo-base-edit').find('#file_file').each(function(){$('#upload_form_spinner').show();alert("You are about to start uploading. Please be patient, as this may take some time. Don't close your browser or click 'Save' again. Thanks!");setTimeout('document.images["loading"].src = document.images["loading"].src',1)})})});

