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:
niphlod
2014-10-16 21:08:55 +02:00
parent 05689aa526
commit b43ef65eb1
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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 */
+1 -1
View File
@@ -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 */
+1 -1
View File
@@ -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 */