зеркало из https://github.com/mozilla/gecko-dev.git
display save error on !success (rather than only for exceptions); bug 128367, r=adamlock, sr=kin; a=asa
This commit is contained in:
Родитель
b488beb502
Коммит
8dc0720421
|
@ -1243,9 +1243,6 @@ function SaveDocument(aSaveAs, aSaveCopy, aMimeType)
|
|||
}
|
||||
catch (e)
|
||||
{
|
||||
var saveDocStr = GetString("SaveDocument");
|
||||
var failedStr = GetString("SaveFileFailed");
|
||||
AlertWithTitle(saveDocStr, failedStr);
|
||||
success = false;
|
||||
}
|
||||
|
||||
|
@ -1260,6 +1257,12 @@ function SaveDocument(aSaveAs, aSaveCopy, aMimeType)
|
|||
SetSaveAndPublishUI(urlstring);
|
||||
} catch (e) {}
|
||||
}
|
||||
else
|
||||
{
|
||||
var saveDocStr = GetString("SaveDocument");
|
||||
var failedStr = GetString("SaveFileFailed");
|
||||
AlertWithTitle(saveDocStr, failedStr);
|
||||
}
|
||||
return success;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче