No longer asking the server for revisions for a note that hasn't been saved yet.
This commit is contained in:
parent
eb3983af9c
commit
6786f9801a
|
@ -1140,8 +1140,9 @@ Wiki.prototype.toggle_editor_changes = function ( event, editor ) {
|
|||
|
||||
event.stop();
|
||||
|
||||
// if there's already a cached revision list, display the changes pulldown with it
|
||||
if ( editor.revisions_list && editor.revisions_list.length > 0 ) {
|
||||
// if there's already a cached revision list, or the editor doesn't have a revision yet, then
|
||||
// display the changes pulldown and bail
|
||||
if ( ( editor.revisions_list && editor.revisions_list.length > 0 ) || !editor.revision ) {
|
||||
new Changes_pulldown( this, this.notebook_id, this.invoker, editor );
|
||||
return;
|
||||
}
|
||||
|
|
Reference in New Issue