summaryrefslogtreecommitdiff
path: root/fxjs/cjs_app.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/cjs_app.cpp')
-rw-r--r--fxjs/cjs_app.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/fxjs/cjs_app.cpp b/fxjs/cjs_app.cpp
index ad155b787c..fd98670c51 100644
--- a/fxjs/cjs_app.cpp
+++ b/fxjs/cjs_app.cpp
@@ -404,6 +404,12 @@ void CJS_App::ClearTimerCommon(CJS_Runtime* pRuntime,
CJS_Return CJS_App::execMenuItem(
CJS_Runtime* pRuntime,
const std::vector<v8::Local<v8::Value>>& params) {
+ if (params.size() > 0 && IsTypeKnown(params[0])) {
+ WideString item = pRuntime->ToWideString(params[0]);
+ if (item == L"SaveAs" && pRuntime->GetFormFillEnv())
+ pRuntime->GetFormFillEnv()->SaveCalled();
+ }
+
return CJS_Return(JSMessage::kNotSupportedError);
}