data-priority not working with bootstrap?

data-priority not working with bootstrap?

vynnusvynnus Posts: 2Questions: 1Answers: 0

this is my testing URL:
https://goo.gl/jZJbfX

I have set data-priority to 3 <th> but I see no effect at all.
Also in responsive mode when I click the blue (+) icon I cant type in the textfield.

Yesterday I could make it with the base theme.

Answers

  • allanallan Posts: 63,839Questions: 1Answers: 10,518 Site admin

    I'm currently getting an error on the page because the server is returning null from the Ajax request to server-response.php.

    "aServerSide": true,

    There is no such parameter. You might mean serverSide. But only if you have written your server-side script for server-side processing.

    Allan

  • vynnusvynnus Posts: 2Questions: 1Answers: 0

    thank you Allan, I managed to fix it with your help

    Now I need one more thing.

    As you can see here:
    https://goo.gl/uzdMJ1

    there's a default message "not products found" inside the table

    What I need is:
    if the state and city were not selected than show a X message
    if both are selected and if a search returns no results than show Y message

    Here's the current code I have:

    "fnDrawCallback": function (oSettings) {
    if($('#table tbody tr').length == 1 && $("#table .dataTables_empty").length == 1){
    $(".dataTables_empty").html("Nenhum produto encontrado");
    }
    },
    
  • allanallan Posts: 63,839Questions: 1Answers: 10,518 Site admin

    You are correct - you'd need to use a drawCallback function like that as there is no API to dynamically change the empty table message.

    Allan

This discussion has been closed.