(bug 48145) Improved input extender/list rotator hiding routine

Using jQuery's closest() instead of messing with stopPropagation().

Change-Id: I7aee23c767e54dc4916241df473cde68df357995