From 5cca52261c1db75fd11e2ababb8522de4c7582db Mon Sep 17 00:00:00 2001 From: LeoBlackSoul Date: Fri, 2 Dec 2016 01:50:04 +0100 Subject: [PATCH 01/12] Expand event receives expanded element The element that is expanded on hover should be passed as an argument to the "expand" event, since it is actually the real subject of the expansion. Most expand callbacks will surely want to know *what* was expanded --- jquery.mjs.nestedSortable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.mjs.nestedSortable.js b/jquery.mjs.nestedSortable.js index 38bf5f7..0dbff89 100644 --- a/jquery.mjs.nestedSortable.js +++ b/jquery.mjs.nestedSortable.js @@ -338,7 +338,7 @@ .addClass(o.expandedClass); self.refreshPositions(); - self._trigger("expand", event, self._uiHash()); + self._trigger("expand", event, [self._uiHash(), itemElement]); }, o.expandOnHover); } } From 0e97adb76b17cbca778dc6d07c4ecd46bf01c50e Mon Sep 17 00:00:00 2001 From: Ernest Fayzullin Date: Sun, 25 Dec 2016 17:26:20 +0500 Subject: [PATCH 02/12] fix for npm installation "jquery-ui" --- jquery.mjs.nestedSortable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.mjs.nestedSortable.js b/jquery.mjs.nestedSortable.js index 38bf5f7..fa3caed 100644 --- a/jquery.mjs.nestedSortable.js +++ b/jquery.mjs.nestedSortable.js @@ -18,7 +18,7 @@ // AMD. Register as an anonymous module. define([ "jquery", - "jquery-ui/sortable" + "jquery-ui/ui/sortable" ], factory ); } else { From 4e1f9a5318778bacf0ad0aca1b89a3ce28c8adc2 Mon Sep 17 00:00:00 2001 From: Hermes Sbicego Date: Thu, 13 Jan 2022 12:51:40 +0100 Subject: [PATCH 03/12] Update jquery.mjs.nestedSortable.js jQueryUI 1.13+ requires the dragDirection object; so I added it. --- jquery.mjs.nestedSortable.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jquery.mjs.nestedSortable.js b/jquery.mjs.nestedSortable.js index 43df6a2..f04f21e 100644 --- a/jquery.mjs.nestedSortable.js +++ b/jquery.mjs.nestedSortable.js @@ -262,6 +262,12 @@ childLevels = this._getChildLevels(this.helper); newList = document.createElement(o.listType); + // dragDirection object is required by jquery.ui.sortable.js 1.13+ + this.dragDirection = { + vertical: this._getDragVerticalDirection(), + horizontal: this._getDragHorizontalDirection() + }; + //Rearrange for (i = this.items.length - 1; i >= 0; i--) { From 1e01055553cd8ef0d627bdbe28e95f69fe80eace Mon Sep 17 00:00:00 2001 From: Aaron Meese Date: Sat, 1 Apr 2023 14:55:06 -0400 Subject: [PATCH 04/12] Improved README readability Adds syntax highlighting to the code blocks to make it easier to digest on first glance. --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 475e7db..ae90f58 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Also: ## Usage -``` +```html
  1. Some content
  2. @@ -41,16 +41,16 @@ Also:
``` -``` - $(document).ready(function(){ - - $('.sortable').nestedSortable({ - handle: 'div', - items: 'li', - toleranceElement: '> div' - }); +```js +$(document).ready(function() { + $('.sortable').nestedSortable({ + handle: 'div', + items: 'li', + toleranceElement: '> div' }); + +}); ``` Please note: every `
  • ` must have either one or two direct children, the first one being a container element (such as `
    ` in the above example), and the (optional) second one being the nested list. The container element has to be set as the 'toleranceElement' in the options, and this, or one of its children, as the 'handle'. From e9b4a0794a43a78d5b6c3adb224aa41c7879b1f2 Mon Sep 17 00:00:00 2001 From: zdienos Date: Wed, 24 Jan 2024 12:13:34 +0800 Subject: [PATCH 05/12] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 475e7db..4e1bfc0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # nestedSortable jQuery plugin **nestedSortable** is a jQuery plugin that extends jQuery Sortable UI functionalities to nested lists. +This fork is only for add my own example ## Meteor Installation meteor add ilikenwf:nested-sortable From 5cfd4cc9868fa7bb37835b62f3ca3ace1485e420 Mon Sep 17 00:00:00 2001 From: zdienos Date: Wed, 24 Jan 2024 12:49:38 +0800 Subject: [PATCH 06/12] test --- docs/index.html | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 docs/index.html diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..cdab4af --- /dev/null +++ b/docs/index.html @@ -0,0 +1,11 @@ + + + + + + Document + + + zedd + + \ No newline at end of file From 68d4b7ab182103aa9c27d832b82a6114cb4764b9 Mon Sep 17 00:00:00 2001 From: zdienos Date: Wed, 24 Jan 2024 12:55:53 +0800 Subject: [PATCH 07/12] Create index.html --- index.html | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 index.html diff --git a/index.html b/index.html new file mode 100644 index 0000000..90ecf07 --- /dev/null +++ b/index.html @@ -0,0 +1,11 @@ + + + + + + zdienos - nestedSortable Example + + + zedd + + From 94eea377c2d574e22609f7e5b01ff6e189d98392 Mon Sep 17 00:00:00 2001 From: zdienos Date: Wed, 24 Jan 2024 13:22:04 +0800 Subject: [PATCH 08/12] update index --- index.html | 596 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 591 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 90ecf07..66089c9 100644 --- a/index.html +++ b/index.html @@ -1,11 +1,597 @@ + - - - zdienos - nestedSortable Example + + nestedSortable jQuery Plugin + + + + + + + + + + + + + + + + + + + - zedd +
    + +
    +

    nestedSortable jQuery Plugin

    + +

    2.0

    +
    +
    + +
    +
    + +
    +

    This is the demo page for the nestedSortable jQuery plugin.

    + +

    This is for my own example, please follow the original repository GitHub + page.

    +
    + + +
    +
    +
    Actions
    +
    URL
    +
    +
    Title
    +
    + +
    + +
      + + + + + + +
    +
    +
    + +
    +

    License

    + +

    This work is licensed under the MIT License.
    + Which means you can do pretty much whatever you want with it.

    + +

    © 2010‐2014 Manuele J Sarfatti

    +
    + + - + + \ No newline at end of file From 92461c6c1508fdcbbd59f0428077ec61bf9ce5a3 Mon Sep 17 00:00:00 2001 From: zdienos Date: Wed, 24 Jan 2024 13:23:15 +0800 Subject: [PATCH 09/12] Update index.html --- docs/index.html | 596 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 591 insertions(+), 5 deletions(-) diff --git a/docs/index.html b/docs/index.html index cdab4af..7d0fa01 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,11 +1,597 @@ + - - - Document + + nestedSortable jQuery Plugin + + + + + + + + + + + + + + + + + + + - zedd +
    + +
    +

    nestedSortable jQuery Plugin

    + +

    2.0

    +
    +
    + +
    +
    + +
    +

    This is the demo page for the nestedSortable jQuery plugin.

    + +

    This is for my own example, please follow the original repository GitHub + page.

    +
    + + +
    +
    +
    Actions
    +
    URL
    +
    +
    Title
    +
    + +
    + +
      + + + + + + +
    +
    +
    + +
    +

    License

    + +

    This work is licensed under the MIT License.
    + Which means you can do pretty much whatever you want with it.

    + +

    © 2010‐2014 Manuele J Sarfatti

    +
    + + - \ No newline at end of file + + From ae6320bcb82746ab14c87ee37524e1392463a1dd Mon Sep 17 00:00:00 2001 From: zdienos Date: Wed, 24 Jan 2024 13:24:49 +0800 Subject: [PATCH 10/12] delete index --- index.html | 597 ----------------------------------------------------- 1 file changed, 597 deletions(-) delete mode 100644 index.html diff --git a/index.html b/index.html deleted file mode 100644 index 66089c9..0000000 --- a/index.html +++ /dev/null @@ -1,597 +0,0 @@ - - - - - - nestedSortable jQuery Plugin - - - - - - - - - - - - - - - - - - - - - -
    - -
    -

    nestedSortable jQuery Plugin

    - -

    2.0

    -
    -
    - -
    -
    - -
    -

    This is the demo page for the nestedSortable jQuery plugin.

    - -

    This is for my own example, please follow the original repository GitHub - page.

    -
    - - -
    -
    -
    Actions
    -
    URL
    -
    -
    Title
    -
    - -
    - -
      - - - - - - -
    -
    -
    - -
    -

    License

    - -

    This work is licensed under the MIT License.
    - Which means you can do pretty much whatever you want with it.

    - -

    © 2010‐2014 Manuele J Sarfatti

    -
    - - - - - \ No newline at end of file From f844a2fd3c169851f0f20579e808f8cd520f0bfa Mon Sep 17 00:00:00 2001 From: ilikenwf Date: Tue, 30 Jan 2024 02:18:17 +0000 Subject: [PATCH 11/12] Update index.html --- docs/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.html b/docs/index.html index 7d0fa01..c72f391 100644 --- a/docs/index.html +++ b/docs/index.html @@ -450,7 +450,7 @@

    2.0

    This is the demo page for the nestedSortable jQuery plugin.

    -

    This is for my own example, please follow the original repository GitHub +

    This is for my own example, please follow the original repository GitHub page.

    From d01739956cb96720a85df6c7a061b999aee7a993 Mon Sep 17 00:00:00 2001 From: ilikenwf Date: Tue, 30 Jan 2024 02:19:52 +0000 Subject: [PATCH 12/12] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e61326d..c0135c4 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ # nestedSortable jQuery plugin +# If you would like to help update/maintain or take over this project, please open an issue to let me know. I don't use this project anymore. + **nestedSortable** is a jQuery plugin that extends jQuery Sortable UI functionalities to nested lists. -This fork is only for add my own example ## Meteor Installation meteor add ilikenwf:nested-sortable