diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..fe87b66 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,11 @@ +{ + "globals": { + "window": false, + "document": false + }, + "rules": { + "no-underscore-dangle": false, + "no-loop-func": false, + "no-use-before-define": false + } +} \ No newline at end of file diff --git a/.jscsrc b/.jscsrc new file mode 100644 index 0000000..8729368 --- /dev/null +++ b/.jscsrc @@ -0,0 +1,3 @@ +{ + "preset": "jquery" +} \ No newline at end of file diff --git a/README.md b/README.md index 473cb62..3a00e15 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ **nestedSortable** is a jQuery plugin that extends jQuery Sortable UI functionalities to nested lists. *Note: Version 2.0 is published in branch '2.0alpha' and is available for testing. At the moment it has only been tested in Firefox and Chrome, if you work with IE feel free to give it a shot and let me know if something goes wrong.* +## Meteor Installation + meteor add ilikenwf:nested-sortable ## What's new in version 2.0 @@ -142,7 +144,9 @@ Also, the default list type is `
    `. '2' ... 'id' => itemId - Similarly to toArray, it accepts attribute and expression options. + Similarly to toArray, it accepts attribute and expression options. + Optionally adding `data-` attributes will cause them to show up in the hierarchy. See demo for example. + ## Events diff --git a/bower.json b/bower.json new file mode 100644 index 0000000..467d2a5 --- /dev/null +++ b/bower.json @@ -0,0 +1,6 @@ +{ + "name": "nestedSortable", + "version": "2.0", + "main": "", + "license": "MIT" +} diff --git a/example.html b/example.html index ba4f66a..a358947 100644 --- a/example.html +++ b/example.html @@ -173,9 +173,9 @@ color: #c33; } - - - + + +