| {$Labels->GetLabel('_AXIS_ROT_')} |
| {$Labels->GetLabel('_AXIS_ROT_')} |
| {$Labels->GetLabel('_AXIS_ROT_')} |
| Δ {$Labels->GetLabel('_FROM_ANCH_')} |
| Δ {$Labels->GetLabel('_FROM_ANCH_')} |
| Δ {$Labels->GetLabel('_FROM_ANCH_')} |
'
@@ -1517,8 +1517,7 @@ function createNewMap(){
xtype: 'radio',
name: 'bounds_mode',
checked: 0,
- value: 1,
- fieldLabel: '',
+ inputValue: 1
},{
html: '
'
}]
@@ -1677,25 +1676,28 @@ function editCurrentMap(){
if( tt.id == 'map_map_frm' ){
if( Ext.getCmp('map_map_frm').getForm().isValid()){
Ext.getCmp('map_map_frm').getForm().submit({
- url: '/lib/controller/addMap.php',
- waitMsg: 'Uploading Image...',
+ url: '/lib/controller/updateMap.php',
+ waitMsg: '=$Labels->GetLabel('_UPDATING_DATA_');?>...',
+ clientValidation: false,
encoding: 'multipart/form-data',
- success: function(fp, o){
- //msg('Success', 'Processed file "'+o.result.file+'" on the server');
- //alert('Processed file on the server');
- mapEditorWindow.destroy();
+ success: function(f,a){
+ alert('Processed file on the server1');
+ //mapEditorWindow.hide();
+ //mapEditorWindow.destroy();
}
});
};
} else {
if( Ext.getCmp('map_pic_frm').getForm().isValid()){
Ext.getCmp('map_pic_frm').getForm().submit({
- url: '/lib/controller/addMap.php',
- waitMsg: 'Uploading Image...',
+ url: '/lib/controller/updateMap.php',
+ clientValidation: false,
+ waitMsg: '=$Labels->GetLabel('_UPDATING_DATA_');?>...',
encoding: 'multipart/form-data',
- success: function(fp, o){
- //alert('Processed file on the server');
- mapEditorWindow.destroy();
+ success: function( f, a ){
+ alert('Processed file on the server2');
+ //mapEditorWindow.hide();
+ //mapEditorWindow.destroy();
}
});
};
@@ -1716,7 +1718,6 @@ function editCurrentMap(){
height: 540,
title: '=$Labels->GetLabel('_EDIT_CUR_MAP_');?>',
modal: true,
- //closeAction: 'hide',
frame: true,
border: false,
resizable: false,
@@ -1852,18 +1853,17 @@ function editCurrentMap(){
},{
xtype: 'radio',
name: 'bounds_mode',
- value: 0,
- checked: ( newMapData.bounds_mode == 0 ),
- fieldLabel: '',
+ inputValue: 0,
+ checked: (newMapData.bounds_mode == 0)
},{
width: 80,
+ border: false,
html: '
'
},{
xtype: 'radio',
name: 'bounds_mode',
- checked: ( newMapData.bounds_mode == 1 ),
- value: 1,
- fieldLabel: '',
+ inputValue: 1,
+ checked: (newMapData.bounds_mode != 0)
},{
html: '
'
}]
@@ -1880,12 +1880,9 @@ function editCurrentMap(){
if( Ext.getCmp('map_edt_frm').getForm().isValid()){
Ext.getCmp('map_edt_frm').getForm().submit({
url: '/lib/controller/updateMap.php',
- waitMsg: 'Uploading Image...',
+ waitMsg: '=$Labels->GetLabel('_UPDATING_DATA_');?>...',
encoding: 'multipart/form-data',
success: function(fp, o){
- alert('Processed file on the server');
- //msg('Success', 'Processed file "'+o.result.file+'" on the server');
- //alert('Processed file on the server');
mapEditorWindow.destroy();
}
});
diff --git a/lib/javascript/jsapi_dynamic/mojo_settings.js b/lib/javascript/jsapi_dynamic/mojo_settings.js
index 5411253..095ef27 100644
--- a/lib/javascript/jsapi_dynamic/mojo_settings.js
+++ b/lib/javascript/jsapi_dynamic/mojo_settings.js
@@ -103,14 +103,34 @@ var targetWidthTable_store = new Ext.data.ArrayStore({
]
});
var cWTRowSelected = null;
+var WTSelectedSensor = 0;
var widthTableSelModel_ops = {
singleSelect: true,
listeners: {
rowselect: function( sm, row, rec ) {
- cRowSelected = row;
+ cWTRowSelected = rec.data.id;
+ Ext.getCmp('del_btn_width_table').enable();
}
}
};
+
+function deleteWTRow(){
+ Ext.Ajax.request({
+ url: '/lib/controller/delWidthTableRecord.php',
+ params: {
+ UID: =$UserID;?>,
+ SID: '=$Session;?>',
+ DID: WTSelectedSensor,
+ RID: cWTRowSelected
+ },
+ success: function( response, opts ){
+ Ext.getCmp('del_btn_width_table').disable();
+ loadWidthTable( WTSelectedSensor );
+ },
+ failure: failureAJAXFunction
+ });
+};
+
var targetWidthTableColModel_ops = {
columns: [
{header: "=$Labels->GetLabel('_WIDTH_CORRECT_');?> (%)", width: 250, align: 'center', css: 'vertical-align: middle;', dataIndex: 'width' },
@@ -131,6 +151,7 @@ function addWidthTableRecord( sensid ){
modal: true,
layout: 'form',
labelWidth: 150,
+ closeAction: 'hide',
labelAlign: 'right',
items:[{
xtype: 'numberfield',
@@ -159,6 +180,7 @@ function addWidthTableRecord( sensid ){
NWW: tWidth
},
success: function( response, opts ){
+ widthTableAddDialog.hide();
loadWidthTable( sensid );
},
failure: failureAJAXFunction
@@ -171,6 +193,7 @@ function addWidthTableRecord( sensid ){
};
function loadWidthTable( SensorID ){
+ WTSelectedSensor = SensorID;
Ext.Ajax.request({
url: '/lib/controller/getWidthTable.php',
params: {
@@ -1951,30 +1974,30 @@ tPanel.add({
tabchange: function( tp, t ){
switch( t.getId() ){
case 'gi_tab': {
- content_lvl3=0;
+ //content_lvl3=0;
updateServerStatus();
break;
};
case 'res_tab': {
- content_lvl3=1;
+ //content_lvl3=1;
stopStatusUpdater();
loadRessources();
break;
};
case 'mod_tab':{
- content_lvl3=2;
+ //content_lvl3=2;
stopStatusUpdater();
loadModules();
break;
};
case 'flt_tab':{
- content_lvl3=3;
+ //content_lvl3=3;
stopStatusUpdater();
loadFilters();
break;
};
};
- updateUserContent();
+ //updateUserContent();
},
afterrender: function(){
settingsAreChanged = false;
@@ -2669,13 +2692,12 @@ function showSettingsApplication(){
},{
xtype: 'numberfield',
id: 'stor_days',
- emptyText: '=$Labels->GetLabel('_SELE_DBBACKUP_');?>',
fieldLabel: '=$Labels->GetLabel('_STORE_DAYS_');?>',
width: 300,
value: =intval($AP_DATA['report_cleanup']);?>,
- name: 'db_time',
+ name: 'stor_time',
listeners: {
- onchange: function( t, b, o){
+ change: function( t, b, o ){
doApplicationOperation( 4, b );
}
}
@@ -2685,12 +2707,14 @@ function showSettingsApplication(){
},{
xtype: 'slider',
id: 'stor_space',
- fieldLabel: '=$Labels->GetLabel('_SELE_DBBACKUP_');?>',
+ fieldLabel: '=$Labels->GetLabel('_STORE_EMPTY_SPACE_');?>',
value: =intval($AP_DATA['preserve_empty']);?>,
width: 300,
- name: 'db_space',
- onchange: function( t, b, o){
- doApplicationOperation( 5, b );
+ name: 'stor_space',
+ listeners: {
+ change: function( t, b, o ){
+ doApplicationOperation( 5, b );
+ }
}
},{
xtype: 'spacer',