Note that there are some explanatory texts on larger screens.

plurals
  1. POJQuery Nested Sortable Accordion
    primarykey
    data
    text
    <p>I am using <a href="http://mjsarfatti.com/sandbox/nestedSortable/" rel="noreferrer">http://mjsarfatti.com/sandbox/nestedSortable/</a> Nested Sortables for JQuery. I want to make each nestable an accordion. I have gotten to the point where I have nested sortables and accordions; however, whenever I drag any of the sortables to the left, the whole application freezes.</p> <p>Here is my JS (this runs fine):</p> <pre><code>$('ol.sortable').nestedSortable({ disableNesting: 'no-nest', forcePlaceholderSize: true, handle: 'div', helper: 'clone', items: 'li', maxLevels: 10, opacity: .6, placeholder: 'placeholder', revert: 250, tabSize: 25, tolerance: 'pointer', toleranceElement: '&gt; div' }); $(function() { var stop = false; $( "#accordion h3" ).click(function( event ) { if ( stop ) { event.stopImmediatePropagation(); event.preventDefault(); stop = false; } }); $( "#accordion" ) .accordion({ header: "&gt; ol &gt; li &gt; div &gt; h3" }) .nestedSortable({ axis: "y", handle: "h3", stop: function() { stop = true; } }); }); </code></pre> <p>Here is the html:</p> <pre><code>&lt;section id="accordion"&gt; &lt;ol class="sortable"&gt; &lt;li id="list_1"&gt; &lt;div&gt; &lt;h3&gt;&lt;a href="#"&gt;Header&lt;/a&gt;&lt;/h3&gt; &lt;div&gt; &lt;p&gt;des fields.&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;li id="list_2"&gt;&lt;div&gt;Item 2&lt;/div&gt; &lt;ol&gt; &lt;li id="list_3"&gt;&lt;div&gt;Sub Item 2.1&lt;/div&gt; &lt;li id="list_4"&gt;&lt;div&gt;Sub Item 2.2&lt;/div&gt; &lt;li id="list_5"&gt;&lt;div&gt;Sub Item 2.3&lt;/div&gt; &lt;li id="list_6"&gt;&lt;div&gt;Sub Item 2.4&lt;/div&gt; &lt;/ol&gt; &lt;/ol&gt; &lt;/section&gt; </code></pre> <p>This is definitely a problem that only comes about when using accordions with the sortables. Has anyone run across this problem?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload