This repository was archived by the owner on Jul 8, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
core/scripts/webpanel/assets/js Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -257,14 +257,21 @@ $(function () {
257257 const trafficText = dataRow . find ( "td:eq(4)" ) . text ( ) ;
258258 const expiryText = dataRow . find ( "td:eq(6)" ) . text ( ) ;
259259 const note = dataRow . data ( 'note' ) ;
260+ const statusText = dataRow . find ( "td:eq(3)" ) . text ( ) . trim ( ) ;
260261
261262 $ ( '#editPasswordError' ) . text ( '' ) ;
262263 $ ( '#editSubmitButton' ) . prop ( 'disabled' , false ) ;
263264
264265 $ ( "#originalUsername" ) . val ( user ) ;
265266 $ ( "#editUsername" ) . val ( user ) ;
266267 $ ( "#editTrafficLimit" ) . val ( parseFloat ( trafficText . split ( '/' ) [ 1 ] ) || 0 ) ;
267- $ ( "#editExpirationDays" ) . val ( parseInt ( expiryText ) || 0 ) ;
268+
269+ if ( statusText . includes ( "On-hold" ) ) {
270+ $ ( "#editExpirationDays" ) . val ( '' ) . attr ( "placeholder" , "Paused" ) ;
271+ } else {
272+ $ ( "#editExpirationDays" ) . val ( parseInt ( expiryText ) || 0 ) . attr ( "placeholder" , "" ) ;
273+ }
274+
268275 $ ( "#editNote" ) . val ( note || '' ) ;
269276 $ ( "#editBlocked" ) . prop ( "checked" , ! dataRow . find ( "td:eq(8) i" ) . hasClass ( "text-success" ) ) ;
270277 $ ( "#editUnlimitedIp" ) . prop ( "checked" , dataRow . find ( ".unlimited-ip-cell i" ) . hasClass ( "text-primary" ) ) ;
You can’t perform that action at this time.
0 commit comments