Fixed bugs related to the display and hiding of previous note revisions: Incorrect widths and no (invisible) note grabber.
This commit is contained in:
parent
600be458cd
commit
38ddffd556
1
NEWS
1
NEWS
|
@ -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
|
||||
|
|
|
@ -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" );
|
||||
|
||||
if ( this.read_write ) {
|
||||
this.delete_button = createDOM( "input", {
|
||||
"type": "button",
|
||||
"class": "note_button",
|
||||
|
@ -1318,6 +1319,7 @@ Editor.prototype.blur = function () {
|
|||
this.scrape_title();
|
||||
|
||||
removeElementClass( this.iframe || this.div, "focused_note_frame" );
|
||||
if ( this.grabber )
|
||||
removeElementClass( this.grabber, "note_grabber_focused" );
|
||||
}
|
||||
|
||||
|
@ -1335,9 +1337,9 @@ Editor.prototype.release_iframe = function () {
|
|||
this.document = null;
|
||||
|
||||
var static_contents = getFirstElementByTagAndClassName( "span", "static_note_contents", this.div );
|
||||
if ( static_contents )
|
||||
static_contents.innerHTML = contents;
|
||||
|
||||
if ( this.div )
|
||||
removeElementClass( this.div, "invisible" );
|
||||
addElementClass( this.iframe, "invisible" );
|
||||
setElementDimensions( this.iframe, { "h": 0 } );
|
||||
|
|
Reference in New Issue