Skip to content

Commit a038021

Browse files
committed
Renamed clearFeaturedMedia to more generic clearMedia to add clear button for all media select buttons
1 parent 6c943ec commit a038021

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/js/admin/functions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function removeRow(element, elementName = false) {
4040
}
4141

4242

43-
function clearFeaturedMedia(id = "featured-image") {
43+
function clearMedia(id = "featured-image") {
4444
document.getElementById(id + "-input").value = "";
4545
document.getElementById(id + "-thumb").setAttribute("src","img/placeholder.svg");
4646
}

0 commit comments

Comments
 (0)