From f965eb1978e74b2a28200671fe961abb2251658c Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Fri, 26 Oct 2007 20:50:58 +0000 Subject: [PATCH] Read-only editors should not issue title change events. This fix also happens to prevent links for read-only old revision notes from showing up in the "all notes" note. --- static/js/Editor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/Editor.js b/static/js/Editor.js index 4bd4eef..be0a604 100644 --- a/static/js/Editor.js +++ b/static/js/Editor.js @@ -319,7 +319,8 @@ Editor.prototype.scrape_title = function () { var title = ""; // issue a signal that the title has changed and save off the new title - signal( this, "title_changed", this, this.title, title ); + if ( this.read_write ) + signal( this, "title_changed", this, this.title, title ); this.title = title; }