change ui not same for table, room and order
This commit is contained in:
@@ -246,7 +246,16 @@
|
||||
<script type="text/javascript">
|
||||
var paypar_account_no = [];
|
||||
$(function() {
|
||||
paypar_account_no = JSON.parse('<%= @paypar_accountno.to_json.html_safe %>');
|
||||
paypar_account_no = JSON.parse('<%= @paypar_accountno.to_json.html_safe %>', function (key, value) {
|
||||
var type;
|
||||
if (value && typeof value === 'object') {
|
||||
type = value.type;
|
||||
if (typeof type === 'string' && typeof window[type] === 'function') {
|
||||
return new(window[type])(value);
|
||||
}
|
||||
}
|
||||
return value;
|
||||
});
|
||||
console.log(paypar_account_no);
|
||||
|
||||
// Read Card Reader
|
||||
|
||||
Reference in New Issue
Block a user