v1.18.x
psychobunny 11 years ago
parent 9613ea9018
commit 22c73f3c12

@ -127,8 +127,11 @@ var ajaxify = {};
}
} else if (window.location.pathname !== '/outgoing') {
// External Link
ajaxify.go('outgoing?url=' + encodeURIComponent(this.href));
e.preventDefault();
if (config.useOutgoingLinksPage == true) {
ajaxify.go('outgoing?url=' + encodeURIComponent(this.href));
e.preventDefault();
}
}
}
});

@ -70,7 +70,11 @@
<strong>Post Delay</strong><br /> <input type="text" class="form-control" value="10000" data-field="postDelay"><br />
<strong>Minimum Title Length</strong><br /> <input type="text" class="form-control" value="3" data-field="minimumTitleLength"><br />
<strong>Minimum Post Length</strong><br /> <input type="text" class="form-control" value="8" data-field="minimumPostLength"><br />
<div class="checkbox">
<label>
<input type="checkbox" data-field="useOutgoingLinksPage"> <strong>Use Outgoing Links Warning Page</strong>
</label>
</div>
</div>
</form>

@ -28,6 +28,7 @@ var user = require('./../user.js'),
config.minimumUsernameLength = meta.config.minimumUsernameLength;
config.maximumUsernameLength = meta.config.maximumUsernameLength;
config.minimumPasswordLength = meta.config.minimumPasswordLength;
config.useOutgoingLinksPage = meta.config.useOutgoingLinksPage;
res.json(200, config);
});

Loading…
Cancel
Save