diff options
author | jiteshjha | 2016-07-05 20:05:24 +0530 |
---|---|---|
committer | jiteshjha | 2016-07-05 20:05:24 +0530 |
commit | 923045468cd812cc34fb7393bdbe2afc6aaf89fe (patch) | |
tree | 29d7ed67729651b913c6979f0156c987fa68055d /index.html | |
parent | 6abb7b7e6cf291969768cd70cfd730535135373a (diff) | |
download | xcos-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.html | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -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); |