* ignore English articles when sorting names * added a new sort_name field that gets automatically created * automatically fill certain values in forms: * new game: name and sort name after typing * new edition: name and sort name when selecting game * new purchase: platform when selecting edition
19 lines
380 B
JavaScript
19 lines
380 B
JavaScript
import { syncSelectInputUntilChanged } from './utils.js';
|
|
|
|
let syncData = [
|
|
{
|
|
"source": "#id_game",
|
|
"source_value": "dataset.name",
|
|
"target": "#id_name",
|
|
"target_value": "value"
|
|
},
|
|
{
|
|
"source": "#id_game",
|
|
"source_value": "textContent",
|
|
"target": "#id_sort_name",
|
|
"target_value": "value"
|
|
},
|
|
]
|
|
|
|
syncSelectInputUntilChanged(syncData, "form");
|