We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 959bc77 commit 8b5f80fCopy full SHA for 8b5f80f
public/js/admin/functions.js
@@ -44,13 +44,7 @@ function removeRow(element, elementName = false) {
44
return row.remove();
45
}
46
47
-
48
-function clearMedia(id = "featured-image") {
49
- document.getElementById(id + "-input").value = "";
50
- document.getElementById(id + "-thumb").setAttribute("src","img/placeholder.svg");
51
-}
52
53
-const slugify = (str) => {
+function slugify(str) {
54
if (str) {
55
return str.normalize('NFD').replace(/[\u0300-\u036f]/g, '') // Remove accents
56
.replace(/([^\w]+|\s+)/g, '-') // Replace space and other characters by hyphen
0 commit comments