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).
This commit is contained in:
yumoqing 2026-06-29 10:43:31 +08:00
parent d8cfd06c4c
commit 40f037c517

View File

@ -68,6 +68,12 @@
"options": {
"url": "{{entire_url('/accounting/proxy_recharge_submit.dspy')}}"
}
}, {
"wid": "self",
"event": "cancel",
"actiontype": "method",
"target": "self",
"method": "reset_data"
}]
},
{