Browse Source

Merge pull request #201 from raphj/patch-1

Make Sortable compatible xhtml
pull/212/head
Lebedev Konstantin 10 years ago
parent
commit
26f148ce44
  1. 4
      Sortable.js

4
Sortable.js

@ -809,7 +809,7 @@
do {
if (
(tag === '>*' && el.parentNode === ctx) || (
(tag === '' || el.nodeName == tag) &&
(tag === '' || el.nodeName.toUpperCase() == tag) &&
(!selector.length || ((' ' + el.className + ' ').match(re) || []).length == selector.length)
)
) {
@ -937,7 +937,7 @@
*/
function _index(/**HTMLElement*/el) {
var index = 0;
while (el && (el = el.previousElementSibling) && (el.nodeName !== 'TEMPLATE')) {
while (el && (el = el.previousElementSibling) && (el.nodeName.toUpperCase() !== 'TEMPLATE')) {
index++;
}
return index;

Loading…
Cancel
Save