witten
/
luminotes
Archived
1
0
Fork 0

Changed font selector check mark to a bullet point / circle. And font selector now works in IE.

This commit is contained in:
Dan Helfman 2008-12-17 12:15:08 -08:00
parent f385ebaa9c
commit 7254dc6972
2 changed files with 11 additions and 11 deletions

1
NEWS
View File

@ -3,6 +3,7 @@
* Decreased the default note text font size, so now you can see more of your
note text at once.
* Added rounded corners to several display elements.
* Improved the layout on low-resolution displays (1024x768 and below).
* Fixed a Luminotes Desktop bug in which creating and then clicking on a new
note link sometimes caused a red error message.
* Fixed a bug in which forum post permalinks didn't work on posts after the

View File

@ -4226,7 +4226,7 @@ function Font_pulldown( wiki, notebook_id, invoker, anchor, editor ) {
anchor.pulldown = this;
this.anchor = anchor;
this.editor = editor;
this.initial_check_mark = null;
this.initial_selected_mark = null;
Pulldown.call( this, wiki, notebook_id, "font_pulldown", anchor );
@ -4254,18 +4254,18 @@ function Font_pulldown( wiki, notebook_id, invoker, anchor, editor ) {
font_name
);
var check_mark_char = document.createTextNode( "\u2714" );
var selected_mark_char = document.createTextNode( "\u25cf" );
if ( editor.query_command_value( "fontname" ) == font_family ) {
var check_mark = createDOM( "span", {}, check_mark_char );
this.initial_check_mark = check_mark;
var selected_mark = createDOM( "span", {}, selected_mark_char );
this.initial_selected_mark = selected_mark;
} else {
var check_mark = createDOM( "span", { "class": "invisible" }, check_mark_char );
var selected_mark = createDOM( "span", { "class": "invisible" }, selected_mark_char );
}
var div = createDOM( "div", {}, check_mark, " ", label );
var div = createDOM( "div", {}, selected_mark, " ", label );
label.font_family = font_family;
label.check_mark = check_mark;
label.selected_mark = selected_mark;
appendChildNodes( this.div, div );
connect( label, "onclick", function ( event ) { self.font_name_clicked( event ); } );
}
@ -4278,14 +4278,13 @@ Font_pulldown.prototype.constructor = Font_pulldown;
Font_pulldown.prototype.font_name_clicked = function ( event ) {
var label = event.src();
if ( this.initial_check_mark )
addElementClass( this.initial_check_mark, "invisible" );
removeElementClass( label.check_mark, "invisible" );
if ( this.initial_selected_mark )
addElementClass( this.initial_selected_mark, "invisible" );
removeElementClass( label.selected_mark, "invisible" );
var self = this;
setTimeout( function () {
self.editor.focus();
// FIXME: this doesn't work in IE 7 from this click handler, but it works elsewhere (like in the constructor)
self.editor.exec_command( "fontname", label.font_family );
self.shutdown();
}, 100 );