witten
/
luminotes
Archived
1
0
Fork 0

Fixed current font indication in IE.

This commit is contained in:
Dan Helfman 2008-12-22 23:26:01 -08:00
parent 1f3b50704e
commit 74db4e8164
2 changed files with 8 additions and 3 deletions

2
NEWS
View File

@ -8,6 +8,8 @@
note link sometimes caused a red error message.
* Fixed a bug in which forum post permalinks didn't work on posts after the
first ten in a particular thread.
* Fixed a bug in which yellow pulldowns opened towards the bottom of the page
appeared partially off the page.
1.5.10: December 4, 2008
* Fixed a bug in which certain new installations of Luminotes Desktop

View File

@ -4242,7 +4242,7 @@ function Font_pulldown( wiki, notebook_id, invoker, anchor, editor ) {
var fonts = [
[ "Sans Serif", "sans-serif" ],
[ "Serif", "serif" ],
[ "Monospace", "monospace" ],
[ "Monospace", "courier new,monospace" ],
[ "Comic", "comic sans ms,sans-serif" ],
[ "Garamond", "garamond,serif" ],
[ "Georgia", "georgia,serif" ],
@ -4253,8 +4253,11 @@ function Font_pulldown( wiki, notebook_id, invoker, anchor, editor ) {
var self = this;
var current_font_family = editor.query_command_value( "fontname" );
if ( WEBKIT )
current_font_family = current_font_family.replace( /'/g, "" ).replace( /-webkit-/, "" );
if ( current_font_family ) {
current_font_family = current_font_family.toLowerCase();
if ( WEBKIT )
current_font_family = current_font_family.replace( /'/g, "" ).replace( /-webkit-/, "" );
}
for ( var i in fonts ) {
var font = fonts[ i ];