+ refreshImageGallery(params) {
+ if (this.galleryLink) {
+ params = $.extend({}, params, {
+ url: reverse("ajax_document_gallery", this.galleryLink)
+ });
+ }
+ this.refreshGallery(params);
+ }
+
+ refreshScansGallery(params) {
+ if (this.scansLink) {
+ params = $.extend({}, params, {
+ url: reverse("ajax_document_scans", this.scansLink)
+ });
+ this.refreshGallery(params);
+ } else {
+ // Fallback to image gallery.
+ this.refreshImageGallery(params)
+ }
+ }
+