// Adding jQuery ui stuff $(document).ready(function() { var $confirm = $('
') .html('

This image will be permanently deleted and cannot be recovered. Are you sure?

') .dialog({ resizable: false, height:220, modal: true, autoOpen: false, title: 'Delete Image?', buttons: { "Delete Image": function() { $( this ).dialog( "close" ); $('form#delete_image').submit(); }, Cancel: function() { $( this ).dialog( "close" ); } } }); $('form#delete_image #delete_image_submit').click(function(e){ e.preventDefault(); $confirm.dialog('open'); }); $("time").timeago(); }); var defaultTexts = new Array(); window.onload = function(e) { var sections=get_sections(); for(var i=0;i