diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/library.js b/packages/node_modules/@node-red/editor-client/src/js/ui/library.js
index ee176dee2..d276b1572 100755
--- a/packages/node_modules/@node-red/editor-client/src/js/ui/library.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/ui/library.js
@@ -363,106 +363,112 @@ RED.library = (function() {
options.onconfirm(item);
}
});
- var itemTools = $("
").css({position: "absolute",bottom:"6px",right:"8px"});
- var menuButton = $('')
- .on("click", function(evt) {
- evt.preventDefault();
- evt.stopPropagation();
- var elementPos = menuButton.offset();
-
- var menuOptionMenu = RED.menu.init({id:"red-ui-library-browser-menu",
- options: [
- {id:"red-ui-library-browser-menu-addFolder",label:RED._("library.newFolder"), onselect: function() {
- var defaultFolderName = "new-folder";
- var defaultFolderNameMatches = {};
-
- var selected = dirList.treeList('selected');
- if (!selected.children) {
- selected = selected.parent;
- }
- var complete = function() {
- selected.children.forEach(function(c) {
- if (/^new-folder/.test(c.label)) {
- defaultFolderNameMatches[c.label] = true
- }
- });
- var folderIndex = 2;
- while(defaultFolderNameMatches[defaultFolderName]) {
- defaultFolderName = "new-folder-"+(folderIndex++)
- }
-
- selected.treeList.expand();
- var input = $('').val(defaultFolderName);
- var newItem = {
- icon: "fa fa-folder-o",
- children:[],
- path: selected.path,
- element: input
- }
- var confirmAdd = function() {
- var val = input.val().trim();
- if (val === "") {
- cancelAdd();
- return;
- } else {
- for (var i=0;i").css({position: "absolute",bottom:"6px",right:"8px"});
+ var menuButton = $('')
+ .on("click", function(evt) {
+ evt.preventDefault();
+ evt.stopPropagation();
+ var elementPos = menuButton.offset();
+
+ var menuOptionMenu
+ = RED.menu.init({id:"red-ui-library-browser-menu",
+ options: [
+ {id:"red-ui-library-browser-menu-addFolder",label:RED._("library.newFolder"), onselect: function() {
+ var defaultFolderName = "new-folder";
+ var defaultFolderNameMatches = {};
+
+ var selected = dirList.treeList('selected');
+ if (!selected.children) {
+ selected = selected.parent;
+ }
+ var complete = function() {
+ selected.children.forEach(function(c) {
+ if (/^new-folder/.test(c.label)) {
+ defaultFolderNameMatches[c.label] = true
+ }
+ });
+ var folderIndex = 2;
+ while(defaultFolderNameMatches[defaultFolderName]) {
+ defaultFolderName = "new-folder-"+(folderIndex++)
+ }
+
+ selected.treeList.expand();
+ var input = $('').val(defaultFolderName);
+ var newItem = {
+ icon: "fa fa-folder-o",
+ children:[],
+ path: selected.path,
+ element: input
+ }
+ var confirmAdd = function() {
+ var val = input.val().trim();
+ if (val === "") {
+ cancelAdd();
+ return;
+ } else {
+ for (var i=0;i