blacklight-spotlight 4.6.1 → 4.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5143,7 +5143,7 @@
5143
5143
  class Pages {
5144
5144
  connect(){
5145
5145
  SirTrevor.setDefaults({
5146
- iconUrl: Spotlight.sirTrevorIcon,
5146
+ iconUrl: Spotlight.sirTrevorIcon || window.sirTrevorIcon,
5147
5147
  uploadUrl: $('[data-attachment-endpoint]').data('attachment-endpoint'),
5148
5148
  ajaxOptions: {
5149
5149
  headers: {
@@ -5996,7 +5996,7 @@
5996
5996
  }
5997
5997
  var resource_id = data.slug || data.id;
5998
5998
  var markup = `
5999
- <li class="field form-inline dd-item dd3-item" data-resource-id="${resource_id}" data-id="${index}" id="${this.formId("item_" + data.id)}">
5999
+ <li class="field form-inline dd-item dd3-item" data-resource-id="${resource_id}" data-id="${index}" id="${this.formId(index)}">
6000
6000
  <input type="hidden" name="item[${index}][id]" value="${resource_id}" />
6001
6001
  <input type="hidden" name="item[${index}][title]" value="${data.title}" />
6002
6002
  ${this._itemPanelIiifFields(index, data)}
@@ -6199,7 +6199,7 @@
6199
6199
  }
6200
6200
  var resource_id = data.slug || data.id;
6201
6201
  var markup = `
6202
- <li class="field form-inline dd-item dd3-item" data-resource-id="${resource_id}" data-id="${index}" id="${this.formId("item_" + data.id)}">
6202
+ <li class="field form-inline dd-item dd3-item" data-resource-id="${resource_id}" data-id="${index}" id="${this.formId(index)}">
6203
6203
  <input type="hidden" name="item[${index}][id]" value="${resource_id}" />
6204
6204
  <input type="hidden" name="item[${index}][full_title]" value="${(data.full_title || data.title)}" />
6205
6205
  <input data-property="weight" type="hidden" name="item[${index}][weight]" value="${data.weight}" />
@@ -6296,7 +6296,7 @@
6296
6296
  }
6297
6297
  var resource_id = data.slug || data.id;
6298
6298
  var markup = `
6299
- <li class="field form-inline dd-item dd3-item" data-resource-id="${resource_id}" data-id="${index}" id="${this.formId("item_" + data.id)}">
6299
+ <li class="field form-inline dd-item dd3-item" data-resource-id="${resource_id}" data-id="${index}" id="${this.formId(index)}">
6300
6300
  <input type="hidden" name="item[${index}][id]" value="${resource_id}" />
6301
6301
  <input type="hidden" name="item[${index}][title]" value="${data.title}" />
6302
6302
  <input data-property="weight" type="hidden" name="item[${index}][weight]" value="${data.weight}" />
@@ -6908,7 +6908,7 @@
6908
6908
  var dataUrl = data.url || data.file.url;
6909
6909
 
6910
6910
  var markup = `
6911
- <li class="field form-inline dd-item dd3-item" data-id="${index}" id="${this.formId("item_" + dataId)}">
6911
+ <li class="field form-inline dd-item dd3-item" data-id="${index}" id="${this.formId(index)}">
6912
6912
  <input type="hidden" name="item[${index}][id]" value="${dataId}" />
6913
6913
  <input type="hidden" name="item[${index}][title]" value="${dataTitle}" />
6914
6914
  <input type="hidden" name="item[${index}][url]" data-item-grid-thumbnail="true" value="${dataUrl}"/>