Lines 56-64
KOHA.Preferences = {
Link Here
|
56 |
if (modified_pref in form.sysprefs) { |
56 |
if (modified_pref in form.sysprefs) { |
57 |
if (form.sysprefs[modified_pref].error === 'Koha::Exceptions::Config::InvalidSyntax') { |
57 |
if (form.sysprefs[modified_pref].error === 'Koha::Exceptions::Config::InvalidSyntax') { |
58 |
msg += "<strong>"+ MSG_INVALID_SYNTAX.format(modified_pref) + "</strong>\n"; |
58 |
msg += "<strong>"+ MSG_INVALID_SYNTAX.format(modified_pref) + "</strong>\n"; |
59 |
var error_message = form.sysprefs[modified_pref].message; |
59 |
var location = form.sysprefs[modified_pref].message.match(/line (\d+), column (\d+)/); |
60 |
error_message = error_message.replace(/\s+at .* line \d+\.\s+$/, ''); |
60 |
if (typeof location !== 'undefined' && Array.isArray(location) && location.length===3) { |
61 |
msg += error_message; |
61 |
msg += "<strong>"+ MSG_INVALID_SYNTAX_LOCATION.format(location[1], location[2]) + "</strong>\n"; |
|
|
62 |
} |
62 |
} else { |
63 |
} else { |
63 |
msg += "<strong>"+ form.type + "</strong>\n"; |
64 |
msg += "<strong>"+ form.type + "</strong>\n"; |
64 |
} |
65 |
} |
65 |
- |
|
|