Browse Source

Fix javascript errors with Chrome (thanks HWGuy)

dds
PaulStoffregen 9 years ago
parent
commit
652994b05b
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      gui/red/nodes.js
  2. +1
    -1
      gui/red/ui/library.js

+ 2
- 2
gui/red/nodes.js View File

return node_defs[type]; return node_defs[type];
} }
function selectNode(name) { function selectNode(name) {
window.history.pushState(null, null, window.location.protocol + "//"
+ window.location.host + window.location.pathname + '?info=' + name);
// window.history.pushState(null, null, window.location.protocol + "//"
// + window.location.host + window.location.pathname + '?info=' + name);
} }
function addNode(n) { function addNode(n) {
if (n._def.category == "config") { if (n._def.category == "config") {

+ 1
- 1
gui/red/ui/library.js View File

$("#flow-menu-parent>ul").replaceWith(menu); $("#flow-menu-parent>ul").replaceWith(menu);
}); });
} }
loadFlowLibrary();
//loadFlowLibrary();





Loading…
Cancel
Save