* allow 'auto' as width for tables
 * db tag 'money' may include currency AND items
This commit is contained in:
Sarjuuk
2022-01-05 23:29:35 +01:00
parent 2ec4809c7f
commit dcb8995b1a
2 changed files with 3 additions and 2 deletions

View File

@@ -31,7 +31,8 @@ class Markup
$match[1] = 'achievement';
else if ($match[1] == 'icondb')
$match[1] = 'icon';
else if ($match[1] == 'money')
if ($match[1] == 'money')
{
if (stripos($match[0], 'items'))
{

View File

@@ -2798,7 +2798,7 @@ var Markup = {
border: { req: false, valid: /^[0-9]+$/ },
cellspacing: { req: false, valid: /^[0-9]+$/ },
cellpadding: { req: false, valid: /^[0-9]+$/ },
width: { req: false, valid: /^[0-9]+(px|em|\%)$/ }
width: { req: false, valid: /^([0-9]+(px|em|\%)|auto)$/ }
},
toHtml: function(attr)
{