cmc-sales/webroot/js/jobindex.js
2011-01-11 19:52:52 +11:00

40 lines
559 B
JavaScript
Executable file

/* 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;
}