cmc-sales/webroot/js/jobindex.js

40 lines
559 B
JavaScript
Raw Normal View History

2010-07-16 00:52:57 -07:00
/* jobindex.js
*
* handle the modal window Edit funcionality on the job index page.
*
*/
$(function() {
$(".editWindow").click(function() {
2010-07-16 00:52:57 -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) {
$.get("/jobs/edit/"+link, function(data){
$("#editDiv").html(data);
});
return;
2010-07-16 00:52:57 -07:00
}