I don't know if this was intended or not. When saving a system preference, it jumps to the main page of the category, instead of staying on the searched system preference, like in 3.22. Test: 1. Search a system preference, i. e. Opaccredits. 2. Change something. 3. Save it. 4. It jumps to the "category subpage" on the left side.
When you save a system preference the page shouldn't refresh at all. The change happens behind the scenes and a message should pop up briefly indicating success. If you find that clicking the save button redirects the page, you might have a JavaScript error somewhere. Do you have something in the IntranetUserJS system preference?
(In reply to Owen Leonard from comment #1) > When you save a system preference the page shouldn't refresh at all. The > change happens behind the scenes and a message should pop up briefly > indicating success. > > If you find that clicking the save button redirects the page, you might have > a JavaScript error somewhere. Do you have something in the IntranetUserJS > system preference? There is indeed a js error: "Error: Syntax error, unrecognized expression: .transl." Maybe it's that. I'll ask Katrin on Monday, thanks :-)
I tried on master and it works for me. Do you use some other language then english? Or do you have something in intranetuserjs preference?
Yes, it's Intranetuserjs. It must be something in these parts: var currlang = $('html').attr('lang'); $(".transl").hide(); $(".transl." + currlang).show(); if (currlang == 'en' || currlang == 'en-GB') { $("span.results_summary span.de-DE").hide(); } else { $("span.results_summary span.en").hide(); } Thanks for the help!
It's the second dot in ".transl." In 16.11 it's causing that error
(In reply to Christian Stelzenmüller from comment #4) > Yes, it's Intranetuserjs. > > It must be something in these parts: > > var currlang = $('html').attr('lang'); > $(".transl").hide(); > $(".transl." + currlang).show(); > > if (currlang == 'en' || currlang == 'en-GB') { > $("span.results_summary span.de-DE").hide(); > } else { > $("span.results_summary span.en").hide(); > } > > Thanks for the help! So I am closing this bug.
Now we found the exact cause: The language in the html from the system preference page ist missing: <html lang=""> Therefore the js regarding the language caused this error.
I've filed a new bug to explain the problem behind the error we have seen. *** This bug has been marked as a duplicate of bug 20504 ***