save timeout
[redakcja.git] / redakcja / static / js / wiki / base.js
index 61a3949..3fa47cc 100644 (file)
                reportErrors: function(errors) {
                        var global = $("*[data-ui-error-for='__all__']", this.$elem);
                        var unassigned = [];
+                       var unassigned_text = '';
 
                        for (var field_name in errors)
                        {
 
                                if(!span.length) {
                                        unassigned.push(field_name);
+                                       unassigned_text += errors[field_name];
                                        continue;
                                }
 
                        }
 
                        if(unassigned.length > 0)
-                               global.text( global.text() + 'W formularzu wystąpiły błędy');
+                               global.text( global.text() + unassigned_text);
                }
        };