Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/web/html
diff options
context:
space:
mode:
authorAlireza Ahmadi <alireza.ahmadi@tzconnect.com>2023-03-17 21:04:07 +0300
committerAlireza Ahmadi <alireza.ahmadi@tzconnect.com>2023-03-17 21:04:07 +0300
commit025f559460108ce4f6e55025c08a291796ae4538 (patch)
tree8ac22dd629a19f033885d5af59be3868f8052ffa /web/html
parentbaaa814a519e9867536811529b490af059d55fbb (diff)
Fix clear IP affect in UI
Diffstat (limited to 'web/html')
-rw-r--r--web/html/xui/client_modal.html4
-rw-r--r--web/html/xui/form/client.html4
2 files changed, 4 insertions, 4 deletions
diff --git a/web/html/xui/client_modal.html b/web/html/xui/client_modal.html
index 17381a88..e4ee8659 100644
--- a/web/html/xui/client_modal.html
+++ b/web/html/xui/client_modal.html
@@ -120,12 +120,12 @@
event.target.value = msg.obj
}
},
- async clearDBClientIps(email,event) {
+ async clearDBClientIps(email) {
const msg = await HttpUtil.post('/xui/inbound/clearClientIps/'+ email);
if (!msg.success) {
return;
}
- event.target.value = ""
+ document.getElementById("clientIPs").value = ""
},
},
});
diff --git a/web/html/xui/form/client.html b/web/html/xui/form/client.html
index 586f4fd4..fac830e2 100644
--- a/web/html/xui/form/client.html
+++ b/web/html/xui/form/client.html
@@ -50,12 +50,12 @@
Clear The Log
</template>
<span style="color: #FF4D4F">
- <a-icon type="delete" @click="clearDBClientIps(client.email,$event)"></a-icon>
+ <a-icon type="delete" @click="clearDBClientIps(client.email)"></a-icon>
</span>
</a-tooltip>
</span>
<a-form layout="block">
- <a-textarea readonly @click="getDBClientIps(client.email,$event)" placeholder="Click To Get IPs" :auto-size="{ minRows: 2, maxRows: 10 }">
+ <a-textarea id="clientIPs" readonly @click="getDBClientIps(client.email,$event)" placeholder="Click To Get IPs" :auto-size="{ minRows: 2, maxRows: 10 }">
</a-textarea>
</a-form>
</a-form-item>