parent
af1a4941ce
commit
da1599ca34
2 changed files with 10 additions and 1 deletions
|
@ -5640,6 +5640,9 @@ var ZoteroPane = new function()
|
||||||
}
|
}
|
||||||
|
|
||||||
var items = this.getSelectedItems();
|
var items = this.getSelectedItems();
|
||||||
|
if (!items.length) return;
|
||||||
|
|
||||||
|
var progressWin = new Zotero.ProgressWindow();
|
||||||
|
|
||||||
for (var i=0; i<items.length; i++) {
|
for (var i=0; i<items.length; i++) {
|
||||||
var item = items[i];
|
var item = items[i];
|
||||||
|
@ -5677,9 +5680,13 @@ var ZoteroPane = new function()
|
||||||
item.setField('title', newName);
|
item.setField('title', newName);
|
||||||
await item.saveTx();
|
await item.saveTx();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let str = await document.l10n.formatValue('file-renaming-file-renamed-to', { filename: newName });
|
||||||
|
progressWin.addLines(str, item.getItemTypeIconName());
|
||||||
|
progressWin.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
progressWin.startCloseTimer(4000);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -122,6 +122,8 @@ item-menu-option-view-online =
|
||||||
item-button-view-online =
|
item-button-view-online =
|
||||||
.tooltiptext = {view-online}
|
.tooltiptext = {view-online}
|
||||||
|
|
||||||
|
file-renaming-file-renamed-to = File renamed to { $filename }
|
||||||
|
|
||||||
itembox-button-options =
|
itembox-button-options =
|
||||||
.tooltiptext = Open context menu
|
.tooltiptext = Open context menu
|
||||||
itembox-button-merge =
|
itembox-button-merge =
|
||||||
|
|
Loading…
Reference in a new issue