Title: [249549] trunk/Tools
- Revision
- 249549
- Author
- [email protected]
- Date
- 2019-09-05 16:03:32 -0700 (Thu, 05 Sep 2019)
Log Message
results.webkit.org: Fix prepending search result on empty list
https://bugs.webkit.org/show_bug.cgi?id=201512
Reviewed by Aakash Jain.
* resultsdbpy/resultsdbpy/view/templates/search.html:
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (249548 => 249549)
--- trunk/Tools/ChangeLog 2019-09-05 21:58:58 UTC (rev 249548)
+++ trunk/Tools/ChangeLog 2019-09-05 23:03:32 UTC (rev 249549)
@@ -1,5 +1,14 @@
2019-09-05 Jonathan Bedard <[email protected]>
+ results.webkit.org: Fix prepending search result on empty list
+ https://bugs.webkit.org/show_bug.cgi?id=201512
+
+ Reviewed by Aakash Jain.
+
+ * resultsdbpy/resultsdbpy/view/templates/search.html:
+
+2019-09-05 Jonathan Bedard <[email protected]>
+
results.webkit.org: Retain certain parameters when following menu links
https://bugs.webkit.org/show_bug.cgi?id=201463
Modified: trunk/Tools/resultsdbpy/resultsdbpy/view/templates/search.html (249548 => 249549)
--- trunk/Tools/resultsdbpy/resultsdbpy/view/templates/search.html 2019-09-05 21:58:58 UTC (rev 249548)
+++ trunk/Tools/resultsdbpy/resultsdbpy/view/templates/search.html 2019-09-05 23:03:32 UTC (rev 249549)
@@ -131,7 +131,10 @@
DOM.inject(element, diff.children.map(renderChild).join(''));
if (diff.prepending) {
diff.prepending.forEach(child => {
- DOM.after(element.firstElementChild, renderChild(child));
+ if (element.firstElementChild)
+ DOM.after(element.firstElementChild, renderChild(child));
+ else
+ DOM.inject(element, renderChild(child));
this.ref.state.children.unshift(child);
});
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes