LPS-51322 - Shopping Portlet category dialogs open in new windows

Hi Jon,

Attached is an update for https://issues.liferay.com/browse/LPS-51322.

I fixed a couple issues where I think Liferay.Util.openWindow was accidentally removed with the event binding.  Also there was one area where I was getting a Java error because it was trying to use the searchContainer var outside of the search-container tag.

Also I noticed there was a JS error when creating an item because the select category button isn't on the page.  I moved the script tag into the if block to fix it.

Please let me know if there are any issues.

Thanks!