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/
gorgoth
Member
Posted 4 months 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.
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
gorgoth
Member
Posted 4 months ago #
It is working for me.
Thank you hvtu.
Hope they will fix this in the next update for the plugin also.
Ok, I close this topic :)