• Resolved mmoore5553

    (@mmoore5553)


    I am having an issue where i set the jquery and have the modal click on the image and then it changes can input selector but it is suppose to close. No jquery is allowing it to close. Can i put the options to make it resizable and movable ? After i pick the image I want it to close after it changes the input.

    <button type = “button” class=”eModal-1″>Open Modal</button>

    <script>

    $(document).ready(function () {

    $(‘#eModal-1 img’).click(function(event){
    event.preventDefault();
    $(‘#input_1_7’).val($(this).attr(‘alt’));
    $(‘#eModal-1’).dialog(‘close’);
    });

    });
    </script>

    https://www.ads-software.com/plugins/easy-modal/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter mmoore5553

    (@mmoore5553)

    i figured it out. I had to change
    $(‘#eModal-1’).dialog(‘close’);

    to

    $(‘#eModal-1’).emodal(‘close’);

    Thread Starter mmoore5553

    (@mmoore5553)

    I still need help with resizable and move option ?

    Plugin Author Daniel Iser

    (@danieliser)

    @mmoore5553 – So you want the popup to be draggable? That would require using something like jQuery UI and should in all reality work just fine. Load jQuery ui via wp_enqueue_script and then try something like jQuery(‘#eModal-1’).draggable();

    Hope this helps, sorry for the delay.

    Thread Starter mmoore5553

    (@mmoore5553)

    Thank you. I did finally figure it out but nice to know it is done that way. I did it a harder way.

    Plugin Author Daniel Iser

    (@danieliser)

    @mmoore5553 – how did you end up doing it? Popup Maker ( a direct replacement for Easy Modal ) has an extension nearly done that does this type of functionality, though I don’t think it will be a huge seller.

    Glad you got it working.

    Thread Starter mmoore5553

    (@mmoore5553)

    oh i change some of the code around to accept draggable from jquery as i did not see it in the files you had. I looked at that version and i was not impressed. I like the simplicity of this one and it did not have all the bell and whistles i did not need. This plugin was very straight forward .

    Plugin Author Daniel Iser

    (@danieliser)

    @mmoore5553 – Hmm, popup maker is very lightweight and simply adds the missing pieces that EM always lacked. I would say that about 60% of the code base is the same though. What in particular did you feel was too much?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘issue with pop up’ is closed to new replies.