Page 1 of 1

Cant get "onchange" scripts with the image manager in 2.0.3

Posted: Fri Jul 24, 2015 8:39 am
by karlpers
Hi there,

This might be a strange question, however, Im trying to build a module. The module should have a image uploading feature, which is added and works just fine. I would though need to perform an onchange event when the input field is changed. For some reason, it dont work.

For example, I upload an image, this is what happens:
- The text files (normally hidden) is changed correctly
- The thumb is changed correctly

But, this doesnt fire off. If I manually change the input field it works as expected.

Code: Select all

<input type="text" name="input1[thumb_image]" value="<?php echo isset($section['thumb_image']) ? $section['thumb_image'] : ''; ?>" id="input-image1" onchange="$('#header').css('display', 'none');" />
Someone have seen this before, and got it working somehow?

Really thankful if you know any suggestions!

Re: Cant get "onchange" scripts with the image manager in 2.

Posted: Tue Aug 11, 2015 8:52 am
by qart