[freetag] no auto-complete

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

[freetag] no auto-complete

Post by bernd_d » Thu Mar 06, 2014 1:43 pm

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: 466
Joined: Thu Jun 03, 2010 9:28 am
Contact:

Re: [freetag] no auto-complete

Post by bernd_d » Thu Mar 06, 2014 3:02 pm

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.

User avatar
yellowled
Regular
Posts: 7083
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany
Contact:

Re: [freetag] no auto-complete

Post by yellowled » Thu Mar 06, 2014 3:23 pm

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
amazon Wishlist - Serendipity-Podcast (German only, sorry)

User avatar
yellowled
Regular
Posts: 7083
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany
Contact:

Re: [freetag] no auto-complete

Post by yellowled » Thu Mar 06, 2014 3:36 pm

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
amazon Wishlist - Serendipity-Podcast (German only, sorry)

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: [freetag] no auto-complete

Post by garvinhicking » Thu Mar 06, 2014 4:54 pm

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/

User avatar
onli
Regular
Posts: 2260
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: [freetag] no auto-complete

Post by onli » Thu Mar 06, 2014 6:06 pm

Yes, it was me, but too long ago to remember any details. Maybe this is related to the noconflict-mode? Or it just broke.

User avatar
yellowled
Regular
Posts: 7083
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany
Contact:

Re: [freetag] no auto-complete

Post by yellowled » Thu Mar 06, 2014 6:44 pm

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

YL
amazon Wishlist - Serendipity-Podcast (German only, sorry)

Post Reply