mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
Fixed setting Save/Publish UI when loading file in Composer, b=127698, r=brade, sr=sfraser, a=asa
This commit is contained in:
parent
ea418111be
commit
b738a39faa
@ -141,7 +141,9 @@ function EditorOnLoad()
|
|||||||
if ( window.arguments && window.arguments[0] ) {
|
if ( window.arguments && window.arguments[0] ) {
|
||||||
// Opened via window.openDialog with URL as argument.
|
// Opened via window.openDialog with URL as argument.
|
||||||
// Put argument where EditorStartup expects it.
|
// Put argument where EditorStartup expects it.
|
||||||
document.getElementById( "args" ).setAttribute( "value", window.arguments[0] );
|
var url = window.arguments[0];
|
||||||
|
document.getElementById( "args" ).setAttribute( "value", url );
|
||||||
|
SetSaveAndPublishUI(url);
|
||||||
}
|
}
|
||||||
|
|
||||||
// get default character set if provided
|
// get default character set if provided
|
||||||
@ -168,7 +170,9 @@ function TextEditorOnLoad()
|
|||||||
if ( window.arguments && window.arguments[0] ) {
|
if ( window.arguments && window.arguments[0] ) {
|
||||||
// Opened via window.openDialog with URL as argument.
|
// Opened via window.openDialog with URL as argument.
|
||||||
// Put argument where EditorStartup expects it.
|
// Put argument where EditorStartup expects it.
|
||||||
document.getElementById( "args" ).setAttribute( "value", window.arguments[0] );
|
var url = window.arguments[0];
|
||||||
|
document.getElementById( "args" ).setAttribute( "value", url );
|
||||||
|
SetSaveAndPublishUI(url);
|
||||||
}
|
}
|
||||||
// Continue with normal startup.
|
// Continue with normal startup.
|
||||||
EditorStartup('text', document.getElementById("content-frame"));
|
EditorStartup('text', document.getElementById("content-frame"));
|
||||||
|
Loading…
Reference in New Issue
Block a user