uploads: change loading indicator for thumbnails.
Use a spinner icon instead of the word "Loading" for thumbnails that are being processed in the background in a batch upload. Also use morphdom to update thumbnails so we only update the parts of the DOM that actually changed.
This commit is contained in:
@@ -9,6 +9,7 @@ import "core-js/web/dom-collections";
|
||||
require('@rails/ujs').start();
|
||||
require('hammerjs');
|
||||
require('jquery-hotkeys');
|
||||
import morphdom from 'morphdom';
|
||||
|
||||
// should start looking for nodejs replacements
|
||||
importAll(require.context('../vendor', true, /\.js$/));
|
||||
@@ -91,4 +92,5 @@ Danbooru.error = Utility.error;
|
||||
|
||||
window.$ = jQuery;
|
||||
window.jQuery = jQuery;
|
||||
window.morphdom = morphdom;
|
||||
window.Danbooru = Danbooru;
|
||||
|
||||
Reference in New Issue
Block a user