added data-nil to showard links
This commit is contained in:
parent
3e4368c0f4
commit
e670861f3e
1 changed files with 3 additions and 0 deletions
|
@ -101,6 +101,7 @@ function generateShowcardHTML() {
|
||||||
$_a_tag_$<span class="best_in_place best_in_place_link" \
|
$_a_tag_$<span class="best_in_place best_in_place_link" \
|
||||||
data-url="/topics/$_id_$" \
|
data-url="/topics/$_id_$" \
|
||||||
data-object="topic" \
|
data-object="topic" \
|
||||||
|
data-nil="$_link_nil_$" \
|
||||||
data-attribute="link" \
|
data-attribute="link" \
|
||||||
data-type="input">$_link_$</span>$_close_a_tag_$ \
|
data-type="input">$_link_$</span>$_close_a_tag_$ \
|
||||||
</div> \
|
</div> \
|
||||||
|
@ -198,6 +199,8 @@ function replaceVariables(html, node) {
|
||||||
html = html.replace(/\$_go_link_\$/g, go_link);
|
html = html.replace(/\$_go_link_\$/g, go_link);
|
||||||
html = html.replace(/\$_a_tag_\$/g, a_tag);
|
html = html.replace(/\$_a_tag_\$/g, a_tag);
|
||||||
html = html.replace(/\$_close_a_tag_\$/g, close_a_tag);
|
html = html.replace(/\$_close_a_tag_\$/g, close_a_tag);
|
||||||
|
|
||||||
|
html = html.replace(/\$_link_nil_\$/g, link_nil);
|
||||||
if (node.getData("link") == "" && authorizeToEdit(node)) {
|
if (node.getData("link") == "" && authorizeToEdit(node)) {
|
||||||
html = html.replace(/\$_link_\$/g, link_nil);
|
html = html.replace(/\$_link_\$/g, link_nil);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue