From 65bbe394776774a12f9b593c178ae6f2104ae1bb Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 29 Jun 2026 16:11:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20changed=E2=86=92blur,=20=E7=A7=BB?= =?UTF-8?q?=E9=99=A4css:childrensize?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/discount_setting/index.ui | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wwwroot/discount_setting/index.ui b/wwwroot/discount_setting/index.ui index ee4c5a6..528cde5 100644 --- a/wwwroot/discount_setting/index.ui +++ b/wwwroot/discount_setting/index.ui @@ -60,7 +60,6 @@ "options": { "width": "22%", "show_label": false, - "css": "childrensize", "submit_url": "{{entire_url('./save_discount.dspy')}}", "fields": [ {"name": "discountid", "uitype": "hide", "value": "{{params_kw.discountid}}"}, @@ -72,7 +71,7 @@ "binds": [ { "wid": "self", - "event": "changed", + "event": "blur", "actiontype": "script", "target": "self", "script": "var form = this.target; var d = form.getValue(); var old = form._last_val; if (d.discount === old) return; form._last_val = d.discount; fetch(form.options.submit_url, {method:'POST', headers:{'Content-Type':'application/json'}, body:JSON.stringify(d)}).then(function(r){ return r.json(); }).then(function(resp){ if (resp.widgettype === 'Error') bricks.show_error(resp.options); else console.log('discount saved'); }).catch(function(e){ console.error(e); });"