mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 15:35:47 +01:00
resolving issue where the post window stays open during navigation
- app.close_post_window now neatly closes the post window
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
// });
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user