Open rzaleski-techdynamism opened 8 years ago
@louiealmeda - FYI...
yep, it still doesn't work on 1.8
@MerryPanda - Does the above fix work on 1.8?
hey, i didn't do anything but it works not ^_^
here is my string you were speaking about:
file.attr("data-file-name", parts[1].innerHTML + parts[2].innerHTML);
looks like nothing has changed
cheers
This patch makes things work for me:
--- main.js
+++ main.js
@@ -87,7 +87,7 @@
var parts = file.find("a span");
- file.attr("data-file-name", parts[1].innerHTML + parts[2].innerHTML);
+ file.attr("data-file-name", parts.text());
});
Note that this was made against version 1.1.1, from the Brackets Extension Registry. This repository only contains version 1.1.0. I am not sure if that makes a difference, bt thought I would point that out.
This doesn't seem to work with the latest version of Brackets. The HTML for the folder structure seems to be:
The current code to pull the file name is:
file.attr("data-file-name", parts[1].innerHTML + parts[2].innerHTML);
It should be
file.attr("data-file-name", parts[0].innerHTML + parts[1].innerHTML);