Comment 2 for bug 123530

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/2579
Committed: http://gitorious.org/mahara/mahara/commit/2d855e68254839c5695959497ff6e377a8fd0c74
Submitter: Aaron Wells (<email address hidden>)
Branch: master

commit 2d855e68254839c5695959497ff6e377a8fd0c74
Author: Robert Lyon <email address hidden>
Date: Mon Oct 7 12:49:58 2013 +1300

Problems with image gallery and file/folder selection
Bug 123530 and Bug 1236122

When js slideshow was chosen on a page without a slideshow block
(eg a new page) the js code returned by the selection was not loaded
fast enough

- I've altered it so the js is loaded on opening of config block

- Also folder was not staying selected when re-editing the block
due to it being not ArtefactTypeFile - have adjusted the check to
include ArtefactTypeFolder as well

- The switching between My files and Site files was breaking due to
folder artefact chooser not having certain elements on the page that the
js was trying to access. Have made it so js checks for elements before
trying to update them.

Change-Id: I9b8cbe786b0d35109f05a664f04665e9a9967d92
Signed-off-by: Robert Lyon <email address hidden>