# NB 09.02.18: needed ?
if ($tag == 'textarea' and $type != 'text') $tag = 'input';
+ # Trim CHAR type
+ if (preg_match('/^\s+$/',$value)) $value = '';
+
# Html friendly
if ($media = Mime::html($value,'',$mime)) {
if ($this->html_edit_hide_min_size
foreach ($this->fields() as $name => $field) {
-# NB 08.01.18 if ($add and !preg_match('/^(null|.*\(.*)?$/',strtolower($field->default))) {
-# NB 08.01.18 $row[$name] = $field->default;
-#debug([$name,$row[$name]]);
if ($add) {
if (empty($row[$name])) $row[$name] = $field->default2str();
document.addEventListener("DOMContentLoaded", function() {
+ $('.db-rows form.rm').each(function() {
+ });
//console.log('LOADED');
NodeList.prototype.forEach = Array.prototype.forEach;