From 40f037c517d2e943b623c6bcdf0ae86c1e0f095f Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 29 Jun 2026 10:43:31 +0800 Subject: [PATCH] fix: proxy_recharge.ui Form Cancel button now resets form fields The Form's Cancel button dispatches a 'cancel' event but no handler existed. Added a bind to call reset_data() when Cancel is clicked, which clears the form fields (username and amount inputs). --- wwwroot/proxy_recharge.ui | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wwwroot/proxy_recharge.ui b/wwwroot/proxy_recharge.ui index 00aba13..c53f642 100644 --- a/wwwroot/proxy_recharge.ui +++ b/wwwroot/proxy_recharge.ui @@ -68,6 +68,12 @@ "options": { "url": "{{entire_url('/accounting/proxy_recharge_submit.dspy')}}" } + }, { + "wid": "self", + "event": "cancel", + "actiontype": "method", + "target": "self", + "method": "reset_data" }] }, {