From: Matteo Nastasi (mop) Date: Mon, 19 Sep 2016 06:19:38 +0000 (+0200) Subject: first partial with 'Fieldify' and 'g_prefsf' variable X-Git-Url: http://mop.ddnsfree.com/gitweb/?p=brisk.git;a=commitdiff_plain;h=b3228a76777d1eab9e2ed69e1e3b880e050209d5 first partial with 'Fieldify' and 'g_prefsf' variable --- diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 7262ef4..6395d70 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -1417,7 +1417,7 @@ class Brisk $ret = sprintf('gst.st = %d; ', $user_step); if ($user->is_auth()) { - $ret .= sprintf('g_prefsn.load(\'%s\');', json_encode($user->prefsn_get())); + $ret .= sprintf('/* g_prefsn.load(\'%s\'); */', json_encode($user->prefsn_get())); } if(false) { if ($user->flags & USER_FLAG_ISOLAUTH) { diff --git a/web/index.php b/web/index.php index 5d1a92e..9a1459f 100644 --- a/web/index.php +++ b/web/index.php @@ -956,7 +956,7 @@ google_color_url = "000000"; ' + onmouseover="menu_hide(0,1);" onclick="g_prefsf.visible(true); menu_over(-1,this);">' // MLANG garantisci .$mlang_room['tit_prefs'][$G_lang].'
' : '').' @@ -1039,7 +1039,8 @@ var g_tables_appr_n = ; var g_tables_auth_n = ; var g_tables_cert_n = ; var g_prefs, g_prefs_new = null; -var g_prefsn, g_prefsn_old = null; +var g_prefsn = null, g_prefsn_old = null; +var g_prefsf = null; var g_listen; var g_withflash = false; var g_is_spawn = 0; @@ -1208,7 +1209,8 @@ cookie_law(null); var g_tables_auth_n = ; var g_tables_cert_n = ; var g_prefs, g_prefs_new = null; - var g_prefsn, g_prefsn_old = null; + var g_prefsn = null, g_prefsn_old = null; + var g_prefsf = null; var g_listen; var g_is_spawn = 0; var g_withflash = false; @@ -1224,12 +1226,17 @@ cookie_law(null); // var nonunload = false; var spo_slide, sup_slide; + function status_cb() + { + console.log("status_cb"); + } + window.onload = function() { g_brow = get_browser_agent(); g_prefs = new client_prefs(null); - g_prefsn = new Prefsn($('prefsn')); - + /* g_prefsn = new Prefsn($('prefsn')); */ + g_prefsf = new Fieldify(null, null, null, {}, "prefsf", [$("prefsf")], status_cb); spo_slide = new sideslide($('spon_caro'), 80, 20); sup_slide = new sideslide($('supp_caro'), 80, 20); @@ -1596,9 +1603,10 @@ type="submit" class="button" onclick="this.form.elements['realsub'].value = 'chi - -