Fixed leave_confirm.js, it now works only in report show page