mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-05 07:07:04 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user