Explorar el Código

fix check if tab name is taken

CauseFX hace 4 años
padre
commit
d17734e55a
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      js/functions.js

+ 2 - 2
js/functions.js

@@ -10322,10 +10322,10 @@ function toggleWritableFolders(){
     $('.folders-writable').toggleClass('hidden');
 }
 function getAllTabNames(){
-    var allTabs = $('.allTabsList');
+    var allTabs = $('.tabEditor');
     var tabList = [];
     $.each(allTabs, function(i,v) {
-        tabList[i] = v.getAttribute('data-tab-name').toLowerCase();
+        tabList[i] = v.getAttribute('data-name').toLowerCase();
     });
     return tabList;
 }