Added js function to check if there is invalid valid before saving and added a body on click listener to detect on blur on the inline editing screen

BMS-131

Reviewer: Aldrin Batac