WordPress.org

Ready to get started?Download WordPress

Forums

OptionTree
[resolved] OptionTree and NEW Insert Media (6 posts)

  1. htvu
    Member
    Posted 1 year ago #

    Hi,
    I updated my WordPress to 3.5 and OptionTree (2.0.12) not work as expected. First, I'm not sure but it seem OT not use the new Insert Media feature. Second, when I use upload field of OT, it is ok if I select and click Send to OptonTree button. But if I just click on Upload button of upload field then no select any image, just close it to return admin screen, JS error cause by line 294 in file ot-admin.js

    TypeError: $(...).attr(...) is undefined
    [Break On This Error] 	
    
    if ( $('#TB_iframeContent').attr('src').indexOf( "&field_id=" ) !== -1 ) {

    Does anyone have same issue ?

    http://wordpress.org/extend/plugins/option-tree/

  2. gorgoth
    Member
    Posted 1 year ago #

    Yes. I have the same error, I tried the "solution" from:

    http://wordpress.org/support/topic/infinite-console-errors-on-adding-images?replies=2

    but it does not work.

    Hope it will be fixed soon.

  3. htvu
    Member
    Posted 1 year ago #

    Sorry, I fixed this issue but forgot update it here. The solution in the thread you mention above not solve issue completely. Try my solution:
    Right below:

    intval = window.setInterval(function() {

    Insert this:

    if (typeof $('#TB_iframeContent').attr('src') === 'undefined') {window.clearInterval(intval);return;}

    Hope it help

  4. gorgoth
    Member
    Posted 1 year ago #

    It is working for me.

    Thank you hvtu.

    Hope they will fix this in the next update for the plugin also.

  5. htvu
    Member
    Posted 1 year ago #

    Ok, I close this topic :)

  6. htvu
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.