Quellcode durchsuchen

Fixed close tab switch to first tab issue

Toby Chui vor 3 Jahren
Ursprung
Commit
66ae56722d
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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();