Browse Source

Fixed ACK mask cancelation

master
Evgeny Gagua 3 years ago
parent
commit
bca3b57099
  1. 2
      lib/1.json
  2. 41
      lib/javascript/jsapi_dynamic/mojo_dashboard.js

2
lib/1.json
File diff suppressed because it is too large
View File

41
lib/javascript/jsapi_dynamic/mojo_dashboard.js

@ -1936,23 +1936,30 @@ function doAckOperation( NodeID, Cmd ){
icon: Ext.MessageBox.QUESTION
});
} else {
if( mode_add_ack ){
} else {
Ext.Msg.show({
title:'<?=$Labels->GetLabel("_INFO_MSG_");?>',
msg: '<?=$Labels->GetLabel("_DEV_ACK_STOP_");?>',
buttons: Ext.Msg.YESNOCANCEL,
fn: function( btn ){
if( btn == 'yes' ){
doMaskOperation( NodeID, 3, 5 );
Ext.Msg.show({
title:'<?=$Labels->GetLabel("_INFO_MSG_");?>',
msg: '<?=$Labels->GetLabel("_DEV_ACK_STOP_");?>',
buttons: Ext.Msg.YESNOCANCEL,
fn: function( btn ){
if( btn == 'yes' ){
if( selectROI_mode ){
t = Ext.getCmp('cp_radar_'+NodeID );
if( t != undefined ){
t.removeClass( 'yellow_bg' );
};
t = document.getElementById('draw_svg_'+NodeID );
if( t != undefined ){
t.style.cursor = 'crosshair';
};
} else {
t = Ext.getCmp('cp_ack_btn_'+NodeID );
if( t != undefined ) t.toggle( true, true );
};
},
icon: Ext.MessageBox.QUESTION
});
};
doMaskOperation( NodeID, 3, 5 );
}
} else {
t = Ext.getCmp('cp_ack_btn_'+NodeID );
if( t != undefined ) t.toggle( true, true );
};
},
icon: Ext.MessageBox.QUESTION
});
};
};
Loading…
Cancel
Save