Skip to content

Instantly share code, notes, and snippets.

@twogood
Created May 28, 2012 19:29
Show Gist options
  • Save twogood/2820806 to your computer and use it in GitHub Desktop.
Save twogood/2820806 to your computer and use it in GitHub Desktop.
Uncaught Syntax error, unrecognized expression: [class^='add:the-comment-list':]
--- wp-lists.dev.js.orig 2009-11-29 11:29:12.000000000 +0100
+++ wp-lists.dev.js 2012-05-28 21:56:43.000000000 +0200
@@ -62,7 +62,7 @@
if ( !s ) { return false; }
- if ( !e.is("[class^=add:" + list.id + ":]") ) { return !wpList.add.call( list, e, s ); }
+ if ( !e.is("[class^='add:" + list.id + ":']") ) { return !wpList.add.call( list, e, s ); }
if ( !s.element ) { return true; }
@@ -313,11 +313,11 @@
process: function(el) {
var list = this;
- $("[class^=add:" + list.id + ":]", el || null)
+ $("[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); } );
- $("[class^=delete:" + list.id + ":]", el || null).click( function() { return list.wpList.del(this); } );
- $("[class^=dim:" + list.id + ":]", el || null).click( function() { return list.wpList.dim(this); } );
+ $("[class^='delete:" + list.id + ":']", el || null).click( function() { return list.wpList.del(this); } );
+ $("[class^='dim:" + list.id + ":']", el || null).click( function() { return list.wpList.dim(this); } );
},
recolor: function() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment