jquery-ui-sortable

JqueryUI Sortable - Functionality to only move items within sublist (3rd pos)

孤者浪人 提交于 2020-11-29 08:37:04
问题 I'm trying to set a specific functionality using jquery sortable. I seem to be close but hitting an issue. I need the subitems to move to level 3 positions only - under the account types http://jsfiddle.net/Davos8549/x6f0upng/1/ I only want the sub items to be able to drag - drop into other lists that has the class="hasItems" I should still be able to move AR, VZ, BANK within its main container "Asset". But i should not be able to drop the whole thing into a sublist (which is the problem i'm

CKEditor 4 and jQuery UI sortable removes content after sorting

[亡魂溺海] 提交于 2020-07-20 07:35:27
问题 I've ran into an issue with CKEditor 4 and jQuery UI's sortable method where if I sort a container that has a CKEditor instance, it removes the value and throws an error "Uncaught TypeError: Cannot call method 'getSelection' of undefined". It also makes the editor uneditable. I was able to get around this in CKEditor 3 with one of the following hacks found here: CKEditor freezes on jQuery UI Reorder In looking at the Chrome DOM inspector, it appears that the contents of the iframe are removed

jQuery UI: sortable('toArray') returns an empty array

本秂侑毒 提交于 2020-07-04 06:31:45
问题 This has me stumped. The follow code returns ",,,,,,": <script type="text/javascript"> $(function() { $('#listB').sortable({ connectWith: '#listA', update: function(event, ui) { var result = $(this).sortable('toArray'); alert(result); } }); $('#listA').sortable({ connectWith: '#listB' }); }); </script> <div id="boxA"> <ul id="listA" class="myList"> <li value="1">Item A</li> <li value="2">Item B</li> <li value="3">Item C</li> <li value="4">Item D</li> <li value="5">Item E</li> <li value="6"

jQuery UI Touch Punch is not working in chrome and opera on android device

被刻印的时光 ゝ 提交于 2020-05-23 13:32:09
问题 Im using jQuery UI drag&drop and sortable in my website but its not working in android device browsers like chrome and opera but its working in default browser and Firefox mobile. Even I used Touch Punch plugin. Is that issue because of browser compatible in android devices? 回答1: I think it may be browser compatibility, not all of the TouchPunch demos work on my Android 4.3 devices in Chrome or default browser, or iPad 4 for that matter. TouchPunch does state that it is a hack so I'm avoiding

jQuery UI Touch Punch is not working in chrome and opera on android device

家住魔仙堡 提交于 2020-05-23 13:31:12
问题 Im using jQuery UI drag&drop and sortable in my website but its not working in android device browsers like chrome and opera but its working in default browser and Firefox mobile. Even I used Touch Punch plugin. Is that issue because of browser compatible in android devices? 回答1: I think it may be browser compatibility, not all of the TouchPunch demos work on my Android 4.3 devices in Chrome or default browser, or iPad 4 for that matter. TouchPunch does state that it is a hack so I'm avoiding

SortableJS get order from nested list

﹥>﹥吖頭↗ 提交于 2020-05-17 08:06:41
问题 i try to get the order of a nested list that can be ordered with SortableJS. My list looks like this: <div id="nestedDemo" class="list-group col nested-sortable"> <div class="list-group-item" data-id="1">Titel 1</div> <div class="list-group-item" data-id="2">Titel 2</div> <div class="list-group-item" data-id="3">Titel3 <div class="list-group nested-sortable"> <div class="list-group-item" data-id="4">Titel 4</div> <div class="list-group-item" data-id="5">Titel 5</div> <div class="list-group

SortableJS get order from nested list

不羁岁月 提交于 2020-05-17 08:05:15
问题 i try to get the order of a nested list that can be ordered with SortableJS. My list looks like this: <div id="nestedDemo" class="list-group col nested-sortable"> <div class="list-group-item" data-id="1">Titel 1</div> <div class="list-group-item" data-id="2">Titel 2</div> <div class="list-group-item" data-id="3">Titel3 <div class="list-group nested-sortable"> <div class="list-group-item" data-id="4">Titel 4</div> <div class="list-group-item" data-id="5">Titel 5</div> <div class="list-group

SortableJS get order from nested list

自古美人都是妖i 提交于 2020-05-17 08:04:55
问题 i try to get the order of a nested list that can be ordered with SortableJS. My list looks like this: <div id="nestedDemo" class="list-group col nested-sortable"> <div class="list-group-item" data-id="1">Titel 1</div> <div class="list-group-item" data-id="2">Titel 2</div> <div class="list-group-item" data-id="3">Titel3 <div class="list-group nested-sortable"> <div class="list-group-item" data-id="4">Titel 4</div> <div class="list-group-item" data-id="5">Titel 5</div> <div class="list-group