Summary: | Saving a system preference jumps to main page | ||
---|---|---|---|
Product: | Koha | Reporter: | Christian Stelzenmüller <christian.stelzenmueller> |
Component: | System Administration | Assignee: | Bugs List <koha-bugs> |
Status: | RESOLVED DUPLICATE | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | gmcharlt, josef.moravec |
Version: | 16.11 | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: |
Description
Christian Stelzenmüller
2017-11-08 09:29:32 UTC
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. |