cmc-sales/webroot/js/search.js

61 lines
671 B
JavaScript
Raw Normal View History

2010-05-10 22:02:11 -07:00
/*
* file: search.js
* Powers AJAX search of records in the CMC Sales System.
*
*
*/
$(function() {
$("#dialogDiv").hide();
2010-05-10 22:02:11 -07:00
$("#dialogDiv").dialog({
autoOpen: false,
width: 900,
height: 900,
modal: true
});
$("#searchLink").click(function() {
$("#dialogDiv").dialog('open');
return false;
});
2010-05-10 22:02:11 -07:00
$("#searchButton").button().click(function() {
doSearch();
return false;
});
});
function doSearch() {
$.post("/enquiries/doSearch", $("#searchString").serialize(), function(data) {
$("#results").html(data);
});
}
function searchDialog() {
$("")
}
2010-05-10 22:02:11 -07:00