Commit ac1f8f08 authored by Robert Lyon's avatar Robert Lyon
Browse files

Entry count updates on deletion of journal entry (Bug #1287922)



Before the count was only updating on page relaod - now it updates on
ajaxy delete.

Change-Id: I7a37f9322b2a55e55a7eed18fb05ee44f6561e36
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent dfdbdec3
......@@ -86,6 +86,10 @@ function delete_success(form, data) {
}
addElementClass('postdescription_' + data.id, 'hidden');
addElementClass('posttitle_' + data.id, 'hidden');
var results = \$j('#blogpost_pagination div.results').html();
var oldcount = parseInt(results);
var newcount = oldcount - 1;
\$j('#blogpost_pagination div.results').html(results.replace(oldcount, newcount));
progressbarUpdate('blogpost', true);
}
EOF;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment