summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorjiteshjha2016-07-05 20:05:24 +0530
committerjiteshjha2016-07-05 20:05:24 +0530
commit923045468cd812cc34fb7393bdbe2afc6aaf89fe (patch)
tree29d7ed67729651b913c6979f0156c987fa68055d /index.html
parent6abb7b7e6cf291969768cd70cfd730535135373a (diff)
downloadxcos-on-web-923045468cd812cc34fb7393bdbe2afc6aaf89fe.tar.gz
xcos-on-web-923045468cd812cc34fb7393bdbe2afc6aaf89fe.tar.bz2
xcos-on-web-923045468cd812cc34fb7393bdbe2afc6aaf89fe.zip
Removed getimghtml() function
Diffstat (limited to 'index.html')
-rw-r--r--index.html8
1 files changed, 1 insertions, 7 deletions
diff --git a/index.html b/index.html
index 34f1352..920d01c 100644
--- a/index.html
+++ b/index.html
@@ -1472,8 +1472,6 @@
var details = cell.blockInstance.instance.set(propertiesObject); //window[name]("set",cell.value,propertiesObject);
var enc = new mxCodec();
var node = enc.encode(details);
- var label = getImgHTML(name);
- node.setAttribute('label', label);
cell.value = node;
/*
Maverick
@@ -2015,10 +2013,6 @@
}
}
- function getImgHTML(name) {
- return '<img src="' + 'blocks/' + name + '.svg' + '" height="80" width="80">';
- }
-
function addToolbarButton(editor, toolbar, action, label, image, isTransparent) {
var button = document.createElement('button');
button.style.fontSize = '10';
@@ -2127,7 +2121,7 @@
}
}
v1 = graph.insertVertex(parent, null, node, x, y, 80, 80, name);
-
+
// @Chhavi: Additional attribute to store the block's instance
v1.blockInstance = createInstanceTag(details_instance);
createPorts(graph, v1, inputPorts, controlPorts, outputPorts, commandPorts);