Page 1 of 1

[freetag] no auto-complete

Posted: Thu Mar 06, 2014 1:43 pm
by bernd_d
I don't know since when this error occures, but auto-complete for tags within entry-editor doesn't work for me.

If i try to set a tag in editor, Firebug shows me an error for /serendipity_event_freetag/jquery.autocomplete.min.js
$.browser is undefined
As far as i can see, $.browser has been removed with jquery 1.9. But here comes another problem: serendipity_event_jquery 1.13 uses jQuery JavaScript Library v1.3.2. So, $.browser should still be available?! :|

Plugins:
  • jquery 1.13
  • freetags 3.47

Re: [freetag] no auto-complete

Posted: Thu Mar 06, 2014 3:02 pm
by bernd_d
BTW: There is an new jQuery autocomplete from jQuery User Interface which should be used instead of the old one.

Don't know, if someone could update this too.

Re: [freetag] no auto-complete

Posted: Thu Mar 06, 2014 3:23 pm
by yellowled
bernd_d wrote:As far as i can see, $.browser has been removed with jquery 1.9.
That's good to know for 2.0, but can't be the reason it doesn't work in 1.7.x. The bundled jQuery in 1.7.x is still 1.8.3.
bernd_d wrote:But here comes another problem: serendipity_event_jquery 1.13 uses jQuery JavaScript Library v1.3.2. So, $.browser should still be available?!
I think there's a switch which ignores serendipity_event_jquery if installed in a version which already comes with jQuery in the core. That's to avoid loading both jQuery libs (which would be bad).

YL

Re: [freetag] no auto-complete

Posted: Thu Mar 06, 2014 3:36 pm
by yellowled
Chrome devtools gives me

Code: Select all

Uncaught TypeError: Cannot read property 'opera' of undefined

(jquery.autocomplete.min.js:11)
I assume the old autocomplete is in fact broken and should be replaced. I'm just puzzled why noone noticed this earlier …

YL

Re: [freetag] no auto-complete

Posted: Thu Mar 06, 2014 4:54 pm
by garvinhicking
Hi!

Previously the autocomplete was based on mootools or prototype, and got replaced by onli, IIRC...? I'm not that into jquery plugins so I don't really know what's going on there...

Re: [freetag] no auto-complete

Posted: Thu Mar 06, 2014 6:06 pm
by onli
Yes, it was me, but too long ago to remember any details. Maybe this is related to the noconflict-mode? Or it just broke.

Re: [freetag] no auto-complete

Posted: Thu Mar 06, 2014 6:44 pm
by yellowled
onli wrote:Maybe this is related to the noconflict-mode?
Isn't 1.7.x still in noConflict mode?

YL