Make simple form validation and ajax-add new categories compatible with jQuery 1.3.1

git-svn-id: https://develop.svn.wordpress.org/trunk@10457 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2009-01-29 07:00:00 +00:00
parent 26d8cb2a7e
commit d7acc77238
8 changed files with 23 additions and 23 deletions
+2 -3
View File
@@ -313,10 +313,9 @@ wpList = {
$("[class^=add:" + list.id + ":]", el || null)
.filter('form').submit( function() { return list.wpList.add(this); } ).end()
.not('form').click( function() { return list.wpList.add(this); } ).each( function() {
var addEl = this, c = wpList.parseClass(this,'add')[2] || addEl.id, forms, ins;
var addEl = this, c = wpList.parseClass(this,'add')[2] || addEl.id, forms = [], ins = [];
if ( !c ) { return; }
forms = [];
ins = []; // this is all really inefficient
// this is all really inefficient
$('#' + c + ' :input').focus( function() { currentFormEl = this; } ).blur( function() { currentFormEl = false; } ).each( function() {
ins.push(this);
var f = $(this).parents('form:first').get(0);