witten
/
luminotes
Archived
1
0
Fork 0

No longer asking the server for revisions for a note that hasn't been saved yet.

This commit is contained in:
Dan Helfman 2007-10-11 11:29:42 +00:00
parent eb3983af9c
commit 6786f9801a
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}