- Fixed "confirmation modal" for new added signature/structure data by ctrl + v. Current system is now correct. closed #821
This commit is contained in:
@@ -761,12 +761,12 @@ define([
|
||||
let currentLocationData = Util.getCurrentLocationData();
|
||||
if(
|
||||
currentLocationData.id &&
|
||||
currentLocationData.id !== systemData.id
|
||||
currentLocationData.id !== systemData.systemId
|
||||
){
|
||||
let systemNameStr = (systemData.name === systemData.alias) ? '"' + systemData.name + '"' : '"' + systemData.alias + '" (' + systemData.name + ')';
|
||||
systemNameStr = '<span class="txt-color txt-color-warning">' + systemNameStr + '</span>';
|
||||
|
||||
let msg = 'Update structures in ' + systemNameStr + ' ? This not your current location, "' + currentLocationData.name + '" !';
|
||||
let msg = 'Update structures in ' + systemNameStr + ' ? This is not your current location, "' + currentLocationData.name + '" !';
|
||||
bootbox.confirm(msg, result => {
|
||||
if(result){
|
||||
saveStructureData(structureData, context);
|
||||
|
||||
@@ -742,12 +742,12 @@ define([
|
||||
let currentLocationData = Util.getCurrentLocationData();
|
||||
if(
|
||||
currentLocationData.id &&
|
||||
currentLocationData.id !== systemData.id
|
||||
currentLocationData.id !== systemData.systemId
|
||||
){
|
||||
let systemNameStr = (systemData.name === systemData.alias) ? '"' + systemData.name + '"' : '"' + systemData.alias + '" (' + systemData.name + ')';
|
||||
systemNameStr = '<span class="txt-color txt-color-warning">' + systemNameStr + '</span>';
|
||||
|
||||
let msg = 'Update signatures in ' + systemNameStr + ' ? This not your current location, "' + currentLocationData.name + '" !';
|
||||
let msg = 'Update signatures in ' + systemNameStr + ' ? This is not your current location, "' + currentLocationData.name + '" !';
|
||||
bootbox.confirm(msg, function(result){
|
||||
if(result){
|
||||
saveSignatureData(signatureData);
|
||||
|
||||
@@ -761,12 +761,12 @@ define([
|
||||
let currentLocationData = Util.getCurrentLocationData();
|
||||
if(
|
||||
currentLocationData.id &&
|
||||
currentLocationData.id !== systemData.id
|
||||
currentLocationData.id !== systemData.systemId
|
||||
){
|
||||
let systemNameStr = (systemData.name === systemData.alias) ? '"' + systemData.name + '"' : '"' + systemData.alias + '" (' + systemData.name + ')';
|
||||
systemNameStr = '<span class="txt-color txt-color-warning">' + systemNameStr + '</span>';
|
||||
|
||||
let msg = 'Update structures in ' + systemNameStr + ' ? This not your current location, "' + currentLocationData.name + '" !';
|
||||
let msg = 'Update structures in ' + systemNameStr + ' ? This is not your current location, "' + currentLocationData.name + '" !';
|
||||
bootbox.confirm(msg, result => {
|
||||
if(result){
|
||||
saveStructureData(structureData, context);
|
||||
|
||||
@@ -742,12 +742,12 @@ define([
|
||||
let currentLocationData = Util.getCurrentLocationData();
|
||||
if(
|
||||
currentLocationData.id &&
|
||||
currentLocationData.id !== systemData.id
|
||||
currentLocationData.id !== systemData.systemId
|
||||
){
|
||||
let systemNameStr = (systemData.name === systemData.alias) ? '"' + systemData.name + '"' : '"' + systemData.alias + '" (' + systemData.name + ')';
|
||||
systemNameStr = '<span class="txt-color txt-color-warning">' + systemNameStr + '</span>';
|
||||
|
||||
let msg = 'Update signatures in ' + systemNameStr + ' ? This not your current location, "' + currentLocationData.name + '" !';
|
||||
let msg = 'Update signatures in ' + systemNameStr + ' ? This is not your current location, "' + currentLocationData.name + '" !';
|
||||
bootbox.confirm(msg, function(result){
|
||||
if(result){
|
||||
saveSignatureData(signatureData);
|
||||
|
||||
Reference in New Issue
Block a user