/* jobindex.js * * handle the modal window Edit funcionality on the job index page. * */ $(function() { $(".editWindow").click(function() { //$(this).attr("name"); //doGet($(this).attr("name")); $("#editDiv").dialog('open'); return false; }); $("#editDiv").hide(); $("#editDiv").dialog({ autoOpen: false, width: 900, modal: true }); }); function doGet(link) { $.get("/jobs/edit/"+link, function(data){ $("#editDiv").html(data); }); return; }