MCPcopy Create free account
hub / github.com/error311/FileRise / applyZoneOrder

Function applyZoneOrder

public/js/dragAndDrop.js:423–434  ·  view source on GitHub ↗
(layout, zoneId, placedSet)

Source from the content-addressed store, hash-verified

421}
422
423function applyZoneOrder(layout, zoneId, placedSet) {
424 if (!placedSet) return;
425 const ids = getZoneOrder(layout, zoneId);
426 if (!ids.length) return;
427 ids.forEach(cardId => {
428 if (placedSet.has(cardId)) return;
429 const card = $(cardId);
430 if (!card || layout[cardId] !== zoneId) return;
431 placeCardInZone(card, zoneId, { animate: false });
432 placedSet.add(cardId);
433 });
434}
435
436// -------------------- responsive stash --------------------
437function stashSidebarCardsBeforeSmall() {

Callers 1

applyUserLayoutOrDefaultFunction · 0.85

Calls 3

getZoneOrderFunction · 0.85
placeCardInZoneFunction · 0.85
$Function · 0.70

Tested by

no test coverage detected