}).fail(function (jqXHR, textStatus) {
var error = 'Server error. Please contact your administrator. The status of the error is : ' +
jqXHR.status + ', textStatus is : ' + textStatus;
- console.log(error);
$j('#accordion-panel').append($j('<div class="error">').append(error));
}).done(function (html) {
var panel = $j('#accordion-panel');
(function() {
window.suppressTranslationWarnings = false;
- var warn = function(message) {
- if (!window.suppressTranslationWarnings && console != null && typeof console.warn === 'function') {
- console.warn(message);
- }
- };
-
window.t = function() {
if (!window.messages) {
return window.translate.apply(this, arguments);
var args = Array.prototype.slice.call(arguments, 0),
key = args.join('.');
- if (!window.messages[key]) {
- warn('No translation for "' + key + '"');
- }
return (window.messages && window.messages[key]) || key;
};
args.forEach(function(p, i) {
message = message.replace('{' + i + '}', p);
});
- } else {
- warn('No translation for "' + key + '"');
}
return message || '';
};
if (found) {
result = tokens.reduce(function(prev, current) {
if (!current || !prev[current]) {
- warn('No translation for "' + key + '"');
found = false;
}
return current ? prev[current] : prev;
}, start);
- } else {
- warn('No translation for "' + key + '"');
}
return found ? result : key;