while we wait for a sane "prefixing", use a much more efficient way to find errors
This comes from an unfortunate choice of naming conventions and the fact that manage errors gets called even on the full document on page load. I had a table full of .error-"classed" elements and it took nearly 30 seconds for that snippet to hide and fade them in. We should definitevely prefix every css class with something that won't clash with everything else.
This commit is contained in:
1 parent
05689aa526
commit
b43ef65eb1
3 files changed
+3
-3
No files matched your search
@@ -141,7 +141,7 @@
|
||||
},
|
||||
/* manage errors in forms */
|
||||
manage_errors: function(target) {
|
||||
$('.error', target).hide().slideDown('slow');
|
||||
$('div.error', target).hide().slideDown('slow');
|
||||
},
|
||||
after_ajax: function(xhr) {
|
||||
/* called whenever an ajax request completes */
|
||||
|
||||
Reference in new issue
Block a user