Browse Source

#97: fixed filter option

pull/101/head 0.5.2
RubaXa 10 years ago
parent
commit
4e797dacd1
  1. 6
      Sortable.js
  2. 4
      Sortable.min.js
  3. 2
      bower.json
  4. 2
      component.json
  5. 2
      package.json

6
Sortable.js

@ -149,10 +149,12 @@
}
// Check filter
if( typeof filter === 'function' && filter.call(this, target, this) ){
if( typeof filter === 'function' ){
if( filter.call(this, target, this) ){
_dispatchEvent(el, 'filter', target);
return; // cancel dnd
}
}
else if( filter ){
filter = filter.split(',').filter(function (criteria) {
return _closest(target, criteria.trim(), el);
@ -680,7 +682,7 @@
};
Sortable.version = '0.5.1';
Sortable.version = '0.5.2';
// Export

4
Sortable.min.js vendored

File diff suppressed because one or more lines are too long

2
bower.json

@ -1,7 +1,7 @@
{
"name": "Sortable",
"main": "Sortable.js",
"version": "0.5.1",
"version": "0.5.2",
"homepage": "http://rubaxa.github.io/Sortable/",
"authors": [
"RubaXa <ibnRubaXa@gmail.com>"

2
component.json

@ -1,7 +1,7 @@
{
"name": "Sortable",
"main": "Sortable.js",
"version": "0.5.1",
"version": "0.5.2",
"homepage": "http://rubaxa.github.io/Sortable/",
"repo": "RubaXa/Sortable",
"authors": [

2
package.json

@ -1,7 +1,7 @@
{
"name": "sortable",
"exportName": "Sortable",
"version": "0.5.1",
"version": "0.5.2",
"devDependencies": {
"grunt": "*",
"grunt-version": "*",

Loading…
Cancel
Save