Skip to content
Snippets Groups Projects
Commit 014d89fa authored by PavelBegunkov's avatar PavelBegunkov
Browse files

УКД редактор fix

parent 82ec1ba4
Branches
Tags
No related merge requests found
......@@ -529,6 +529,7 @@ $(function() {
return $(element).attr("id");
});
var ChangeOrderSubmodulesID = '[' + AttrID.get() + ']';
ChangeSubmoduleMaxRate($(this).parent('div').parent('div').attr('id'), 0);
//
$.post(
URLdir + 'handler/map/DeleteSubmodule',
......@@ -540,7 +541,24 @@ $(function() {
function(data){
data = $.parseJSON(data);
if(data.success === true) {
var sub = thisObj.parent('div').parent('div');
var mod = sub.parent('div').parent('div').find('.moduleHead');
// get old submodule values
var dif1 = sub.find('.currentControl').find('input').val();
var dif2 = sub.find('.landmarkControl').find('input').val();
// change module header
var old = mod.find('.currentControl').html();
mod.children('.currentControl').html(old - dif1);
old = mod.find('.landmarkControl').html();
mod.children('.landmarkControl').html(old - dif2);
// change max rate
old = $('.RateIndicator').html();
$('.RateIndicator').html(old - dif1 - dif2);
thisObj.parent('div').parent('div').remove();
EventInspector_ShowMsg('Мероприятие удалено', 'success');
}
else EventInspector_ShowMsg('Ошибка при удаление мероприятия', 'error');
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment