Length filter loses prepended custom filter value

Length filter loses prepended custom filter value

jrizzi1jrizzi1 Posts: 44Questions: 12Answers: 3
edited May 2015 in Free community support

here is my example

to recreate:

  1. open your network panel in firebug or chrome to see the requests

  2. change the custom filter #fundraiser_id, note that the header form_data shows the new selection you have made (i_fundraiser)

  3. change the length filter to any new value

by looking at the header form_data, you will now see that the parameter has returned to its defaulted value

the offender appears to be
.prependTo("#example_length")

by commenting that out, it works fine

Im not sure whats going on here, I attempted to add the prepend to the table by drawCallback method, but the same problem exists

    "drawCallback": function( settings ) {
      $("#fr_dd")
          .prependTo("#example_length")
          .removeClass('hide');
    },

Any thoughts?

Answers

  • jrizzi1jrizzi1 Posts: 44Questions: 12Answers: 3

    -_-

    i fixed this by prepending my custom filter to a custom div in my dom entry instead of to the length filter

    ...
    dom: "<'row'<'col-md-6 '<\"#controls\">l><'col-md-6 pull-right'>>tr<'row'<'col-md-6'i><'col-md-6'p>>",
    ...
    });
    $("#fr_dd")
        .prependTo("#controls")
        .removeClass('hide');
    
    
This discussion has been closed.