diff options
author | jiteshjha | 2016-07-07 12:54:56 +0530 |
---|---|---|
committer | jiteshjha | 2016-07-07 12:54:56 +0530 |
commit | d1a5f55492fb39bbf2536f673edbfc471c81b86c (patch) | |
tree | 04ab95361c30041bf5884641efb9ba1cc95979a4 | |
parent | d99ebcfcccce8c28140f6e3fc882f7ae60409f8e (diff) | |
download | xcos-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.html | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 = []; |