mirror of
https://github.com/Telecominfraproject/oopt-gnpy-web-gui.git
synced 2025-10-29 09:12:19 +00:00
Node issue fixed when copy and paste and removed boostrap, jquery slim files
This commit is contained in:
11
help.html
11
help.html
@@ -19,17 +19,6 @@
|
||||
|
||||
<link href="css/cdn/roboto-css.css" rel="stylesheet" />
|
||||
<link href="css/cdn/oswald-css.css" rel="stylesheet" />
|
||||
|
||||
|
||||
<script src="js/CdnURL/jquery.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
|
||||
crossorigin="anonymous"></script>
|
||||
<script src="js/CdnURL/bootstrap.bundle.min.js" integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns"
|
||||
crossorigin="anonymous"></script>
|
||||
|
||||
<!--<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
|
||||
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
|
||||
crossorigin="anonymous"></script>-->
|
||||
|
||||
<script src="js/CdnURL/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN"
|
||||
crossorigin="anonymous"></script>
|
||||
<script src="js/CdnURL/bootstrap.min.js" integrity="sha384-VHvPCCyXqtD5DqJeNxl2dtTyhF78xXNXdkwX1CZeRusQfRKp+tA7hAShOK/B/fQ2"
|
||||
|
||||
14
index.html
14
index.html
@@ -12,25 +12,11 @@
|
||||
<meta name="description" content="" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link rel="icon" href="Assets/img/telecom-favicon.ico" type="image/gif" sizes="16x16">
|
||||
|
||||
|
||||
<link href="css/cdn/bootstrap.min.css" rel="stylesheet" integrity="sha384-zCbKRCUGaJDkqS1kPbPd7TveP5iyJE0EjAuZQTgFLD2ylzuqKfdKlfG/eSrtxUkn" crossorigin="anonymous" />
|
||||
<link rel="stylesheet" type="text/css" href="css/Style.css" />
|
||||
<link href="css/cdn/font-awesome.min.css" rel="stylesheet" />
|
||||
|
||||
<link href="css/cdn/roboto-css.css" rel="stylesheet" />
|
||||
<link href="css/cdn/oswald-css.css" rel="stylesheet" />
|
||||
|
||||
<script src="js/CdnURL/jquery.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
|
||||
crossorigin="anonymous"></script>
|
||||
<script src="js/CdnURL/bootstrap.bundle.min.js" integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns"
|
||||
crossorigin="anonymous"></script>
|
||||
|
||||
<!--<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
|
||||
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
|
||||
crossorigin="anonymous"></script>-->
|
||||
|
||||
|
||||
<script src="js/CdnURL/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN"
|
||||
crossorigin="anonymous"></script>
|
||||
<script src="js/CdnURL/bootstrap.min.js" integrity="sha384-VHvPCCyXqtD5DqJeNxl2dtTyhF78xXNXdkwX1CZeRusQfRKp+tA7hAShOK/B/fQ2"
|
||||
|
||||
7
js/CdnURL/bootstrap.bundle.min.js
vendored
7
js/CdnURL/bootstrap.bundle.min.js
vendored
File diff suppressed because one or more lines are too long
2
js/CdnURL/jquery.slim.min.js
vendored
2
js/CdnURL/jquery.slim.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -3239,18 +3239,16 @@ function pasteNode(nodeId) {
|
||||
if (isCopy) {
|
||||
isCopy = false;
|
||||
var nodeID = token();
|
||||
var nodeData = network.body.data.nodes.get(nodeId);
|
||||
var nodeData = "";
|
||||
nodeData = network.body.data.nodes.get(nodeId);
|
||||
var nodeDetails = configData.node[nodeData.node_type];
|
||||
var node_type = nodeData.node_type;
|
||||
var result = nodeName(node_type, nodeData.amp_category);
|
||||
nodelength = result.nodeLength
|
||||
nodeLabel = result.label
|
||||
nodeData.label = nodeLabel;
|
||||
nodeData.number = nodelength;
|
||||
|
||||
if (node_type == roadmJSON.node_type) {
|
||||
network.body.data.nodes.add({
|
||||
id: nodeID, label: nodeData.label, x: insertNodeX, y: insertNodeY, image: DIR + roadmJSON.w_image, number: nodeData.number,
|
||||
id: nodeID, label: nodeLabel, x: insertNodeX, y: insertNodeY, image: DIR + roadmJSON.w_image, number: nodelength,
|
||||
shape: roadmJSON.shape, color: roadmJSON.color,
|
||||
font: roadmJSON.font,
|
||||
size: roadmJSON.size,
|
||||
@@ -3262,7 +3260,7 @@ function pasteNode(nodeId) {
|
||||
}
|
||||
else if (node_type == fusedJSON.node_type) {
|
||||
network.body.data.nodes.add({
|
||||
id: nodeID, label: nodeData.label, x: insertNodeX, y: insertNodeY, image: DIR + fusedJSON.w_image, number: nodeData.number,
|
||||
id: nodeID, label: nodeLabel, x: insertNodeX, y: insertNodeY, image: DIR + fusedJSON.w_image, number: nodelength,
|
||||
shape: fusedJSON.shape, color: fusedJSON.color,
|
||||
size: fusedJSON.size,
|
||||
view: $("#ddlNetworkView").val(), hidden: false,
|
||||
@@ -3271,7 +3269,7 @@ function pasteNode(nodeId) {
|
||||
}
|
||||
else if (node_type == transceiverJSON.node_type) {
|
||||
network.body.data.nodes.add({
|
||||
id: nodeID, label: nodeData.label, x: insertNodeX, y: insertNodeY, image: DIR + transceiverJSON.w_image, number: nodeData.number,
|
||||
id: nodeID, label: nodeLabel, x: insertNodeX, y: insertNodeY, image: DIR + transceiverJSON.w_image, number: nodelength,
|
||||
shape: transceiverJSON.shape, color: transceiverJSON.color,
|
||||
size: transceiverJSON.size,
|
||||
view: $("#ddlNetworkView").val(), hidden: false,
|
||||
@@ -3283,7 +3281,7 @@ function pasteNode(nodeId) {
|
||||
|
||||
if (nodeData.amp_category == ILAJSON.amp_category) {
|
||||
network.body.data.nodes.add({
|
||||
id: nodeID, label: nodeData.label, x: insertNodeX, y: insertNodeY, image: DIR + ILAJSON.w_image, number: nodeData.number,
|
||||
id: nodeID, label: nodeLabel, x: insertNodeX, y: insertNodeY, image: DIR + ILAJSON.w_image, number: nodelength,
|
||||
shape: ILAJSON.shape, color: ILAJSON.color,
|
||||
size: ILAJSON.size,
|
||||
view: $("#ddlNetworkView").val(), hidden: false,
|
||||
@@ -3293,7 +3291,7 @@ function pasteNode(nodeId) {
|
||||
}
|
||||
else if (nodeData.amp_category == amplifierJSON.amp_category) {
|
||||
network.body.data.nodes.add({
|
||||
id: nodeID, label: nodeData.label, x: insertNodeX, y: insertNodeY, image: DIR + amplifierJSON.w_image, number: nodeData.number,
|
||||
id: nodeID, label: nodeLabel, x: insertNodeX, y: insertNodeY, image: DIR + amplifierJSON.w_image, number: nodelength,
|
||||
shape: amplifierJSON.shape, color: amplifierJSON.color,
|
||||
size: amplifierJSON.size,
|
||||
view: $("#ddlNetworkView").val(), hidden: false,
|
||||
@@ -3303,7 +3301,7 @@ function pasteNode(nodeId) {
|
||||
}
|
||||
else if (nodeData.amp_category == ramanampJSON.amp_category) {
|
||||
network.body.data.nodes.add({
|
||||
id: nodeID, label: nodeData.label, x: insertNodeX, y: insertNodeY, image: DIR + ramanampJSON.w_image, number: nodeData.number,
|
||||
id: nodeID, label: nodeLabel, x: insertNodeX, y: insertNodeY, image: DIR + ramanampJSON.w_image, number: nodelength,
|
||||
shape: ramanampJSON.shape, color: ramanampJSON.color,
|
||||
size: ramanampJSON.size,
|
||||
view: $("#ddlNetworkView").val(), hidden: false,
|
||||
|
||||
Reference in New Issue
Block a user