fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
save timeout
[redakcja.git]
/
redakcja
/
static
/
js
/
wiki
/
base.js
diff --git
a/redakcja/static/js/wiki/base.js
b/redakcja/static/js/wiki/base.js
index
61a3949
..
3fa47cc
100644
(file)
--- a/
redakcja/static/js/wiki/base.js
+++ b/
redakcja/static/js/wiki/base.js
@@
-298,6
+298,7
@@
reportErrors: function(errors) {
var global = $("*[data-ui-error-for='__all__']", this.$elem);
var unassigned = [];
reportErrors: function(errors) {
var global = $("*[data-ui-error-for='__all__']", this.$elem);
var unassigned = [];
+ var unassigned_text = '';
for (var field_name in errors)
{
for (var field_name in errors)
{
@@
-305,6
+306,7
@@
if(!span.length) {
unassigned.push(field_name);
if(!span.length) {
unassigned.push(field_name);
+ unassigned_text += errors[field_name];
continue;
}
continue;
}
@@
-312,7
+314,7
@@
}
if(unassigned.length > 0)
}
if(unassigned.length > 0)
- global.text( global.text() +
'W formularzu wystąpiły błędy'
);
+ global.text( global.text() +
unassigned_text
);
}
};
}
};