Browse Source

Updated

Fixed Gulp not rebuilding fontello CSS on development mode.

Updated dashboard's thumbs view to only call LazyLoad's update function
once.

Bumped v1 version string.
Bobby Wibowo 3 weeks ago
parent
commit
0baf6b9275
5 changed files with 8 additions and 5 deletions
  1. 1 1
      dist/js/dashboard.js
  2. 1 1
      dist/js/dashboard.js.map
  3. 1 1
      gulpfile.js
  4. 4 1
      src/js/dashboard.js
  5. 1 1
      src/versions.json

File diff suppressed because it is too large
+ 1 - 1
dist/js/dashboard.js


File diff suppressed because it is too large
+ 1 - 1
dist/js/dashboard.js.map


+ 1 - 1
gulpfile.js

@@ -122,7 +122,7 @@ gulp.task('default', gulp.series('lint', 'clean', 'build', 'exec:bump-versions')
 gulp.task('watch:css', () => {
   return gulp.watch([
     'src/**/*.css'
-  ], gulp.series('clean:css', 'build:css'))
+  ], gulp.series('clean:css', 'build:css', 'build:fontello'))
 })
 
 gulp.task('watch:js', () => {

+ 4 - 1
src/js/dashboard.js

@@ -645,8 +645,11 @@ page.getUploads = (params = {}) => {
 
         table.appendChild(div)
         page.checkboxes[page.currentView] = table.querySelectorAll('.checkbox[data-action="select"]')
-        page.lazyLoad.update()
       }
+
+      // Scrolling from bottom to top
+      // will cause all thumbs to be loaded in advance anyway
+      page.lazyLoad.update()
     } else {
       page.dom.innerHTML = `
         ${pagination}

+ 1 - 1
src/versions.json

@@ -1,5 +1,5 @@
 {
-  "1": "1569041231",
+  "1": "1569126344",
   "2": "1568894058",
   "3": "1568894058",
   "4": "1568894058",