I am trying to upload an image for the following repeatable region:
From the couch application, I click on the 'Browse Server' underneath the 'My_Image' header, which pops up the file chose dialogue.
Then when I click on an image, nothing happens, the Chrome console has the following error message:
Which comes from the function:
The 'id' and 'fileurl' are both populated, $(id) is not finding anything.
The strange thing is, if I do this through a cloneable region, using the exact same
Using the following version...
- Code: Select all
<cms:repeatable name='repeatable_region_list' >
<cms:editable label='My Name' name='my_name' type='text' />
<cms:editable name='My Image' label='my_image' type='image' />
<cms:editable label='My Description' name='my_description' type='text' />
<cms:editable label='My URL' name='my_url' type='text' />
</cms:repeatable>
From the couch application, I click on the 'Browse Server' underneath the 'My_Image' header, which pops up the file chose dialogue.
Then when I click on an image, nothing happens, the Chrome console has the following error message:
- Code: Select all
Uncaught TypeError: Cannot call method 'set' of null
Which comes from the function:
- Code: Select all
function k_browse_result( id, fileurl ){
$(id).set( 'value', fileurl );
The 'id' and 'fileurl' are both populated, $(id) is not finding anything.
The strange thing is, if I do this through a cloneable region, using the exact same
- Code: Select all
<cms:editable name='My Image' label='my_image' type='image' />
Using the following version...
- Code: Select all
CouchCMS - Simple Open-Source Content Management v1.3.5 (build 20130616)