* add a way for the tabbed api to re-open the same tab on save again.
[citadel.git] / webcit / tabs.c
index d6172de36f9832c7ff512e075b4e47e3d034104b..53b8e87c06558cda72da79918ccb221b664ec4d6 100644 (file)
@@ -220,6 +220,10 @@ void StrEndTab(StrBuf *Target, int tabnum, int num_tabs) {
                                        "</script>"), 0);
                }
        }
+       if (HAVEBSTR("last_tabsel"))
+       {
+               StrBufAppendPrintf(Target, "<script type=\"text/javascript\">tabsel(%s);</script>", BSTR("last_tabsel"));
+       }
 }