[freetag] no auto-complete

Creating and modifying plugins.
Post Reply
bernd_d
Regular
Posts: 468
Joined: Thu Jun 03, 2010 9:28 am
Contact:

[freetag] no auto-complete

Post 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
bernd_d
Regular
Posts: 468
Joined: Thu Jun 03, 2010 9:28 am
Contact:

Re: [freetag] no auto-complete

Post 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.
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: [freetag] no auto-complete

Post 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
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: [freetag] no auto-complete

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: [freetag] no auto-complete

Post 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...
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
onli
Regular
Posts: 2825
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: [freetag] no auto-complete

Post 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.
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: [freetag] no auto-complete

Post by yellowled »

onli wrote:Maybe this is related to the noconflict-mode?
Isn't 1.7.x still in noConflict mode?

YL
Post Reply