mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
ui: also trigger link update at contentNew
This commit is contained in:
1 parent
4d6efdc37f
commit
2a4169d02b
3 files changed
+5
-2
No files matched your search
@@ -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,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",
|
||||
|
||||
Reference in new issue
Block a user