Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

114
Visualizações
jquery-ui-sortable not working in Firefox

Currently I have a sortable card container where the user can drag the cards and place them in any position they want to. I am using jquery.ui.widget.js library to do this. The following is the code in my AJAX to achieve this.

$('.sortable').sortable({
            cursor: 'move',
            start: function(event, ui) {
                ui.item.addClass('grabbing moving').removeClass('col-sm-6');
                ui.placeholder
                    .addClass('starting')
                    .removeClass('moving')
                    .css({
                        top: ui.originalPosition.top,
                        left: ui.originalPosition.left
                    });
            },
            change: function(event, ui) {
                ui.placeholder.removeClass('starting');
            },
            update: function(event, ui) {
                $.ajax({
                    url: '<?php echo site_url('listings/sortlisimages/' . $this->uri->segment(3)); ?>',
                    type: 'POST',
                    dataType: "json",
                    data: $(this).sortable('serialize'),
                    success: function(data) {}
                });
            },
            beforeStop: function(event, ui) {
                ui.placeholder.after(ui.item);
            }
        });

Now this is working in all the browsers I tested with except for FireFox. I'm basically trying this out: https://jqueryui.com/sortable/ and this example works in firefox for their official website so it's not a compatibality issue, yet for mine it does not work on firefox, not sure why. Also there are no errors in my console.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda