diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-04-10 18:20:54 +0100 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-04-10 20:26:57 +0100 |
commit | 40e2be25c74aef14a94cf9dff4e80554958fd347 (patch) | |
tree | e756b067f9fb61b2390d7aa9686e4add55e633d6 /app/assets/javascripts/blob/balsamiq | |
parent | 75d3ed9a43eceda6a375e1538945a20c97925841 (diff) | |
download | gitlab-ce-40e2be25c74aef14a94cf9dff4e80554958fd347.tar.gz |
Added unit tests
Diffstat (limited to 'app/assets/javascripts/blob/balsamiq')
-rw-r--r-- | app/assets/javascripts/blob/balsamiq/balsamiq_viewer.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/blob/balsamiq/balsamiq_viewer.js b/app/assets/javascripts/blob/balsamiq/balsamiq_viewer.js index 0065584cec5..d0c161f2aad 100644 --- a/app/assets/javascripts/blob/balsamiq/balsamiq_viewer.js +++ b/app/assets/javascripts/blob/balsamiq/balsamiq_viewer.js @@ -1,7 +1,7 @@ /* global Flash */ -import Spinner from '../../spinner'; import sqljs from 'sql.js'; +import Spinner from '../../spinner'; class BalsamiqViewer { constructor(viewer) { @@ -32,7 +32,7 @@ class BalsamiqViewer { this.initDatabase(loadEvent.target.response); const previews = this.getPreviews(); - const renderedPreviews = previews.map(preview => this.renderPreview(preview, container)); + const renderedPreviews = previews.map(preview => this.renderPreview(preview)); container.innerHTML = renderedPreviews.join(''); container.classList.add('list-inline', 'previews'); @@ -68,7 +68,7 @@ class BalsamiqViewer { const name = JSON.parse(title[0].values[0][2]).name; const image = preview.image; - template = template.replace(/{{name}}/, name).replace(/{{image}}/, image); + template = template.replace(/{{name}}/g, name).replace(/{{image}}/g, image); return template; } |