@@ -693,8 +693,8 @@ jQuery(function($){
693
693
} else if ( item . attributes . rl_frame === "d" ) {
694
694
item . attributes . rl_frame = lang_rl . day ;
695
695
}
696
- item . attributes . rl_value = escapeHtml ( item . attributes . rl_value ) ;
697
-
696
+ item . attributes . rl_value = ( ! item . attributes . rl_value ) ? "∞" : escapeHtml ( item . attributes . rl_value ) ;
697
+ item . attributes . ratelimit = item . attributes . rl_value + " " + item . attributes . rl_frame ;
698
698
699
699
if ( item . template . toLowerCase ( ) == "default" ) {
700
700
item . action = '<div class="btn-group">' +
@@ -818,14 +818,8 @@ jQuery(function($){
818
818
}
819
819
} ,
820
820
{
821
- title : 'rl_frame' ,
822
- data : 'attributes.rl_frame' ,
823
- defaultContent : '' ,
824
- class : 'none' ,
825
- } ,
826
- {
827
- title : 'rl_value' ,
828
- data : 'attributes.rl_value' ,
821
+ title : lang_edit . ratelimit ,
822
+ data : 'attributes.ratelimit' ,
829
823
defaultContent : '' ,
830
824
class : 'none' ,
831
825
} ,
@@ -1183,7 +1177,8 @@ jQuery(function($){
1183
1177
} else if ( item . attributes . rl_frame === "d" ) {
1184
1178
item . attributes . rl_frame = lang_rl . day ;
1185
1179
}
1186
- item . attributes . rl_value = escapeHtml ( item . attributes . rl_value ) ;
1180
+ item . attributes . rl_value = ( ! item . attributes . rl_value ) ? "∞" : escapeHtml ( item . attributes . rl_value ) ;
1181
+ item . attributes . ratelimit = item . attributes . rl_value + " " + item . attributes . rl_frame ;
1187
1182
1188
1183
item . attributes . quota = humanFileSize ( item . attributes . quota ) ;
1189
1184
@@ -1328,14 +1323,8 @@ jQuery(function($){
1328
1323
}
1329
1324
} ,
1330
1325
{
1331
- title : "rl_frame" ,
1332
- data : 'attributes.rl_frame' ,
1333
- defaultContent : '' ,
1334
- class : 'none' ,
1335
- } ,
1336
- {
1337
- title : 'rl_value' ,
1338
- data : 'attributes.rl_value' ,
1326
+ title : lang_edit . ratelimit ,
1327
+ data : 'attributes.ratelimit' ,
1339
1328
defaultContent : '' ,
1340
1329
class : 'none' ,
1341
1330
} ,
0 commit comments