displayNode() not working with Bootstrap Displaycontroller

displayNode() not working with Bootstrap Displaycontroller

Maha80Maha80 Posts: 30Questions: 10Answers: 1

Hi Allan,

I was excited to see, that since editor 1.5 you can easy access the modal node. However using this function results in the following error:

TypeError: this.s.displayController.node is not a function
..../datatables/Editor-1.5.0/js/dataTables.editor.js
Line 2307

Do you required live access to the code?

Kind regards

Martin

This question has an accepted answers - jump to answer

Answers

  • Maha80Maha80 Posts: 30Questions: 10Answers: 1

    Can anybody help with this issues?

    Thank you

  • allanallan Posts: 61,840Questions: 1Answers: 10,134 Site admin

    I've just tired it on this example (simply editor.displayNode(); in the browser's console) and it appears to work as expected.

    Can you give me a link to the page showing the issue please?

    Allan

  • Maha80Maha80 Posts: 30Questions: 10Answers: 1
    edited August 2015

    Hi Allan,

    please find the link below:

    http://www.derselbstversorger.com/wip/index.html

    user: .......
    pw: .......

    Kind regards

    Martin

  • allanallan Posts: 61,840Questions: 1Answers: 10,134 Site admin
    Answer ✓

    Thanks.

    In the HTML this is commented out:

    <!--<script type="text/javascript" src="datatables/Editor-1.5.0/js/editor.bootstrap.js"></script>-->
    

    But this one is included:

    <script type="text/javascript" src="js/datatables/editor.bootstrap.js"></script>
    

    The second one looks like it is from Editor 1.4.x. I think that is the issue.

    Allan

  • Maha80Maha80 Posts: 30Questions: 10Answers: 1

    Dear Allan,

    thank you very much!

    I have made some minor modifications to this file in order to optimize the field layout. I had duly compared both versions. However it seems I missed to implement the following function:

        node: function ( dte ) {
            return self._dom.content[0];
        },
    

    I am very sorry. It was my mistake :-/

This discussion has been closed.