From b3ae5cd5017b81c8d98d92b7f1cc06e9624fb0d8 Mon Sep 17 00:00:00 2001 From: andrpet <andrpet@gmail.com> Date: Wed, 15 Jun 2016 10:45:57 +0200 Subject: [PATCH] plugin update --- controllets/dataset-table-controllet/dataset-table-controllet.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/controllets/dataset-table-controllet/dataset-table-controllet.html b/controllets/dataset-table-controllet/dataset-table-controllet.html index 9cc1020..3aa6516 100644 --- a/controllets/dataset-table-controllet/dataset-table-controllet.html +++ b/controllets/dataset-table-controllet/dataset-table-controllet.html @@ -266,8 +266,8 @@ <td> <template is="dom-repeat" items="{{elem.value}}" as="user" > <div class="ow_avatar"> - <a href="#"> - <img alt="" src="{{user}}" style="max-width: 100%;"> + <a href="{{user.href}}"> + <img alt="" src="{{user.src}}" style="max-width: 100%;"> </a> </div> </template> @@ -629,13 +629,14 @@ }, _toArray: function(obj) { - var regExp = new RegExp(/(https?:\/\/[^\s]+)/g); + //var regExp = new RegExp(/(https?:\/\/[^\s]+)/g); return Object.keys(obj).map(function(key) { if(key != "ID" && key != "cssClass") { - var test = regExp.test(obj[key]); + //var test = regExp.test(obj[key]); + var test = (obj[key].constructor === Array); return { key: key, - value: test ? obj[key].split(",") : obj[key], + value: obj[key], //test ? obj[key].split(",") : obj[key], isLink: test } } -- libgit2 0.21.4