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