Differential D20415 Diff 48758 webroot/rsrc/js/application/dashboard/behavior-dashboard-move-panels.js
Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/application/dashboard/behavior-dashboard-move-panels.js
Show All 11 Lines | JX.behavior('dashboard-move-panels', function(config) { | ||||
var itemSigil = 'panel-movable'; | var itemSigil = 'panel-movable'; | ||||
function finditems(col) { | function finditems(col) { | ||||
return JX.DOM.scry(col, 'div', itemSigil); | return JX.DOM.scry(col, 'div', itemSigil); | ||||
} | } | ||||
function markcolempty(col, toggle) { | function markcolempty(col, toggle) { | ||||
JX.DOM.alterClass(col, 'dashboard-column-empty', toggle); | JX.DOM.alterClass(col.parentNode, 'dashboard-column-empty', toggle); | ||||
} | } | ||||
function onupdate(col) { | function onupdate(col) { | ||||
markcolempty(col, !this.findItems().length); | markcolempty(col, !this.findItems().length); | ||||
} | } | ||||
function onresponse(response, item, list) { | function onresponse(response, item, list) { | ||||
list.unlock(); | list.unlock(); | ||||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |