X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Finfo.js;h=ec13833cc261547e5b80c4220eaa4cb427cf3d48;hb=22d489aa1f47bfaec201d561c773d4649bbdae84;hp=fb9e0872beacc57e4bdf70da60870bb7ea58225f;hpb=4d6334859a2357cd090fd0e58b8f3b6356a0cfc1;p=brisk.git diff --git a/web/info.js b/web/info.js index fb9e087..ec13833 100644 --- a/web/info.js +++ b/web/info.js @@ -21,11 +21,29 @@ * */ +var mlang_info = { 'btn_close' : { 'it' : 'Chiudi.', + 'en' : 'Close.' } + }; + + function info_fld(dobj) { var fields = { login: { type: 'value' }, state: { type: 'value', perms: 'ro' }, guar: { type: 'value', perms: 'ro' }, + + widefriend: { type: 'fields', fields: { skill: { type: 'value', perms: 'ro' }, + black: { type: 'value', perms: 'ro' }, + test: { type: 'value', perms: 'ro'}, + friend: { type: 'value', perms: 'ro'}, + bff: { type: 'value', perms: 'ro'} + } }, + narrowfriend: { type: 'fields', fields: { skill: { type: 'value', perms: 'ro' }, + black: { type: 'value', perms: 'ro'}, + test: { type: 'value', perms: 'ro'}, + friend: { type: 'value', perms: 'ro'}, + bff: { type: 'value', perms: 'ro'} + } }, match: { type: 'value', perms: 'ro' }, game: { type: 'value', perms: 'ro' }, friend: { type: 'radio' }, @@ -33,7 +51,9 @@ function info_fld(dobj) trust: { type: 'radio' } }; - return (new Fieldify(dobj, fields)); + var ret = new Fieldify([dobj], fields); + console.log(ret); + return (ret); } function info_show(username) @@ -49,7 +69,7 @@ function info_show(username) info.visible(true); } else { - alert("error: open info window failed"); + var noti = new notify(gst, info_in.mesg, 0, mlang_info['btn_close'][g_lang], 400, 150); } }