knockout-sortable

Controlling Flash Plugins with Knockout.js, Conflicting jQuery.tmpl and Knockout-Sortable

女生的网名这么多〃 提交于 2019-12-02 02:42:59
I'm trying to render HTML for embedding Flash objects using Knockout.js' native templating faculties. jQuery.tmpl does the job perfectly well, however I cannot use it due to conflicts with the Knockout-sortable plugin. Here's an example of flash plugins quirking with the native templating: http://jsfiddle.net/7y3ub/35/ In Chrome, the player just never shows up. In Firefox, the player will show up if you change the channel while the checkbox is checked. Rechecking the box however makes the player vanish again. The 'if' binding is necessary due to the fact that there may be many instances of

Prevent items to be 'droppable' in other (parent/child) elements

拈花ヽ惹草 提交于 2019-12-01 10:44:09
I use knockout-sortable.js to let the user drag and drop items to give them a different order, but I'm experiencing problems when I have multiple 'drop zones' on my page. I have nested sets, all of which are sortable, but not interchangeable. My code: <div class="sortable" data-bind="sortable: blueprint.pages"> <tr><td>Blabla</td></tr> </div> And at some other point: <div class="sortable" data-bind="sortable: selectedPage().page_sections"> <tr><td>Another blabla</td></tr> </div> I can now just drag and drop 'Another blabla' into 'Blabla', causing errors. How can I prevent this from happening?