Fix recurring "messege" typo in webview sample

This commit is contained in:
Vadim Zeitlin 2017-10-22 00:00:26 +02:00
parent 70c8979223
commit ce0de68f13

View File

@ -136,8 +136,9 @@ public:
void OnScrollLineDown(wxCommandEvent&) { m_browser->LineDown(); } void OnScrollLineDown(wxCommandEvent&) { m_browser->LineDown(); }
void OnScrollPageUp(wxCommandEvent&) { m_browser->PageUp(); } void OnScrollPageUp(wxCommandEvent&) { m_browser->PageUp(); }
void OnScrollPageDown(wxCommandEvent&) { m_browser->PageDown(); } void OnScrollPageDown(wxCommandEvent&) { m_browser->PageDown(); }
void RunScript(const wxString& javascript, wxString* result = NULL, void RunScript(const wxString& javascript,
const wxString& messege = "Click OK to run JavaScript."); wxString* result = NULL,
const wxString& message = "Click OK to run JavaScript.");
void OnRunScriptString(wxCommandEvent& evt); void OnRunScriptString(wxCommandEvent& evt);
void OnRunScriptInteger(wxCommandEvent& evt); void OnRunScriptInteger(wxCommandEvent& evt);
void OnRunScriptDouble(wxCommandEvent& evt); void OnRunScriptDouble(wxCommandEvent& evt);
@ -1050,9 +1051,9 @@ void WebFrame::OnHistory(wxCommandEvent& evt)
m_browser->LoadHistoryItem(m_histMenuItems[evt.GetId()]); m_browser->LoadHistoryItem(m_histMenuItems[evt.GetId()]);
} }
void WebFrame::RunScript(const wxString& javascript, wxString* result, const wxString& messege) void WebFrame::RunScript(const wxString& javascript, wxString* result, const wxString& message)
{ {
wxTextEntryDialog dialog(this, messege, wxGetTextFromUserPromptStr, javascript, wxOK|wxCANCEL|wxCENTRE|wxTE_MULTILINE); wxTextEntryDialog dialog(this, message, wxGetTextFromUserPromptStr, javascript, wxOK|wxCANCEL|wxCENTRE|wxTE_MULTILINE);
if( dialog.ShowModal() == wxID_OK ) if( dialog.ShowModal() == wxID_OK )
{ {
if ( m_browser->RunScript(dialog.GetValue(), result)) if ( m_browser->RunScript(dialog.GetValue(), result))