Skip to content

Commit

Permalink
temporarily disable custom thumbnail support
Browse files Browse the repository at this point in the history
  • Loading branch information
brookgagnon committed Aug 12, 2024
1 parent 3bccae3 commit 572474f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions html/media/addedit_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@
<span class="new_media_status" data-t>File is in Upload Queue</span>
</div>

<!--
<div class="fieldrow">
<label data-t>Thumbnail</label>
<ob-field-thumbnail class="thumbnail_field" data-edit></ob-field-thumbnail>
<button class="copy_to_all" data-field="thumbnail_field" onclick="OB.Media.copyField(this);" title="Copy To All"><i class="far fa-copy"></i></button>
</div>
-->

<div class="fieldrow">
<label class="required" data-t>Artist</label>
Expand Down
4 changes: 2 additions & 2 deletions js/media/addedit.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ OB.Media.save = function () {

if ($(element).attr("data-edit")) item.id = $(element).attr("data-id");

item.thumbnail = $(element).find(".thumbnail_field").val();
// item.thumbnail = $(element).find(".thumbnail_field").val();

item.artist = $(element).find(".artist_field").val();
item.title = $(element).find(".title_field").val();
Expand Down Expand Up @@ -553,7 +553,7 @@ OB.Media.editPage = function (ids) {

let formElem = document.querySelector(".media_addedit:last-child");
formElem.dataset.edit = 1;
formElem.querySelector(".thumbnail_field").value = media.thumbnail;
// formElem.querySelector(".thumbnail_field").value = media.thumbnail;
formElem.querySelector(".artist_field").value = media.artist;
formElem.querySelector(".title_field").value = media.title;
formElem.querySelector(".album_field").value = media.album;
Expand Down

0 comments on commit 572474f

Please sign in to comment.