summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjiteshjha2016-07-07 12:54:56 +0530
committerjiteshjha2016-07-07 12:54:56 +0530
commitd1a5f55492fb39bbf2536f673edbfc471c81b86c (patch)
tree04ab95361c30041bf5884641efb9ba1cc95979a4
parentd99ebcfcccce8c28140f6e3fc882f7ae60409f8e (diff)
downloadxcos-on-web-d1a5f55492fb39bbf2536f673edbfc471c81b86c.tar.gz
xcos-on-web-d1a5f55492fb39bbf2536f673edbfc471c81b86c.tar.bz2
xcos-on-web-d1a5f55492fb39bbf2536f673edbfc471c81b86c.zip
Label for every instance of block
-rw-r--r--index.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/index.html b/index.html
index f02d4f9..9c3c3aa 100644
--- a/index.html
+++ b/index.html
@@ -2156,9 +2156,13 @@
var style = stylesheet.styles[name];
if(style != null && style['image'] != null) {
var label = '<img src="' + style['image'] + '" height="80" width="80">';
+ style['label'] = label;
style['image'] = null;
node.setAttribute('label', label);
}
+ if(style!= null && style['label'] != null) {
+ node.setAttribute('label', style['label']);
+ }
node.setAttribute('parent', temp.getAttribute('id'));
var i, arr = [];