After selecting a bib attribute to view then attempting to create an
authority record attribute, the editor would get confused and think it
was trying to update an existing attribute. This clears the "we are
editing attr X" flag so create will create instead of update.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
dijit.byId('attr-editor-dialog').reset();
create_bar.style.display='table-row';
update_bar.style.display='none';
+
+ // clear the currently-editing attribute ID,
+ // since we're creating a new attribute.
+ ATTR_EDIT_ID = null;
}
}