update dinga and paymal

This commit is contained in:
Aung Myo
2018-04-26 13:07:31 +06:30
parent 9b0a564b9a
commit 3a85481dcd
9 changed files with 42 additions and 30 deletions

View File

@@ -199,6 +199,7 @@
<% end %>
</div>
<button type="button" data-href="<%=origami_second_display_index_path%>" target="_blank" id="second_view" class="btn action-btn bg-blue waves-effect second_view hidden" style="height: 45px">Customer View</button>
<input type="hidden" name="server_mode" value="<%=ENV["SERVER_MODE"]%>" id="server_mode">
<script>
$(".cashier_view").on('click', function() {
@@ -206,7 +207,9 @@
});
$(".qs_view").on('click', function() {
document.getElementById('second_view').click();
if ($('#server_mode').val() != "cloud") {
document.getElementById('second_view').click();
}
window.location.href = '/origami/quick_service';
});