ui: also trigger link update at contentNew

This commit is contained in:
undefined committed 2021-07-29 17:34:04 +08:00
1 parent 4d6efdc37f
commit 2a4169d02b
3 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -30,7 +30,7 @@ export class HydroError extends Error {
constructor(...params: any[]) {
super();
this.params = params || [];
this.params = params;
}
// eslint-disable-next-line class-methods-use-this
@@ -2,4 +2,7 @@ import { AutoloadPage } from 'vj/misc/Page';
export default new AutoloadPage('problemListPage', () => {
$('.col--problem-name>a').attr('target', '_blank');
$(document).on('vjContentNew', () => {
$('.col--problem-name>a').attr('target', '_blank');
});
});
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/ui-default",
"version": "4.14.0",
"version": "4.14.1",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "hydro.js",