UI updated
This commit is contained in:
@@ -17,21 +17,32 @@
|
||||
//= require cable
|
||||
|
||||
$(document).ready(function(){
|
||||
$('.queue_station').on('click',function(){
|
||||
var title=$(this).children().children('.card-title').text();
|
||||
var titles=title.split(' ');
|
||||
|
||||
$('.queue_station').on('click',function(){
|
||||
var orderZone=$(this).children().children().children('.order-zone').text();
|
||||
var orderItem=$(this).children().children().children('.order-item').text();
|
||||
var orderQty=$(this).children().children().children('.order-qty').text();
|
||||
var orderBy=$(this).children().children().children().children('.order-by').text();
|
||||
var orderAt=$(this).children().children().children().children('.order-at').text();
|
||||
var orderCustomer=$(this).children().children('.order-customer').text();
|
||||
|
||||
$('#order-title').text($('#order-title').text() + titles[0]);
|
||||
$('#order-title').text("ORDER DETAILS - " + orderZone);
|
||||
$('#order-by').text(orderBy);
|
||||
$('#order-at').text(orderAt);
|
||||
$('#order-customer').text(orderCustomer);
|
||||
$('#order-from').text(titles[0]);
|
||||
$('#order-from').text(orderZone);
|
||||
|
||||
$('#order-items').text(titles[1]);
|
||||
$('#order-qty').text(titles[2].substr(2).replace(']',''));
|
||||
$('#order-items').text(orderItem);
|
||||
$('#order-qty').text(orderQty);
|
||||
});
|
||||
|
||||
// complete for queue item
|
||||
$('.order-complete').on('click',function(){
|
||||
var assigned_item_id=$(this).attr('id').substr(15);
|
||||
$.ajax({
|
||||
url: "",
|
||||
data: ""
|
||||
}).done(function(){
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user