Add warning to citation/bibliography editor

This commit is contained in:
Dan Stillman 2010-02-03 05:50:43 +00:00
parent b6af89309d
commit 4adc606c48
3 changed files with 6 additions and 0 deletions

View file

@ -339,7 +339,9 @@ var Zotero_Citation_Dialog = new function () {
* Shows the edit pane
*/
function toggleEditor(text) {
var warning = document.getElementById('zotero-editor-warning');
var editor = document.getElementById('editor');
warning.hidden = _previewShown;
editor.hidden = _previewShown;
_previewShown = !_previewShown;

View file

@ -199,5 +199,7 @@
</vbox>
<textbox id="editor" type="styled" mode="integration" hidden="true" flex="1"/>
<!-- TODO: localize -->
<description id="zotero-editor-warning" style="margin: 9px 1px 0" hidden="true">Warning: If you edit a citation in the editor it will no longer update to reflect changes in your database or the citation style.</description>
</vbox>
</dialog>

View file

@ -115,5 +115,7 @@
</vbox>
<textbox id="editor" type="styled" mode="integration" flex="1"/>
<!-- TODO: localize -->
<description id="zotero-editor-warning" style="margin: 9px 1px 0">Warning: If you edit a citation in the editor it will no longer update to reflect changes in your database or the citation style.</description>
</vbox>
</dialog>