Jump to content
DLH001

Remove Bids - Problem

Recommended Posts

Hi!

I have a problem of my virtual airline.

I can't remove bid in my page.

I double click and I have a white page.

It's very important.for me.

But in the admin, I can delete the bid pilot.

Thx

------------------------------------------------------

Sorry for my english, I'm French :) :) :)

Share this post


Link to post
Share on other sites
On 2015/12/6 at 4:26 PM, ethnicfsx said:

Hello

Probably your problem is same that me, you forgot form and input field for send post value ?

How to deal with

Share this post


Link to post
Share on other sites
On 16/7/2014 at 11:28 AM, DLH001 said:

Hi!

I have a problem of my virtual airline.

I can't remove bid in my page.

I double click and I have a white page.

It's very important.for me.

But in the admin, I can delete the bid pilot.

Thx

------------------------------------------------------

Sorry for my english, I'm French :) :) :)

that is problem with jquery (conflict).

Can you check in your browser console? 

Share this post


Link to post
Share on other sites
On 6/6/2019 at 6:30 PM, Karamellwuerfel said:

Hey there, I've the same issue and implemented jquery on the page. @ProSkyDesign

@DLH001 What was the solution? My browser (chrome) doesn't show anything in the console.

Thanks!

Hey!, I was out of vms projects because I was very bussy with Others projects, send me a PM with the url of your site and I’ll help you.

Share this post


Link to post
Share on other sites

Hey, I found a solution:

The problem is, the function "removebid" in the core/modules/Schedules/Schedules.php is waiting for a POST request but no post request is send by the page of my bids.

I simply wrote a jquery script to send an ajax post request to the function and it works. I pasted script into the schedule_bids.php. Just adding a fadout to the removed bid and that's it :)

The javascript/jquery script:

<!-- REMOVE BIDS HELPER - START -->
<script>
    $(document).ready(function() {
        $(".deleteitem").dblclick(function() {
            var bid_id = $(this).attr("id");
            console.log(bid_id);
            $.ajax({
                type: "POST",
                url: "<?= url('/schedules/removebid') ?>",
                data:{
                    id: bid_id
                },
                success:function(response) {
                    $('#bid'+bid_id).fadeOut( "slow" );
                    $('#message').html('<div class="alert alert-success" role="alert">Flugbuchung wurde gelöscht.</div>');
                },
                error:function(){
                    $('#message').html('<div class="alert alert-danger" role="alert">Flugbuchung konnte nicht gelöscht werden.</div>');
                }
            });

        });
    });
</script>
<!-- REMOVE BIDS HELPER - END -->

Kind regards :) 

Edited by Karamellwuerfel

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...