From 89674a79c54f427f5a644a6cfe7f015f3121c7ac Mon Sep 17 00:00:00 2001 From: Evgeny Gagua Date: Tue, 12 Dec 2023 03:01:04 -0800 Subject: [PATCH] Mer-LA updated last --- lib/controller/dash/node_3.js | 2 +- lib/controller/getMetroBottomSensorEditor.php | 14 +- lib/controller/getMetroUpperSensorEditor.php | 14 +- lib/controller/report/node_3.js | 2 +- .../jsapi_dynamic/mojo_dashboard.js | 9 +- .../jsapi_dynamic/mojo_global_vars.js | 2 +- lib/javascript/jsapi_dynamic/mojo_settings.js | 129 +----------------- lib/version.var | 2 +- 8 files changed, 28 insertions(+), 146 deletions(-) diff --git a/lib/controller/dash/node_3.js b/lib/controller/dash/node_3.js index f6dd2ac..75962a3 100644 --- a/lib/controller/dash/node_3.js +++ b/lib/controller/dash/node_3.js @@ -24,7 +24,7 @@ var W = p.getWidth(); var H = 9*(W/16) - 28; - if( %%%APPTYPE%%% == 33 ){ + if( %%%APPTYPE%%% == 1 ){ H = PanelH - p.ownerCt.getHeight() + 64; if( H > ( W * 0.5625 )+ 32 ){ H = ( W * 0.5625 ) + 32; diff --git a/lib/controller/getMetroBottomSensorEditor.php b/lib/controller/getMetroBottomSensorEditor.php index 502dd2d..86ebba6 100644 --- a/lib/controller/getMetroBottomSensorEditor.php +++ b/lib/controller/getMetroBottomSensorEditor.php @@ -72,13 +72,13 @@ lskdjflsdsdf; SID: '{$Session}', SNID: '{$SI}', OPID: 19, - OFF: oset, - ORD: oder, - DEL: odel, - FLI: ofli, - WIZ: owid, - SST: osst, - SUN: osun + MOFF: oset, + MORD: oder, + MDEL: odel, + MFLI: ofli, + MWIZ: owid, + MSST: osst, + MSUN: osun }, success: function( response, opts ){ Ext.Msg.show({ diff --git a/lib/controller/getMetroUpperSensorEditor.php b/lib/controller/getMetroUpperSensorEditor.php index 40d31b1..0f396b0 100644 --- a/lib/controller/getMetroUpperSensorEditor.php +++ b/lib/controller/getMetroUpperSensorEditor.php @@ -72,13 +72,13 @@ lskdjflsdsdf; SID: '{$Session}', SNID: '{$SI}', OPID: 19, - OFF: oset, - ORD: oder, - DEL: odel, - FLI: ofli, - WIZ: owid, - SST: osst, - SUN: osun + MOFF: oset, + MORD: oder, + MDEL: odel, + MFLI: ofli, + MWIZ: owid, + MSST: osst, + MSUN: osun }, success: function( response, opts ){ Ext.Msg.show({ diff --git a/lib/controller/report/node_3.js b/lib/controller/report/node_3.js index 4094b5a..bea5631 100644 --- a/lib/controller/report/node_3.js +++ b/lib/controller/report/node_3.js @@ -21,7 +21,7 @@ var W = p.getWidth(); var H = 9*(W/16) - 28; - if( %%%APPTYPE%%% == 2 ){ + if( %%%APPTYPE%%% == 1 ){ H = PanelH - p.ownerCt.getHeight() + 64; if( H > W + 60 ){ H = W + 60; diff --git a/lib/javascript/jsapi_dynamic/mojo_dashboard.js b/lib/javascript/jsapi_dynamic/mojo_dashboard.js index 29ef252..dea0f9f 100644 --- a/lib/javascript/jsapi_dynamic/mojo_dashboard.js +++ b/lib/javascript/jsapi_dynamic/mojo_dashboard.js @@ -834,11 +834,11 @@ function draw2DMasks( a, zzz='' ){ var colors=['#FF0000','#FFFF00','#00FF00','#203080','#0000FF','#FaFF00']; //var cpx = bBox.width / 2.0; //var cpy = bBox.height / 2.0; - var max = 1024.0; + var max = 2048.0; switch( drawZoomLevels[a] ){ - case 50: max = 512.0; break; - case 25: max = 256.0; break; - case 12: max = 128.0; break; + case 50: max = 1024.0; break; + case 25: max = 512.0; break; + case 12: max = 256.0; break; }; //var rk = bBox.width / ( max * 2 ); var cpx= 287.0; @@ -868,6 +868,7 @@ function draw2DMasks( a, zzz='' ){ newpath.setAttributeNS(null, "fill-opacity", "1.0"); }; newpath.setAttributeNS(null, "id", "mask_"+a+"_"+i+"_"+k ); + console.log( "Added Poly: mask_"+a+"_"+i+"_"+k ); newpath.setAttributeNS(null, "clip-path", "url(#svg_mask_"+a+")" ); var tch = csvg.getElementById( "border_"+a ); if( tch != undefined ){ diff --git a/lib/javascript/jsapi_dynamic/mojo_global_vars.js b/lib/javascript/jsapi_dynamic/mojo_global_vars.js index 4ef468f..9a31ddf 100644 --- a/lib/javascript/jsapi_dynamic/mojo_global_vars.js +++ b/lib/javascript/jsapi_dynamic/mojo_global_vars.js @@ -14,7 +14,7 @@ var content_lvl0= -1; var content_lvl1= -1; var content_lvl2= -1; var content_lvl3= -1; -var SoundMode=Data['sound_enable']);?>; +var SoundMode=Data['sound_enable']);?>; var PanelW = winW; var PanelH = winH-90; var SelectedSite = ; diff --git a/lib/javascript/jsapi_dynamic/mojo_settings.js b/lib/javascript/jsapi_dynamic/mojo_settings.js index 91e1a2c..4f574b6 100644 --- a/lib/javascript/jsapi_dynamic/mojo_settings.js +++ b/lib/javascript/jsapi_dynamic/mojo_settings.js @@ -2359,129 +2359,9 @@ function showSettingsApplication(){ } } }] - }/*,{ - title: 'GetLabel('_MONIT_LAYOUT_');?>', - layout:'table', - defaults: { - // applied to each contained panel - bodyStyle:'padding:5px' - }, - layoutConfig: { - // The total column count must be specified here - columns: 3 - }, - frame: false, - border: false, - height: PanelH - 30, - items:[{ - xtype: 'spacer', - width: 100 - },{ - xtype: 'radio', - width: '100%', - name: 'layo_apa', - id: 'db_layout_0', - checked: ( == 0 ), - listeners:{ - check: function( t, state ){ - if( state ) doApplicationOperation( 2, 0 ); - } - } - },{ - frame: false, - border: false, - html: '' - },{ - xtype: 'spacer', - width: 100 - },{ - xtype: 'radio', - width: '100%', - name: 'layo_apa', - id: 'db_layout_1', - checked: ( == 1 ), - listeners:{ - check: function( t, state ){ - if( state ) doApplicationOperation( 2, 1 ); - } - } - },{ - frame: false, - border: false, - html: '' - },{ - xtype: 'spacer', - width: 100 - },{ - xtype: 'radio', - name: 'layo_apa', - id: 'db_layout_2', - checked: ( == 2 ), - listeners:{ - check: function( t, state ){ - if( state ) doApplicationOperation( 2, 2 ); - } - } - },{ - frame: false, - border: false, - html: '' - },{ - xtype: 'spacer', - width: 100 - },{ - xtype: 'radio', - width: '100%', - name: 'layo_apa', - id: 'db_layout_3', - checked: ( == 3 ), - listeners:{ - check: function( t, state ){ - if( state ) doApplicationOperation( 2, 3 ); - } - } - },{ - frame: false, - border: false, - html: '' - },{ - xtype: 'spacer', - width: 100 - },{ - xtype: 'radio', - width: '100%', - name: 'layo_apa', - id: 'db_layout_4', - checked: ( == 4 ), - listeners:{ - check: function( t, state ){ - if( state ) doApplicationOperation( 2, 4 ); - } - } - },{ - frame: false, - border: false, - html: '' - },{ - xtype: 'spacer', - width: 100 - },{ - xtype: 'radio', - width: '100%', - name: 'layo_apa', - id: 'db_layout_5', - checked: ( == 5 ), - listeners:{ - check: function( t, state ){ - if( state ) doApplicationOperation( 2, 5 ); - } - } - },{ - frame: false, - border: false, - html: '' - }] - }*/,{ + }, + + { title: 'GetLabel('_GEO_LOCATION_');?>', layout: 'column', items:[{ @@ -2632,7 +2512,8 @@ function showSettingsApplication(){ html:'
GetLabel('_PLS_SEL_LEFT_ITEM_');?>
' }] }] - },{ + }, +{ title: 'GetLabel('_BACKUP_SETTINGS_');?>', xtype: 'form', id: 'as_dbbackup', diff --git a/lib/version.var b/lib/version.var index 669bb3d..d7a4e87 100644 --- a/lib/version.var +++ b/lib/version.var @@ -1 +1 @@ -20221115 \ No newline at end of file +20221207 \ No newline at end of file