mirror of
https://github.com/remittor/zapret-openwrt.git
synced 2025-12-06 11:36:48 +03:00
luci: Fix view multiline for NFQWS_OPT
This commit is contained in:
@@ -190,7 +190,7 @@ return view.extend({
|
|||||||
o.datatype = 'uinteger';
|
o.datatype = 'uinteger';
|
||||||
|
|
||||||
add_delim(s);
|
add_delim(s);
|
||||||
add_param(s, 'NFQWS_OPT', null, 18, 2);
|
add_param(s, 'NFQWS_OPT', null, 21, 2);
|
||||||
|
|
||||||
/* AutoHostList settings */
|
/* AutoHostList settings */
|
||||||
|
|
||||||
|
|||||||
@@ -440,6 +440,9 @@ return baseclass.extend({
|
|||||||
if (typeof(value) === 'string') {
|
if (typeof(value) === 'string') {
|
||||||
value = value.trim();
|
value = value.trim();
|
||||||
if (this.multiline == 2) {
|
if (this.multiline == 2) {
|
||||||
|
value = value.replace(/\n\t\t\t--/g, "\n--");
|
||||||
|
value = value.replace(/\n\t\t--/g, "\n--");
|
||||||
|
value = value.replace(/\n\t--/g, "\n--");
|
||||||
value = value.replace(/\n --/g, "\n--");
|
value = value.replace(/\n --/g, "\n--");
|
||||||
value = value.replace(/\n --/g, "\n--");
|
value = value.replace(/\n --/g, "\n--");
|
||||||
value = value.replace(/ --/g, "\n--");
|
value = value.replace(/ --/g, "\n--");
|
||||||
|
|||||||
Reference in New Issue
Block a user