Jquery Error after Upgrading vom Editor v1.3 to 1.5

Jquery Error after Upgrading vom Editor v1.3 to 1.5

Maha80Maha80 Posts: 30Questions: 10Answers: 1
edited August 2015 in Editor

Hi Allan,

I am facing a problem with the new versoin of editor. After invoking the successCallback in the ajax option I get:

TypeError: obj is undefined http://www.derselbstversorger.com/wip/js/jquery-1.11.3.js Line 358

You can check the code live:

http://www.derselbstversorger.com/wip

login: ...
pass: ...

Thank you for your help.

Kind regards

Martin

Answers

  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin

    Hi Martin,

    Thanks for the link and information (I've removed the login information now). It looks like there is a bug in Select when there is no information element shown in the table. Select will update that element to show information about the number of items selected in the table, but it isn't checking if the element actually exists...

    I've just committed a fix, but what you could do just now is use the select.info option. If you set that to false it will stop that error from occurring.

    Regards,
    Allan

  • Maha80Maha80 Posts: 30Questions: 10Answers: 1

    Hi Allan,

    thank you very much for your prompt reply. Unfortunately this does not work, as it disables selection completely, even with full options:

      select: {
                style: 'api',
                items: 'rows',
                info: false
            }
    

    Is there a way to get a handle for the info element, so that I can put it manually inside the table wrapper?

    Kind regards

    Martin

  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin

    Could you try:

    select: {
              style: 'os',
              items: 'rows',
              info: false
          }
    

    The api option for select.style doesn't allow end user selection of items.

    Allan

  • Maha80Maha80 Posts: 30Questions: 10Answers: 1

    This did not work either.

  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin

    Could you put that code live on a page where I can look into what is going wrong please?

    Allan

This discussion has been closed.