resolving issue where the post window stays open during navigation

- app.close_post_window now neatly closes the post window
v1.18.x
Julian Lam
parent 74c13ba299
commit 624ccc592c

@ -48,6 +48,9 @@ var ajaxify = {};
jQuery('#footer, #content').fadeOut(100); jQuery('#footer, #content').fadeOut(100);
// Close the post window if it is open
app.close_post_window();
templates.load_template(function() { templates.load_template(function() {
exec_body_scripts(content); exec_body_scripts(content);

@ -237,9 +237,9 @@ var express = require('express'),
app.get('/api/:method/:id*', api_method); app.get('/api/:method/:id*', api_method);
app.get('/test', function(req, res) { app.get('/test', function(req, res) {
topics.get_latest_undeleted_pid(5, function(pid) { // topics.get_latest_undeleted_pid(5, function(pid) {
res.send(pid); // res.send(pid);
}); // });
}); });

Loading…
Cancel
Save