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

take patch file content out of the search index, clean up dialogwin references...

take patch file content out of the search index, clean up dialogwin references when window gets closed
parent 3aa6f249
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,6 @@ index.addField("title"); ...@@ -18,7 +18,6 @@ index.addField("title");
index.addField("keywords"); index.addField("keywords");
index.addField("description"); index.addField("description");
index.addField("path"); index.addField("path");
index.addField("body");
index.setRef("id"); index.setRef("id");
var doc_id = 0; var doc_id = 0;
...@@ -56,7 +55,6 @@ function add_doc_to_index(filename, data) { ...@@ -56,7 +55,6 @@ function add_doc_to_index(filename, data) {
"title": title, "title": title,
"keywords": keywords, "keywords": keywords,
"description": desc, "description": desc,
"body": big_line,
"path": filename "path": filename
}); });
...@@ -71,7 +69,7 @@ function read_file(filename, len, i) { ...@@ -71,7 +69,7 @@ function read_file(filename, len, i) {
pdgui.post("err: " + err); pdgui.post("err: " + err);
} }
if (i === (len - 1)) { if (i === (len - 1)) {
pdgui.post("Probably about finished..."); // Probably about finished...
document.getElementById("results").textContent = ""; document.getElementById("results").textContent = "";
document.getElementById("search_text").disabled = false; document.getElementById("search_text").disabled = false;
} }
...@@ -251,6 +249,12 @@ function toggle_find_bar() { ...@@ -251,6 +249,12 @@ function toggle_find_bar() {
} }
function add_events() { function add_events() {
// closing the Window
nw.Window.get().on("close", function() {
pdgui.remove_dialogwin("search");
nw.Window.get().close(true);
});
// Find bar // Find bar
var find_bar = document.getElementById("console_find_text"); var find_bar = document.getElementById("console_find_text");
find_bar.placeholder = "Search in Console"; find_bar.placeholder = "Search in Console";
......
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