Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Image Captions on Thumbnail View #77

Open
wants to merge 8 commits into
base: improve-build
Choose a base branch
from
2 changes: 1 addition & 1 deletion PortalApp/app/view/ThumbnailView.js

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies, but we realized that the previous change was not working properly for cases where more than two fields were configured for imageInfoFlds. This should address that.

Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Ext.define('SpWebPortal.view.ThumbnailView', {
prepareData: function (data) {
Ext.apply(data, {
shortName: Ext.util.Format.ellipsis(data.Title, 15),
AttachedToDescrFormatted: data.AttachedToDescr.replace('\n', '<br>')
AttachedToDescrFormatted: data.AttachedToDescr.split('\n').join('<br>')
})
return data
},
Expand Down