Restore confirm modal for front office editing and update javascript