Editor.shutdown() now supports static div notes, not just iframes.
This commit is contained in:
parent
9dfe196dc7
commit
28b2dbe469
|
@ -929,24 +929,35 @@ Editor.prototype.current_node_names = function () {
|
||||||
Editor.prototype.shutdown = function( event ) {
|
Editor.prototype.shutdown = function( event ) {
|
||||||
signal( this, "title_changed", this, this.title, null );
|
signal( this, "title_changed", this, this.title, null );
|
||||||
this.closed = true;
|
this.closed = true;
|
||||||
var iframe = this.iframe;
|
|
||||||
var note_controls = this.note_controls;
|
var note_controls = this.note_controls;
|
||||||
disconnectAll( this );
|
|
||||||
disconnectAll( this.delete_button );
|
if ( this.iframe ) {
|
||||||
disconnectAll( this.changes_button );
|
var iframe = this.iframe;
|
||||||
disconnectAll( this.options_button );
|
this.iframe = null;
|
||||||
disconnectAll( this.hide_button );
|
disconnectAll( this );
|
||||||
disconnectAll( iframe );
|
disconnectAll( this.delete_button );
|
||||||
|
disconnectAll( this.changes_button );
|
||||||
|
disconnectAll( this.options_button );
|
||||||
|
disconnectAll( this.hide_button );
|
||||||
|
disconnectAll( iframe );
|
||||||
|
var editor_node = iframe;
|
||||||
|
}
|
||||||
|
|
||||||
if ( this.document ) {
|
if ( this.document ) {
|
||||||
disconnectAll( this.document.body );
|
disconnectAll( this.document.body );
|
||||||
disconnectAll( this.document );
|
disconnectAll( this.document );
|
||||||
}
|
}
|
||||||
|
|
||||||
blindUp( iframe, options = { "duration": 0.25, afterFinish: function () {
|
if ( this.div ) {
|
||||||
|
disconnectAll( this.div );
|
||||||
|
var editor_node = this.div;
|
||||||
|
this.div = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
blindUp( editor_node, options = { "duration": 0.25, afterFinish: function () {
|
||||||
try {
|
try {
|
||||||
removeElement( note_controls );
|
removeElement( note_controls );
|
||||||
removeElement( iframe );
|
removeElement( editor_node );
|
||||||
} catch ( e ) { }
|
} catch ( e ) { }
|
||||||
} } );
|
} } );
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue