diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-05-03 00:45:40 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-05-03 00:45:40 +0200 |
| commit | 05abca52782442dacb06d98f8433c0a8666b4e55 (patch) | |
| tree | cee13495c178a58461be808c7609574da7bddb0d /StoneIsland/www/js/lib/blogs | |
| parent | 351ba369d4d5939f207fd5e5151fe5a6ef4361fe (diff) | |
app
Diffstat (limited to 'StoneIsland/www/js/lib/blogs')
| -rwxr-xr-x | StoneIsland/www/js/lib/blogs/BlogView.js | 4 | ||||
| -rwxr-xr-x | StoneIsland/www/js/lib/blogs/HubView.js | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/StoneIsland/www/js/lib/blogs/BlogView.js b/StoneIsland/www/js/lib/blogs/BlogView.js index 55320e7c..ed17e684 100755 --- a/StoneIsland/www/js/lib/blogs/BlogView.js +++ b/StoneIsland/www/js/lib/blogs/BlogView.js @@ -92,13 +92,15 @@ var BlogView = View.extend({ console.log(app.store.StoreStatus) + console.log(app.store.FitsLarge, app.store.fitsLargeText) app.product.fitLargeCodes = {} if (app.store.FittingCodes.length) { app.store.FittingCodes.split("\n").forEach(function(code){ app.product.fitLargeCodes[code] = true }) + console.log(app.store.FitsLarge, app.store.fitsLargeText) if (app.store.FitsLarge === 'use_alt_text' && (app.store.FitsLargeText || "").length) { - var fit_lines = app.store.FitsLargeText.split('\n').replace(/</g, "<").replace(/>/g, "&rt;").join("<br>") + var fit_lines = app.store.FitsLargeText.replace(/</g, "<").replace(/>/g, "&rt;").split('\n').join("<br>") $('.fit').html(fit_lines) $('.fit').addClass('altText') } diff --git a/StoneIsland/www/js/lib/blogs/HubView.js b/StoneIsland/www/js/lib/blogs/HubView.js index c09dd3b3..5e2ff67e 100755 --- a/StoneIsland/www/js/lib/blogs/HubView.js +++ b/StoneIsland/www/js/lib/blogs/HubView.js @@ -183,7 +183,7 @@ var HubLoader = (function(){ HubLoader.build = function(){ view.append(item) view.scroller.refresh() - if (count < 20 && ! needed) return + if (count < 2 && ! needed) return // if (count === 10) return setTimeout(HubLoader.load, count < 10 ? 1000 : 5000) } |
