Category Resets Itself After Preview/Save

Found a bug? Tell us!!
Post Reply
mixx941
Regular
Posts: 6
Joined: Tue Jul 18, 2006 8:37 pm
Contact:

Category Resets Itself After Preview/Save

Post by mixx941 »

Hi everyone. I've just begun work on my blog, and so far when creating new entries and editing I've noticed this.

After typing out an entry and selecting a category, if I preview the entry, the category resets itself back to "[No Category]". The same thing happens if I save it and come back to edit. In that case, it will be at "[No Category]" when I click to edit that entry.

My browser is Opera 9, and I think it may be isolated to Opera. I tried in Firefox and it seemed to work fine.

Thanks

-Mark

EDIT: It seems that the category only saves if I click the plus sign to expand the category box and then select the category I want.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Sounds like an Opera-specific Javascript problem. Could someone with a bit more JavaScript than me please have a look in includes/functions_entries_admin.inc.php and search for option_categoryselector to see if there's something we can do for Opera?
Judebert
---
Website | Wishlist | PayPal
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

I think this has been addressed before; which s9y version are you using?

Regards,
gArvin
# 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/
mixx941
Regular
Posts: 6
Joined: Tue Jul 18, 2006 8:37 pm
Contact:

Post by mixx941 »

garvinhicking wrote:Hi!

I think this has been addressed before; which s9y version are you using?

Regards,
gArvin
Hi, and thanks for the replies. I'm using version 1.0.

-Mark
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Can it be that you're just not using Opera's GUI the "indented" way?

In Opera, the select dropdown box will be resized to a 1-button dropdown box with scrollarrows if not expanded. In Firefox and IE, a 1-button dropdown would be a normal dropdown, but sadly Opera doesn'T behave so.

This means that if you use the up/down arrows to change the content of the dropdown, you are only panning the list and NOT selecting a new item! Only if you click on the scrolled item (so that it will be highliughted) the category is really selected. And then if you later edit this entry and you pan the list down, the selected option will still be highlighted.

I know this is a weird behaviour, but you might want to contct Opera that they rethink their way of how they display 1-button select dropdowns that have been changed from "multiple" to "not multiple" via javascript.

HTH and best regards
,Garvin
# 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/
mixx941
Regular
Posts: 6
Joined: Tue Jul 18, 2006 8:37 pm
Contact:

Post by mixx941 »

Hi.

Yep, I think that's it. Expanding it shows the proper category and works if I save it while expanded. This is the first time I've come across one of those dropdowns with an up and down arrow next to it though. Most single option dropdowns I see look normal (for example, the "Jump To" dropdown below this posting box). I'm not sure if there's something different about the kind s9y uses.

-Mark
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Yes, s9y actually uses javascript to toggle the "multiple" attribute of a select field. While every other browser properly chagnes the GUI element, Opera seems to get stuck with that multiple field...

Best regards,
Garvin
# 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/
Post Reply