diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..227fe86 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.tern-port \ No newline at end of file diff --git a/README.md b/README.md index a3d888f..a8caf75 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ HTML5 Sortable jQuery Plugin ============================ -**[Demos & Documentation](http://farhadi.ir/projects/html5sortable)** +**[Demos & Documentation](http://james2doyle.github.io/html5sortable)** Features -------- @@ -47,7 +47,7 @@ Setting `forcePlaceholderSize` option to true, forces the placeholder to have a ``` javascript $('.sortable').sortable({ - forcePlaceholderSize: true + forcePlaceholderSize: true }); ``` @@ -59,6 +59,18 @@ $('#sortable1, #sortable2').sortable({ }); ``` +By default the events are not namespaced. Appending the namespace with help with conflicts. To change this, just overwrite the namespace: + +``` javascript +$('.sortable').sortable({ + namespace: '.h5s' +}); +// then +$('.sortable').on('drop.h5s', function(){ + alert('you dropped it!!'); +}); +``` + To remove the sortable functionality completely: ``` javascript diff --git a/index.html b/index.html index 0b650db..29a6f2d 100644 --- a/index.html +++ b/index.html @@ -160,7 +160,13 @@

Connected Sortable Lists