WL-3345

Make ajax post synchronous so that pop up does not get swallowed up.

In more detail, what is happening is that clicking the 'Sakai Resource Picker' button fires off an asynchronous ajax request to get some resources, urls, data, etc and then show the pop up but in the meantime the click function has returned and swallows the pop up.