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:
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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