Navigation Menu

Skip to content

Commit

Permalink
Additional fixes for File Editor panel in Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianbj committed Sep 19, 2018
1 parent a81c7e7 commit 7c3bcab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion TracyDebugger.module
Expand Up @@ -32,7 +32,7 @@ class TracyDebugger extends WireData implements Module, ConfigurableModule {
'summary' => __('Tracy debugger from Nette with several PW specific custom tools.', __FILE__),
'author' => 'Adrian Jones',
'href' => 'https://processwire.com/talk/topic/12208-tracy-debugger/',
'version' => '4.11.34',
'version' => '4.11.35',
'autoload' => true,
'singular' => true,
'requires' => 'ProcessWire>=2.7.2, PHP>=5.4.4',
Expand Down
2 changes: 1 addition & 1 deletion scripts/file-editor.js
Expand Up @@ -2,7 +2,7 @@ if(!tracyFileEditorLoader) {
var tracyFileEditorLoader = {

getFileLineVars: function (query,variable) {
var vars = query.replace("?","").split("&");
var vars = query.split("&");
for (var i = 0; i < vars.length; i++) {
var pair = vars[i].split("=");
if (decodeURIComponent(pair[0]) == variable) {
Expand Down
4 changes: 2 additions & 2 deletions scripts/php-file-tree/php_file_tree.js
Expand Up @@ -92,8 +92,8 @@ function init_php_file_tree() {
for (var j = 0; j < items.length; j++) {
if (items[j].tagName == "A") {
var parser = document.createElement('a');
parser.href = items[j].href;
var currentFilePath = parser.search.replace('?f=','').replace('&l=1','');
queryStr = items[j].href.split('?')[1];
var currentFilePath = queryStr.replace('f=','').replace('&l=1','');
if(document.getElementById('panelTitleFilePath').innerHTML == currentFilePath) {
items[j].classList.add("active");
}
Expand Down

0 comments on commit 7c3bcab

Please sign in to comment.