Show intro text for My Publications in middle pane when no items

ZoteroPane.setItemsPaneMessage() and setItemPaneMessage() can now
optionally take a DOM node instead of a string.

Closes #705
This commit is contained in:
Dan Stillman 2016-03-24 08:55:32 -04:00
parent db33163a99
commit fc6c113f25
8 changed files with 83 additions and 20 deletions

View file

@ -76,7 +76,7 @@ describe("ZoteroPane", function() {
// Unselected, with no items in view
assert.equal(
doc.getElementById('zotero-item-pane-message').value,
doc.getElementById('zotero-item-pane-message-box').textContent,
Zotero.getString('pane.item.unselected.zero', 0)
);
@ -87,7 +87,7 @@ describe("ZoteroPane", function() {
skipSelect: true
});
assert.equal(
doc.getElementById('zotero-item-pane-message').value,
doc.getElementById('zotero-item-pane-message-box').textContent,
Zotero.getString('pane.item.unselected.singular', 1)
);
@ -98,7 +98,7 @@ describe("ZoteroPane", function() {
skipSelect: true
});
assert.equal(
doc.getElementById('zotero-item-pane-message').value,
doc.getElementById('zotero-item-pane-message-box').textContent,
Zotero.getString('pane.item.unselected.plural', 2)
);
@ -107,7 +107,7 @@ describe("ZoteroPane", function() {
zp.itemsView.rememberSelection([itemID1, itemID2]);
yield promise;
assert.equal(
doc.getElementById('zotero-item-pane-message').value,
doc.getElementById('zotero-item-pane-message-box').textContent,
Zotero.getString('pane.item.selected.multiple', 2)
);
})