auto reload page for oqs 5sec and origami 10sec

This commit is contained in:
Yan
2017-06-14 15:59:08 +06:30
parent c1e8f3ffb2
commit 7d6414cce6
3 changed files with 19 additions and 5 deletions

View File

@@ -18,11 +18,16 @@
//= require jquery-ui
//= require bootstrap-datepicker
$(document).ready(function(){
$(document).ready(function(){
// auto refresh every 10 seconds
setTimeout(function(){
window.location.reload(1);
}, 10000);
// For selected order return
var order_status = "";
order_status = $(".selected-item").children().find(".orders-order-status").text().substr(0,6).trim();
console.log(order_status) ;
order_status = $(".selected-item").children().find(".orders-order-status").text().substr(0,6).trim();
// Enable/Disable Button
control_button(order_status);