witten
/
luminotes
Archived
1
0
Fork 0

Fix for a bug in which "toolbar/small/undefined_button.png" was being loaded from the login page.

The solution is to bail from update_toolbar() on read-only notebooks.
This commit is contained in:
Dan Helfman 2008-06-09 13:32:27 -07:00
parent 87e3386356
commit 51ccb41fd0
1 changed files with 4 additions and 0 deletions

View File

@ -1079,6 +1079,10 @@ Wiki.prototype.update_toolbar = function() {
var node_names = null;
var link = null;
// a read-only notebook doesn't have a visible toolbar
if ( !this.notebook.read_write )
return;
if ( this.focused_editor ) {
node_names = this.focused_editor.current_node_names();
link = this.focused_editor.find_link_at_cursor();