From b27e0adca99d5af75bd1415f1ac0865aefe80986 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Wed, 13 Mar 2024 16:29:22 +0700 Subject: [PATCH] Fix onclick prepaid --- ui/ui/hotspot-add.tpl | 10 +++++----- ui/ui/hotspot-edit.tpl | 8 ++++---- ui/ui/pppoe-add.tpl | 10 +++++----- ui/ui/pppoe-edit.tpl | 12 ++++++------ 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/ui/ui/hotspot-add.tpl b/ui/ui/hotspot-add.tpl index f0528edd..9f5c7fb9 100644 --- a/ui/ui/hotspot-add.tpl +++ b/ui/ui/hotspot-add.tpl @@ -16,8 +16,8 @@
- Prepaid - Postpaid + Prepaid + Postpaid
{if $_c['radius_enable']} @@ -173,15 +173,15 @@ `; var postOpt = ``; - function prepaid() { + function prePaid() { $("#validity_unit").html(preOpt); } - function postpaid() { + function postPaid() { $("#validity_unit").html(postOpt); } document.addEventListener("DOMContentLoaded", function(event) { - prepaid() + prePaid() }) {if $_c['radius_enable']} diff --git a/ui/ui/hotspot-edit.tpl b/ui/ui/hotspot-edit.tpl index 847da83c..95b5d331 100644 --- a/ui/ui/hotspot-edit.tpl +++ b/ui/ui/hotspot-edit.tpl @@ -17,10 +17,10 @@
- Prepaid - Postpaid
@@ -201,11 +201,11 @@ `; var postOpt = ``; - function prepaid() { + function prePaid() { $("#validity_unit").html(preOpt); } - function postpaid() { + function postPaid() { $("#validity_unit").html(postOpt); } diff --git a/ui/ui/pppoe-add.tpl b/ui/ui/pppoe-add.tpl index b0e55ded..d2e8d1eb 100644 --- a/ui/ui/pppoe-add.tpl +++ b/ui/ui/pppoe-add.tpl @@ -16,8 +16,8 @@
- Prepaid - Postpaid + Prepaid + Postpaid
{if $_c['radius_enable']} @@ -122,15 +122,15 @@ `; var postOpt = ``; - function prepaid() { + function prePaid() { $("#validity_unit").html(preOpt); } - function postpaid() { + function postPaid() { $("#validity_unit").html(postOpt); } document.addEventListener("DOMContentLoaded", function(event) { - prepaid() + prePaid() }) {if $_c['radius_enable']} diff --git a/ui/ui/pppoe-edit.tpl b/ui/ui/pppoe-edit.tpl index afa1d18a..b558a1b7 100644 --- a/ui/ui/pppoe-edit.tpl +++ b/ui/ui/pppoe-edit.tpl @@ -17,9 +17,9 @@
- + Prepaid - Postpaid + Postpaid
{if $_c['radius_enable'] and $d['is_radius']} @@ -80,9 +80,9 @@ {Lang::T('Period')} {/if} -

- {Lang::T('1 Period = 1 Month, Expires the 20th of each month')}

+

+ {Lang::T('1 Period = 1 Month, Expires the 20th of each month')}

@@ -141,11 +141,11 @@ `; var postOpt = ``; - function prepaid() { + function prePaid() { $("#validity_unit").html(preOpt); } - function postpaid() { + function postPaid() { $("#validity_unit").html(postOpt); }