From c260d8c7545f5c51cce9409b84c7aeb511194c1f Mon Sep 17 00:00:00 2001
From: Johannes Raggam
Date: Mon, 12 Jun 2017 18:34:08 +0200
Subject: [PATCH] Cleanup of PLIP #1734
---
mockup/patterns/structure/js/views/tablerow.js | 2 +-
mockup/patterns/structure/templates/tablerow.xml | 4 ++--
mockup/tests/pattern-structure-test.js | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/mockup/patterns/structure/js/views/tablerow.js b/mockup/patterns/structure/js/views/tablerow.js
index 8f91671df..61f535512 100644
--- a/mockup/patterns/structure/js/views/tablerow.js
+++ b/mockup/patterns/structure/js/views/tablerow.js
@@ -57,7 +57,7 @@ define([
data.portal_type = data.portal_type ? data.portal_type : '';
data.contenttype = data.portal_type.toLowerCase().replace(/\.| /g, '-');
data._authenticator = utils.getAuthenticator();
- data.thumbSize = self.app.thumbSize;
+ data.thumb_scale = self.app.thumb_scale;
var viewAction = self.app.typeToViewAction && self.app.typeToViewAction[data.attributes.portal_type] || '';
data.viewURL = data.attributes.getURL + viewAction;
diff --git a/mockup/patterns/structure/templates/tablerow.xml b/mockup/patterns/structure/templates/tablerow.xml
index fb0f181a2..56f7c0d82 100644
--- a/mockup/patterns/structure/templates/tablerow.xml
+++ b/mockup/patterns/structure/templates/tablerow.xml
@@ -27,8 +27,8 @@
<% } %>
- <% if(attributes["getIcon"] && ( thumbSize != 'none') ){ %>
-
+ <% if(attributes["getIcon"] && ( thumb_scale != 'none') ){ %>
+
<% } %>
diff --git a/mockup/tests/pattern-structure-test.js b/mockup/tests/pattern-structure-test.js
index 0c3ad2e96..e018c652a 100644
--- a/mockup/tests/pattern-structure-test.js
+++ b/mockup/tests/pattern-structure-test.js
@@ -610,7 +610,7 @@ define([
});
it('should display an icon for contents with images', function() {
- this.app.thumbSize = 'tile';
+ this.app.thumb_scale = 'tile';
var model = new Result({
'Title': "Dummy Document",