Skip to content

Commit

Permalink
Extra-check for revisions for when switching to a new revision, where…
Browse files Browse the repository at this point in the history
… there is no revision model.
  • Loading branch information
sergi committed May 14, 2012
1 parent a5f90e1 commit 7aee48f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins-client/ext.revisions/revisions.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ module.exports = ext.register("ext/revisions/revisions", {
},

$restoreSelection: function(page, model) {
if (page.$showRevisions === true && lstRevisions) {
if (page.$showRevisions === true && lstRevisions && !this.isNewPage(page)) {
var selection = lstRevisions.selection;
var node = model.data.firstChild;
if (selection && selection.length === 0 && page.$selectedRevision) {
Expand Down

0 comments on commit 7aee48f

Please sign in to comment.