From 5b87b1253555b7e932f79bd86795e350f9f3de2e Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Mon, 11 Mar 2024 16:14:24 +0330 Subject: [sub] JSON sub enhancement + minor changes Co-Authored-By: Alireza Ahmadi --- web/html/xui/settings.html | 37 +++++++++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 4 deletions(-) (limited to 'web/html/xui/settings.html') diff --git a/web/html/xui/settings.html b/web/html/xui/settings.html index 507a93c7..aac10f2a 100644 --- a/web/html/xui/settings.html +++ b/web/html/xui/settings.html @@ -295,11 +295,30 @@ - + + + + + + + + + + + [[ p ]] + + + + + + + + + @@ -483,6 +502,16 @@ this.allSetting.subJsonFragment = v ? JSON.stringify(this.defaultFragment) : ""; } }, + fragmentPackets: { + get: function() { return this.fragment ? JSON.parse(this.allSetting.subJsonFragment).settings.fragment.packets : ""; }, + set: function(v) { + if (v != ""){ + newFragment = JSON.parse(this.allSetting.subJsonFragment); + newFragment.settings.fragment.packets = v; + this.allSetting.subJsonFragment = JSON.stringify(newFragment); + } + } + }, fragmentLength: { get: function() { return this.fragment ? JSON.parse(this.allSetting.subJsonFragment).settings.fragment.length : ""; }, set: function(v) { -- cgit v1.2.3