Add suppress interstice option

This commit is contained in:
Teremiare
2016-01-23 13:49:34 +01:00
parent cbb0c5f999
commit 820d4aa0e8
2 changed files with 2 additions and 1 deletions

View File

@@ -554,7 +554,7 @@ var Tools = {
onclick = "return selectTab('" + m[1] + "');";
} else {
var event;
if (Tools.interstice.isWhitelisted(fulluri)) {
if (Tools.interstice.isWhitelisted(fulluri) || options.hideinterstice) {
event = 'External link';
} else {
event = 'Interstice link';

View File

@@ -556,6 +556,7 @@
buf += '<p><label class="optlabel"><input type="checkbox" name="me" ' + (cur.hideme ? 'checked' : '') + ' /> Suppress <code>/me</code> <em>action formatting</em></label></p>';
buf += '<p><label class="optlabel"><input type="checkbox" name="spoiler" ' + (cur.hidespoiler ? 'checked' : '') + ' /> Suppress spoiler hiding</label></p>';
buf += '<p><label class="optlabel"><input type="checkbox" name="links" ' + (cur.hidelinks ? 'checked' : '') + ' /> Suppress clickable links</label></p>';
buf += '<p><label class="optlabel"><input type="checkbox" name="interstice"' + (cur.hideinterstice ? 'checked' : '') + ' /> Don\'t warn for untrusted links</label></p>';
buf += '<p><button name="close">Close</button></p>';
this.$el.html(buf);
},