2011-04-12 23:37:34 -07:00
|
|
|
$(function() {
|
|
|
|
|
|
2011-04-21 00:38:01 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$( "#dialog-form" ).dialog({
|
|
|
|
|
autoOpen: false,
|
|
|
|
|
height: 600,
|
|
|
|
|
width: 350,
|
|
|
|
|
modal: true,
|
|
|
|
|
buttons: {
|
|
|
|
|
"New Shipment": function() {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
Cancel: function() {
|
|
|
|
|
$( this ).dialog( "close" );
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
close: function() {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$( "#newShipment" ).button().click(function() {
|
|
|
|
|
|
|
|
|
|
$.get('/shipments/add', function(data) {
|
|
|
|
|
$("#dialog-form").html(data);
|
|
|
|
|
$( "#dialog-form" ).dialog( "open" );
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
});
|