common.js fix: show warning before deleting a post