Difference between revisions of "Widget:DCTList"

From LINKS Community Center
Jump to: navigation, search
Line 138: Line 138:
  
 
     // Helpers
 
     // Helpers
     const escapeAttr = text => text ? text.replace(/\s/g, '-') : text;
+
     const escapeAttr = text => text ? text.replace(/\W/g, '-') : text;
 
     const getFilePath = title => title ? '/index.php/Special:FilePath/' + title : title;
 
     const getFilePath = title => title ? '/index.php/Special:FilePath/' + title : title;
 
     const getQueryUrl = query => '/api.php?action=ask&format=json&query=' + encodeURIComponent(query);
 
     const getQueryUrl = query => '/api.php?action=ask&format=json&query=' + encodeURIComponent(query);

Revision as of 09:38, 6 September 2022

Development verstion of the DCT List.
Not ready for production!