move date selection to workflow
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
.delivery-process {
|
||||
background-color: #777;
|
||||
color: white;
|
||||
cursor: pointer;
|
||||
padding: 18px;
|
||||
width: 100%;
|
||||
border: none;
|
||||
text-align: left;
|
||||
outline: none;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.delivery-process:hover {
|
||||
background-color: #555;
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
jQuery(document).ready(function($) {
|
||||
|
||||
$('#delivery-process-selector').change(function(e){
|
||||
e.preventDefault();
|
||||
|
||||
var data = {
|
||||
action: 'wiaas_create_order_delivery_process',
|
||||
_ajax_nonce: $('#wiaas_create_order_delivery_process_nonce').val(),
|
||||
order: $('#wiaas_order_id').val(),
|
||||
form: e.target.value
|
||||
|
||||
};
|
||||
|
||||
// since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php
|
||||
$.post(ajaxurl, data, function(response) {
|
||||
if (response.success){
|
||||
location.reload();
|
||||
}else{
|
||||
alert(response.data[0].message);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user