Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
magnusmanske committed Jan 23, 2024
1 parent dbddf77 commit 760ae6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion html/autolist.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ function AutoList ( callback ) {

$.each ( rows , function ( k , row ) {
let cmd = { q:q , status:'waiting' } ;
let m = row.match ( /^\s*-D(\S+):(.+)$/i ) ;
let m = row.match ( /^\s*D(\S+):(.+)$/i ) ;
if ( m != null ) {
cmd.mode = 'desc';
cmd.language = m[1] ;
Expand Down Expand Up @@ -410,6 +410,8 @@ function AutoList ( callback ) {
if ( lang == 'commons' ) lang = interface_language;//'en' ;
let the_label = $.trim(cmd.page.replace(/_/g,' ').replace(/\s*\(.+?\)\s*/,' ')).replace(/^\S+:/,'');
if ( m !== null ) qs += "||LAST|L" + lang + "|\"" + the_label + '"' ;
} else if ( cmd.mode == 'desc' ) {
qs = "LAST|D"+cmd.language+"|\""+cmd.value+"\"";
} else {
if ( cmd.mode == 'delete' ) qs = '-' ;
if ( /^create_item_/.test(cmd.q) ) qs += 'LAST' ;
Expand Down

0 comments on commit 760ae6a

Please sign in to comment.