- Fixed broken "set destination", closed #862

This commit is contained in:
Mark Friedrich
2019-10-30 23:51:48 +01:00
parent 964dd0f7c9
commit 86c05cd741
4 changed files with 6 additions and 6 deletions

View File

@@ -644,7 +644,7 @@ define([
case 'add_first_waypoint':
case 'add_last_waypoint':
systemData = system.getSystemData();
Util.setDestination(systemData, action);
Util.setDestination(action, 'system', {id: systemData.systemId, name: systemData.name});
break;
}
};

View File

@@ -1240,10 +1240,10 @@ define([
popoverRoot.data('bs.popover').tip().find('a').on('click', function(){
// hint: "data" attributes should be in lower case!
let systemData = {
systemId: $(this).data('systemid'),
id: $(this).data('systemid'),
name: $(this).data('name')
};
Util.setDestination(systemData, 'set_destination');
Util.setDestination('set_destination', 'system', systemData);
// close popover
popoverRoot.popover('hide');

View File

@@ -644,7 +644,7 @@ define([
case 'add_first_waypoint':
case 'add_last_waypoint':
systemData = system.getSystemData();
Util.setDestination(systemData, action);
Util.setDestination(action, 'system', {id: systemData.systemId, name: systemData.name});
break;
}
};

View File

@@ -1240,10 +1240,10 @@ define([
popoverRoot.data('bs.popover').tip().find('a').on('click', function(){
// hint: "data" attributes should be in lower case!
let systemData = {
systemId: $(this).data('systemid'),
id: $(this).data('systemid'),
name: $(this).data('name')
};
Util.setDestination(systemData, 'set_destination');
Util.setDestination('set_destination', 'system', systemData);
// close popover
popoverRoot.popover('hide');