post replies, unfinished

This commit is contained in:
psychobunny
2013-05-01 18:25:24 +00:00
parent f8345a1223
commit 0f3f2bb859
4 changed files with 18 additions and 6 deletions

View File

@@ -78,12 +78,16 @@ var socket,
}
}
var post_window = null;
app.open_post_window = function() {
var post_window = null,
mode = 'topic',
topic_id = null;
app.open_post_window = function(post_mode, id) {
post_window = post_window || document.getElementById('post_window');
jQuery(post_window).slideToggle(250);
document.getElementById('post_title').focus();
mode = (post_mode == null) ? 'topic' : mode;
topic_id = (mode == 'reply') ? topic_id : null;
};
app.post_topic = function() {