Skip to content

Node.js based forum software built for the modern web

resolving issue where the post window stays open during navigation

Julian Lam624ccc592cd5
diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js
index 19a5fd123f..8bbfdc1595 100644
--- a/public/src/ajaxify.js
+++ b/public/src/ajaxify.js
@@ -48,6 +48,9 @@ var ajaxify = {};
jQuery('#footer, #content').fadeOut(100);
+ // Close the post window if it is open
+ app.close_post_window();
+
templates.load_template(function() {
exec_body_scripts(content);
diff --git a/src/webserver.js b/src/webserver.js
index 90356b191e..38daf44d13 100644
--- a/src/webserver.js
+++ b/src/webserver.js
@@ -237,9 +237,9 @@ var express = require('express'),
app.get('/api/:method/:id*', api_method);
app.get('/test', function(req, res) {
- topics.get_latest_undeleted_pid(5, function(pid) {
- res.send(pid);
- });
+ // topics.get_latest_undeleted_pid(5, function(pid) {
+ // res.send(pid);
+ // });
});