change ui not same for table, room and order

This commit is contained in:
Aung Kyaw Phyoe
2019-01-14 09:15:30 +06:30
parent 121e584009
commit 0d60e97014
9 changed files with 126 additions and 75 deletions

View File

@@ -366,7 +366,16 @@
var page = "<%= @page %>";
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);
/* check webview loaded*/
var webview = <%= @webview %>;