Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

run script works

  • Loading branch information...
commit bf922863b56ff03c5e1c84acd8f535ed6a5455a6 1 parent 3f2c732
@joeferner joeferner authored
Showing with 2 additions and 1 deletion.
  1. +1 −1  examples/webview.js
  2. +1 −0  lib/index.js
View
2  examples/webview.js
@@ -542,7 +542,7 @@ var WebFrame = wx.Frame.extend({
onRunScript: function(evt)
{
- var dialog = new wx.TextEntryDialog(this, "Enter JavaScript to run.", wx.GetTextFromUserPromptStr, "", wx.OK|wx.CANCEL|wx.CENTRE|wx.TE_MULTILINE);
+ var dialog = new wx.TextEntryDialog(this, "Enter JavaScript to run.", "", "", wx.OK|wx.CANCEL|wx.CENTRE|wx.TE_MULTILINE);
if(dialog.showModal() == wx.ID_OK)
{
this.m_browser.runScript(dialog.getValue());
View
1  lib/index.js
@@ -62,6 +62,7 @@ exports.ID_HELP_PROCEDURES = 5019;
exports.ID_HELP_CONTEXT = 5020;
exports.ID_CLOSE_ALL = 5021;
exports.ID_PREFERENCES = 5022;
+exports.ID_OK = 5100;
exports.YES = 0x00000002;
exports.OK = 0x00000004;
Please sign in to comment.
Something went wrong with that request. Please try again.