Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Renamed clearFeaturedMedia to more generic clearMedia to add clear button for all media select buttons

givanza03802103e19
diff --git a/public/js/admin/functions.js b/public/js/admin/functions.js
index eb0d42c..bb1d9b2 100644
--- a/public/js/admin/functions.js
+++ b/public/js/admin/functions.js
@@ -40,7 +40,7 @@ function removeRow(element, elementName = false) {
}
-function clearFeaturedMedia(id = "featured-image") {
+function clearMedia(id = "featured-image") {
document.getElementById(id + "-input").value = "";
document.getElementById(id + "-thumb").setAttribute("src","img/placeholder.svg");
}