Commit b3ae5cd5017b81c8d98d92b7f1cc06e9624fb0d8
1 parent
806d9f08
plugin update
Showing
1 changed file
with
6 additions
and
5 deletions
controllets/dataset-table-controllet/dataset-table-controllet.html
... | ... | @@ -266,8 +266,8 @@ |
266 | 266 | <td> |
267 | 267 | <template is="dom-repeat" items="{{elem.value}}" as="user" > |
268 | 268 | <div class="ow_avatar"> |
269 | - <a href="#"> | |
270 | - <img alt="" src="{{user}}" style="max-width: 100%;"> | |
269 | + <a href="{{user.href}}"> | |
270 | + <img alt="" src="{{user.src}}" style="max-width: 100%;"> | |
271 | 271 | </a> |
272 | 272 | </div> |
273 | 273 | </template> |
... | ... | @@ -629,13 +629,14 @@ |
629 | 629 | }, |
630 | 630 | |
631 | 631 | _toArray: function(obj) { |
632 | - var regExp = new RegExp(/(https?:\/\/[^\s]+)/g); | |
632 | + //var regExp = new RegExp(/(https?:\/\/[^\s]+)/g); | |
633 | 633 | return Object.keys(obj).map(function(key) { |
634 | 634 | if(key != "ID" && key != "cssClass") { |
635 | - var test = regExp.test(obj[key]); | |
635 | + //var test = regExp.test(obj[key]); | |
636 | + var test = (obj[key].constructor === Array); | |
636 | 637 | return { |
637 | 638 | key: key, |
638 | - value: test ? obj[key].split(",") : obj[key], | |
639 | + value: obj[key], //test ? obj[key].split(",") : obj[key], | |
639 | 640 | isLink: test |
640 | 641 | } |
641 | 642 | } | ... | ... |