resolve/refinerycms-blog — Issue #153: Adding document links has errors during page load
Author: pingfr
Created: 2011-11-17 19:59:05+00:00
State: open

We are seeing some odd behavior when adding document links to a page in Refinery. One of our customers noticed it first and I have been able to recrate it. When trying to add a document link to a page, we get the bowser's document download dialog rather than the expected document selection. After doing some testing, I suspect that the problem is during the page load. When the page is loading the documents to display, not all the Javascript support is in place until the load is complete. This causes the browser to get and process the click before the Javascript can intercept it.

There also seem to be side affects to this problem. After the download dialog is displayed and I click on the cancel button on the add link page, it redirects back to a view of the page I am adding the link to. I would expect it to close and return to the page editor in the browser window that it opened from. In some caes this even causes the page editor to freeze. I have to leave the page (save or cancel) and then come back to continue editing.

The client that we have has a bunch of documents. Four or five pages worth. It is easier for me to recreate this in that situation, but have done it with fewer. We are both using Internet Explorer. I am IE8. I think they are IE6. I haven't tested this yet in any other mozilla browsers. Unfortunately our customer is tied to IE.

Here are the steps to recreate it:
1. Go to the pages tab in the Refinery Editor
2. Select a page to edit
3. Enter some text, highlight, and choose the "Add Link" button.
4. Select to add a file link. As quickly as possible try to select a link on the page. If you catch a link early enough, you will get the browser document download dialog. This could be difficult to recreate because it depends on the speed the page loads the document list.

I don't know what can be done here. Anything that would either stop default browser processing as the page loads or speeds up the page load for documents would probably help. I suspect this is a probelm tied to the Add Link page, so may be an issue on icons or other link types as well. This mostly causes confusion on the customer part. It also slows down the process of adding links to a site. Neither of these is a fatal issue. Just very annoying.