From 190a3fa41d5309f6bb5ad76a592817bf0291194b Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Sat, 21 Mar 2009 02:02:23 -0700 Subject: [PATCH] Fixed a bug in which toolbar buttons didn't depress based on the current location of the text cursor. --- NEWS | 3 ++- static/js/Wiki.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 393bca3..d644149 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,6 @@ 1.6.11: - * + * Fixed a bug in which toolbar buttons didn't depress based on the current + location of the text cursor. 1.6.10: March 20, 2009 * Faster uploads and downloads for users of luminotes.com. diff --git a/static/js/Wiki.js b/static/js/Wiki.js index 9dd3d02..ea31fc6 100644 --- a/static/js/Wiki.js +++ b/static/js/Wiki.js @@ -1341,7 +1341,7 @@ Wiki.prototype.connect_image_button = function ( button, filename_prefix ) { Wiki.prototype.down_image_button = function ( name ) { var button = getElement( name ); - if ( !button || !button.filename_preifx ) + if ( !button || !button.filename_prefix ) return; var toolbar_image_dir = this.get_toolbar_image_dir( button.always_small );