Skip to content
Snippets Groups Projects
Commit c42ed8b7 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fix #225: Help browser: Bad arguments for message 'open' to object 'pd'

parent d0d1e1cb
No related branches found
No related tags found
No related merge requests found
...@@ -300,12 +300,11 @@ function file_browser_click() { ...@@ -300,12 +300,11 @@ function file_browser_click() {
function file_browser_callback(elem) { function file_browser_callback(elem) {
var doc = elem.value; var doc = elem.value;
//pdgui.post("file callback: file is " + elem.value); if (doc !== "") {
//pdgui.post("dir is " + pdgui.defunkify_windows_path(path.dirname(doc))); pdgui.doc_open(pdgui.defunkify_windows_path(path.dirname(doc)),
//pdgui.post("file is " + pdgui.defunkify_windows_path(path.basename(doc))); pdgui.defunkify_windows_path(path.basename(doc)));
pdgui.doc_open(pdgui.defunkify_windows_path(path.dirname(doc)), display_directory(pdgui.defunkify_windows_path(path.dirname(doc)));
pdgui.defunkify_windows_path(path.basename(doc))); }
display_directory(pdgui.defunkify_windows_path(path.dirname(doc)));
} }
function console_unwrap_tag(console_elem, tag_name) { function console_unwrap_tag(console_elem, tag_name) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment