From 624ccc592cd55aabbbde63da266e8cadc5bb2b62 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 21 May 2013 20:20:54 -0400 Subject: [PATCH] resolving issue where the post window stays open during navigation - app.close_post_window now neatly closes the post window --- public/src/ajaxify.js | 3 +++ src/webserver.js | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) 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); + // }); });