Bug 495972 - Use a URL to indicate where a view was saved. r=silver@warwickcompsoc.co.uk (James Ross), a=NPOTFFB.
git-svn-id: svn://10.0.0.236/trunk@258573 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1351,7 +1351,7 @@ msg.save.err.invalid.ext = The extension ``%S'' cannot be used without supp
|
||||
msg.save.err.invalid.savetype = The savetype ``%S'' is not a valid type of file to save to. Use either |complete|, |htmlonly| or |text|.
|
||||
msg.save.err.failed = Saving the view ``%1$S'' to ``%2$S'' failed:\n ``%3$S''
|
||||
msg.save.fileexists = The file ``%S'' already exists.\n Click OK to overwrite it, click Cancel to keep the original file.
|
||||
msg.save.successful = The view ``%1$S'' has been successfully saved to ``%2$S''.
|
||||
msg.save.successful = The view ``%1$S'' has been saved to <%2$S>.
|
||||
|
||||
|
||||
msg.ceip.msg1 = ChatZilla would like you to participate in the Customer Experience Improvement Program. You can %1$S or %2$S this.
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
* Robert Ginda, <rginda@netscape.com>, original author
|
||||
* Chiaki Koufugata, chiaki@mozilla.gr.jp, UI i18n
|
||||
* James Ross, silver@warwickcompsoc.co.uk
|
||||
* Gijs Kruitbosch, gijskruitbosch@gmail.com
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
@@ -3616,7 +3617,7 @@ function cmdSave(e)
|
||||
&& wbp.currentState == nsIWBP.PERSIST_STATE_FINISHED)
|
||||
{
|
||||
// Let the user know:
|
||||
pm = [e.sourceObject.viewName, e.filename];
|
||||
pm = [e.sourceObject.viewName, getURLSpecFromFile(file)];
|
||||
display(getMsg(MSG_SAVE_SUCCESSFUL, pm), MT_INFO);
|
||||
}
|
||||
/* Check if we've finished. WebBrowserPersist screws up when we
|
||||
@@ -3627,7 +3628,7 @@ function cmdSave(e)
|
||||
{
|
||||
if (wbp)
|
||||
wbp.progressListener = null;
|
||||
pm = [e.sourceObject.viewName, e.filename];
|
||||
pm = [e.sourceObject.viewName, getURLSpecFromFile(file)];
|
||||
display(getMsg(MSG_SAVE_SUCCESSFUL, pm), MT_INFO);
|
||||
}
|
||||
}
|
||||
@@ -3700,7 +3701,7 @@ function cmdSave(e)
|
||||
}
|
||||
catch (ex)
|
||||
{
|
||||
// try to use it as an url
|
||||
// try to use it as a URL
|
||||
try
|
||||
{
|
||||
file = getFileFromURLSpec(e.filename);
|
||||
|
||||
Reference in New Issue
Block a user