- Fixed broken "set destination", closed #862
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user