+/* global ajaxurl, wpAjax */
(function($) {
var fs = {add:'ajaxAdd',del:'ajaxDel',dim:'ajaxDim',process:'process',recolor:'recolor'}, wpList;
s.delAfter( rres, _s );
}).dequeue();
}
- }
+ };
$.ajax( s );
return false;
},
add: function( e, s ) {
- e = $(e);
+ if ( 'string' == typeof e ) {
+ e = $( $.trim( e ) ); // Trim leading whitespaces
+ } else {
+ e = $( e );
+ }
var list = $(this), old = false, _s = { pos: 0, id: 0, oldId: null }, ba, ref, color;