check flag
This commit is contained in:
@@ -790,7 +790,7 @@
|
|||||||
<script>
|
<script>
|
||||||
var cashier_type = "cashier";
|
var cashier_type = "cashier";
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
// localStorage.removeItem("tax_type");
|
localStorage.removeItem("trans_flag");
|
||||||
/* check webview loaded*/
|
/* check webview loaded*/
|
||||||
var webview = <%= @webview %>;
|
var webview = <%= @webview %>;
|
||||||
showHideNavbar(webview);
|
showHideNavbar(webview);
|
||||||
|
|||||||
@@ -1151,6 +1151,7 @@ var trans_flag = <%= @trans_flag %>;
|
|||||||
|
|
||||||
if (pdf_view ==1) {
|
if (pdf_view ==1) {
|
||||||
var flag = localStorage.getItem("trans_flag");
|
var flag = localStorage.getItem("trans_flag");
|
||||||
|
localStorage.removeItem("trans_flag");
|
||||||
if((flag!=null) && (flag != "true")){
|
if((flag!=null) && (flag != "true")){
|
||||||
window.location.href = "/transactions/sales/"+sale_id;
|
window.location.href = "/transactions/sales/"+sale_id;
|
||||||
}else{
|
}else{
|
||||||
@@ -1186,6 +1187,7 @@ var trans_flag = <%= @trans_flag %>;
|
|||||||
allowOutsideClick: false
|
allowOutsideClick: false
|
||||||
}, function () {
|
}, function () {
|
||||||
var flag = localStorage.getItem("trans_flag");
|
var flag = localStorage.getItem("trans_flag");
|
||||||
|
localStorage.removeItem("trans_flag");
|
||||||
if((flag!=null) && (flag != "true")){
|
if((flag!=null) && (flag != "true")){
|
||||||
window.location.href = '/transactions/sales/'+sale_id;
|
window.location.href = '/transactions/sales/'+sale_id;
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -840,6 +840,7 @@
|
|||||||
var cashier_type = "cashier";
|
var cashier_type = "cashier";
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
// localStorage.removeItem("tax_type");
|
// localStorage.removeItem("tax_type");
|
||||||
|
localStorage.removeItem("trans_flag");
|
||||||
/* check webview loaded*/
|
/* check webview loaded*/
|
||||||
var webview = <%= @webview %>;
|
var webview = <%= @webview %>;
|
||||||
showHideNavbar(webview);
|
showHideNavbar(webview);
|
||||||
|
|||||||
Reference in New Issue
Block a user