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,8 +266,8 @@ | ||
266 | <td> | 266 | <td> |
267 | <template is="dom-repeat" items="{{elem.value}}" as="user" > | 267 | <template is="dom-repeat" items="{{elem.value}}" as="user" > |
268 | <div class="ow_avatar"> | 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 | </a> | 271 | </a> |
272 | </div> | 272 | </div> |
273 | </template> | 273 | </template> |
@@ -629,13 +629,14 @@ | @@ -629,13 +629,14 @@ | ||
629 | }, | 629 | }, |
630 | 630 | ||
631 | _toArray: function(obj) { | 631 | _toArray: function(obj) { |
632 | - var regExp = new RegExp(/(https?:\/\/[^\s]+)/g); | 632 | + //var regExp = new RegExp(/(https?:\/\/[^\s]+)/g); |
633 | return Object.keys(obj).map(function(key) { | 633 | return Object.keys(obj).map(function(key) { |
634 | if(key != "ID" && key != "cssClass") { | 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 | return { | 637 | return { |
637 | key: key, | 638 | key: key, |
638 | - value: test ? obj[key].split(",") : obj[key], | 639 | + value: obj[key], //test ? obj[key].split(",") : obj[key], |
639 | isLink: test | 640 | isLink: test |
640 | } | 641 | } |
641 | } | 642 | } |