[BUG] 175 - changeFolder() JS in elements.js

Status
Not open for further replies.

cheesegrits

Support Gopher
Rob,

Unless I'm losing my mind, you seem to have introduced a 2.x dependency into 1.04, in changeFolder(), around line 217 in elements.js:

Code:
		var url = 'index2.php?option=com_fabrik&no_html=1&Itemid=' + this.options.Itemid + '&task=elementPluginAjax&plugin=fabrikImage&method=ajax_GetImages&element_id=' + this.options.id + '&f=' + encodeURIComponent(this.selectedFolder);

... which is referencing the new 'plugin' features of 2.0 for handling the AJAX. Needless to say, this don't work too good in 1.04. Try creating an Image element, allow front end selection, and point to a root that has sub folders. Then try changing folders on the front end. :)

Anyhoo, this is way beyond me. You'll have to fix this one! Then I can get on with fixing what I was actually trying to fix, which is Image element values being assigned with "- Select Folder -" instead of the actual folder path.

-- hugh
 
Hi Hugh

Try now with rev 181. I've kept the ajax call an implemented a very scaled down version of the plugin call in fabrik.php

Cheers
Rob
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top