half broken editing

This commit is contained in:
Julian Lam
2013-06-04 16:47:07 -04:00
parent 2b4782b376
commit 061c7a9e66
4 changed files with 31 additions and 21 deletions

View File

@@ -162,11 +162,13 @@
var pid = ($(this).attr('id') || $(this.parentNode).attr('id')).split('_')[1];
var main = $(this).parents('.main-post');
if(main.length > 0)
app.open_post_window('edit', tid, topic_name, pid);
else
app.open_post_window('edit', tid, "", pid);
// if(main.length > 0)
// app.open_post_window('edit', tid, topic_name, pid);
// else
// app.open_post_window('edit', tid, "", pid);
require(['composer'], function(cmp) {
cmp.push(null, null, pid);
});
});
$('.post-container').delegate('.delete', 'click', function(e) {
@@ -448,13 +450,6 @@
}
});
jQuery(div + ' .edit, ' + div + ' .delete').each(function() {
var ids = this.id.replace('ids_', '').split('_'),
pid = ids[0],
uid = ids[1];
});
jQuery(div + ' .favourite').click(function() {
var ids = this.id.replace('favs_', '').split('_'),
pid = ids[0],