|
@@ -52,7 +52,7 @@ layout: default
|
|
|
// include a field removal button
|
|
|
var destination = document.getElementById("builder-field");
|
|
|
if (content == null) { content = ""; }
|
|
|
- var output = '\n<div><a onclick="this.parentNode.remove()" id="delete-module"><img src="{% link assets/tabler_icons/x.svg %}" align="right"/></a>';
|
|
|
+ var output = '\n<div><a onclick="this.parentNode.remove()"><img src="{% link assets/tabler_icons/x.svg %}" class="delete-module" align="right" /></a>';
|
|
|
output += '<span class="question">' + content + '</span>';
|
|
|
output += '<p contenteditable="true" class="editable output" id="custom-field"></p></div>\n';
|
|
|
destination.innerHTML += output;
|
|
@@ -88,6 +88,7 @@ layout: default
|
|
|
classDisplayAll("section","block");
|
|
|
classDisplayAll("button","none");
|
|
|
classDisplayAll("question","none");
|
|
|
+ classDisplayAll("delete-module","none");
|
|
|
var editableFields = document.getElementsByClassName("editable");
|
|
|
// de-editable-ize the editable fields
|
|
|
for (var i = 0; i < editableFields.length; i++) {
|
|
@@ -144,6 +145,7 @@ layout: default
|
|
|
classDisplayAll("section","none");
|
|
|
classDisplayAll("link-text","inline");
|
|
|
classDisplayAll("link-url","inline");
|
|
|
+ classDisplayAll("delete-module","inline");
|
|
|
// link handling TKTK
|
|
|
// author handling
|
|
|
document.getElementById("authorship-result").style.display = "none";
|
|
@@ -393,7 +395,7 @@ layout: default
|
|
|
<input contenteditable="true" placeholder="Custom..." />
|
|
|
<img src="{% link assets/tabler_icons/bulb.svg %}"
|
|
|
draggable="false" />
|
|
|
- <a onclick="this.parentNode.remove()" id="delete-module"
|
|
|
+ <a onclick="this.parentNode.remove()" class="delete-module"
|
|
|
style="display:none">
|
|
|
<img src="{% link assets/tabler_icons/x.svg %}" /></a>
|
|
|
</span>
|
|
@@ -405,7 +407,7 @@ layout: default
|
|
|
<a target="_blank" href="{{ module.url }}">
|
|
|
<img src="{% link assets/tabler_icons/link.svg %}"
|
|
|
draggable="false" /></a>
|
|
|
- <a onclick="this.parentNode.remove()" id="delete-module"
|
|
|
+ <a onclick="this.parentNode.remove()" class="delete-module"
|
|
|
style="display:none">
|
|
|
<img src="{% link assets/tabler_icons/x.svg %}" /></a>
|
|
|
</span>
|