diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-10-11 13:34:38 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-10-27 20:11:30 +0100 |
commit | 25e90d8d75382721ff7473fa1686090fcfeb46ff (patch) | |
tree | aad18c29535d62b81c7991c4ae916bd596761ee6 /tpl | |
parent | 5d8de7587d67b5c3e5d1fed8562d9b87ecde80c1 (diff) | |
download | Shaarli-25e90d8d75382721ff7473fa1686090fcfeb46ff.tar.gz Shaarli-25e90d8d75382721ff7473fa1686090fcfeb46ff.tar.zst Shaarli-25e90d8d75382721ff7473fa1686090fcfeb46ff.zip |
Bulk creation: fix private status based on the first form
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/default/addlink.html | 4 | ||||
-rw-r--r-- | tpl/default/editlink.html | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tpl/default/addlink.html b/tpl/default/addlink.html index 7d4bc9e6..4aac7ff1 100644 --- a/tpl/default/addlink.html +++ b/tpl/default/addlink.html | |||
@@ -62,8 +62,8 @@ | |||
62 | </div> | 62 | </div> |
63 | 63 | ||
64 | <div> | 64 | <div> |
65 | <input type="checkbox" name="private" | 65 | <input type="hidden" name="private" value="0"> |
66 | {if="$default_private_links"} checked="checked"{/if}> | 66 | <input type="checkbox" name="private" {if="$default_private_links"} checked="checked"{/if}> |
67 | <label for="lf_private">{'Private'|t}</label> | 67 | <label for="lf_private">{'Private'|t}</label> |
68 | </div> | 68 | </div> |
69 | </div> | 69 | </div> |
diff --git a/tpl/default/editlink.html b/tpl/default/editlink.html index 980b2b8e..83e541fd 100644 --- a/tpl/default/editlink.html +++ b/tpl/default/editlink.html | |||
@@ -65,7 +65,7 @@ | |||
65 | 65 | ||
66 | <div> | 66 | <div> |
67 | <input type="checkbox" name="lf_private" id="lf_private" | 67 | <input type="checkbox" name="lf_private" id="lf_private" |
68 | {if="($link_is_new && $default_private_links || $link.private == true)"} | 68 | {if="$link.private === true"} |
69 | checked="checked" | 69 | checked="checked" |
70 | {/if}> | 70 | {/if}> |
71 | <label for="lf_private">{'Private'|t}</label> | 71 | <label for="lf_private">{'Private'|t}</label> |