Fix jQuery bug to toggle inventory_record visibility toggle on icon click or on item click