Procházet zdrojové kódy

Fixed close tab switch to first tab issue

Toby Chui před 3 roky
rodič
revize
66ae56722d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      web/NotepadA/index.html

+ 1 - 1
web/NotepadA/index.html

@@ -1039,7 +1039,7 @@ function removeTab(tabid){
 		$(targetTab).remove();
 		//I have no idea why this only works with a delay... but just don't change this.
 		setTimeout(function(){
-			var focusTarget = $(".fileTab").first().attr("tabid");
+			var focusTarget = $(".fileTab").last().attr("tabid");
 			focusTab(focusTarget); }, 100);
 	}else{
 		$(targetTab).remove();