documents panel: add fixme; hide select/deselect buttons on load

This commit is contained in:
rolux 2014-02-03 09:31:25 +05:30
parent c0c642bea5
commit 6336b3cc8e

View file

@ -290,6 +290,7 @@ pandora.ui.documentsPanel = function(options) {
); );
} }
}) })
.hide()
.appendTo($itemBar), .appendTo($itemBar),
$selectButton = Ox.ButtonGroup({ $selectButton = Ox.ButtonGroup({
@ -316,6 +317,7 @@ pandora.ui.documentsPanel = function(options) {
} }
} }
}) })
.hide()
.appendTo($itemBar), .appendTo($itemBar),
$item = Ox.Element().css({overflowY: 'scroll'}), $item = Ox.Element().css({overflowY: 'scroll'}),
@ -799,6 +801,7 @@ pandora.ui.documentsPanel = function(options) {
} }
function selectDocuments() { function selectDocuments() {
// FIXME: this looks wrong - will produce inconsistent state
if(!listLoaded) { if(!listLoaded) {
return; return;
} }