| @@ -61,9 +61,9 @@ | ||
| 61 | 61 | else { s.addColor = s.addColor || '#FFFF33'; } |
| 62 | 62 | |
| 63 | 63 | if ( !s ) { return false; } |
| 64 | 64 | |
| 65 | - if ( !e.is("[class^=add:" + list.id + ":]") ) { return !fwpList.add.call( list, e, s ); } | |
| 65 | + if ( !e.is('[class^="add:' + list.id + ':"]') ) { return !fwpList.add.call( list, e, s ); } | |
| 66 | 66 | |
| 67 | 67 | if ( !s.element ) { return true; } |
| 68 | 68 | |
| 69 | 69 | s.action = 'add-' + s.what; |
| @@ -90,8 +90,9 @@ | ||
| 90 | 90 | |
| 91 | 91 | if ( true === res ) { return true; } |
| 92 | 92 | |
| 93 | 93 | jQuery.each( res.responses, function() { |
| 94 | + // FIXME: Causes ownerDocument is undefined breakage in WP3.2 | |
| 94 | 95 | fwpList.add.call( list, this.data, $.extend( {}, s, { // this.firstChild.nodevalue |
| 95 | 96 | pos: this.position || 0, |
| 96 | 97 | id: this.id || 0, |
| 97 | 98 | oldId: this.oldId || null |
| @@ -320,13 +321,13 @@ | ||
| 320 | 321 | |
| 321 | 322 | process: function(el) { |
| 322 | 323 | var list = this; |
| 323 | 324 | |
| 324 | - $("[class^=add:" + list.id + ":]", el || null) | |
| 325 | + $('[class^="add:' + list.id + ':"]', el || null) | |
| 325 | 326 | .filter('form').submit( function() { return list.fwpList.add(this); } ).end() |
| 326 | 327 | .not('form').click( function() { return list.fwpList.add(this); } ); |
| 327 | - $("[class^=delete:" + list.id + ":]", el || null).click( function() { return list.fwpList.del(this); } ); | |
| 328 | - $("[class^=dim:" + list.id + ":]", el || null).click( function() { return list.fwpList.dim(this); } ); | |
| 328 | + $('[class^="delete:' + list.id + ':"]', el || null).click( function() { return list.fwpList.del(this); } ); | |
| 329 | + $('[class^="dim:' + list.id + ':"]', el || null).click( function() { return list.fwpList.dim(this); } ); | |
| 329 | 330 | }, |
| 330 | 331 | |
| 331 | 332 | recolor: function() { |
| 332 | 333 | var list = this, items, eo; |