witten
/
luminotes
Archived
1
0
Fork 0

Fixed bugs related to the display and hiding of previous note revisions: Incorrect widths and no (invisible) note grabber.

This commit is contained in:
Dan Helfman 2009-02-12 03:15:39 -08:00
parent 600be458cd
commit 38ddffd556
2 changed files with 11 additions and 8 deletions

1
NEWS
View File

@ -5,6 +5,7 @@
not position the text cursor there.
* Fixed a bug in which clicking on an unfocused note didn't position the text
cursor in the correct location.
* Fixed bugs related to the display and hiding of previous note revisions.
1.6.3: February 11, 2009
* Introduced cache-busting code to make pages update more reliably after a

View File

@ -148,11 +148,12 @@ Editor.prototype.create_div = function ( position_after ) {
Editor.prototype.create_note_controls = function () {
var iframe_id = "note_" + this.id;
if ( this.read_write ) {
this.grabber = createDOM( "td", { "id": "note_grabber_" + this.id, "class": "note_grabber" }, "....." );
if ( !this.read_write || this.own_notes_only )
addElementClass( this.grabber, "invisible" );
this.grabber = createDOM( "td", { "id": "note_grabber_" + this.id, "class": "note_grabber" }, "....." );
if ( !this.read_write || this.own_notes_only )
addElementClass( this.grabber, "invisible" );
if ( this.read_write ) {
this.delete_button = createDOM( "input", {
"type": "button",
"class": "note_button",
@ -1318,7 +1319,8 @@ Editor.prototype.blur = function () {
this.scrape_title();
removeElementClass( this.iframe || this.div, "focused_note_frame" );
removeElementClass( this.grabber, "note_grabber_focused" );
if ( this.grabber )
removeElementClass( this.grabber, "note_grabber_focused" );
}
Editor.prototype.release_iframe = function () {
@ -1335,10 +1337,10 @@ Editor.prototype.release_iframe = function () {
this.document = null;
var static_contents = getFirstElementByTagAndClassName( "span", "static_note_contents", this.div );
static_contents.innerHTML = contents;
if ( static_contents )
static_contents.innerHTML = contents;
if ( this.div )
removeElementClass( this.div, "invisible" );
removeElementClass( this.div, "invisible" );
addElementClass( this.iframe, "invisible" );
setElementDimensions( this.iframe, { "h": 0 } );
this.iframe = null;