witten
/
luminotes
Archived
1
0
Fork 0

Fixed display of image justification controls IE. Made justification default back to left when unchecking embed checkbox.

This commit is contained in:
Dan Helfman 2008-06-16 13:42:52 -07:00
parent dbf9dda2a0
commit 4bbebc4400
2 changed files with 9 additions and 4 deletions

View File

@ -52,6 +52,7 @@ img {
.center_justified {
display: block;
margin: 0.5em auto 0.5em auto;
text-align: center;
}
.right_justified {

View File

@ -3041,10 +3041,12 @@ function File_link_pulldown( wiki, notebook_id, invoker, editor, link, ephemeral
this.image_justify_area = createDOM( "div", { "class": "undisplayed" },
createDOM( "table" , { "id": "justify_table" },
createDOM( "tr", {},
createDOM( "td", {}, this.left_justify_radio, left_justify_label ),
createDOM( "td", {}, this.center_justify_radio, center_justify_label ),
createDOM( "td", {}, this.right_justify_radio, right_justify_label )
createDOM( "tbody", {},
createDOM( "tr", {},
createDOM( "td", {}, this.left_justify_radio, left_justify_label ),
createDOM( "td", {}, this.center_justify_radio, center_justify_label ),
createDOM( "td", {}, this.right_justify_radio, right_justify_label )
)
)
)
);
@ -3155,6 +3157,8 @@ File_link_pulldown.prototype.embed_clicked = function ( event ) {
addElementClass( this.thumbnail_span, "undisplayed" );
removeElementClass( this.image_justify_area, "undisplayed" );
} else {
this.justify_image( "left" );
this.left_justify_radio.checked = true;
removeElementClass( this.thumbnail_span, "undisplayed" );
addElementClass( this.image_justify_area, "undisplayed" );
this.link.innerHTML = this.link_title || this.filename_field.value || this.previous_filename;