PageSourceSearch

https://www.roomlala.ca/assets/js/AdminEntityUpdater-e3a87102e1e26eb98985d83a5ee73fbf.js

js roomlala.ca collected 2026-10-06 07:27:09 UTC 895 bytes, 27 lines download raw bytes

1import AdmAjaxUtils from './utils/adm_ajax_utils.js'
2import AdmNotify from './utils/adm_notify.js'
3
4export default class AdminEntityUpdater {
5    /**
6     * @param params{entity, id, field, value}
7     * @param {?Function} onResultCallback
8     */
9    static send(params, onResultCallback = null) {
10        const _urlTag = document.getElementById('js-adm-entity-update-url')
11        if (!_urlTag) {
12            throw Error('missing Admin tag: js-adm-entity-update-url');
13        }
14        AdmAjaxUtils.post({
15            url: document.getElementById('js-adm-entity-update-url').value, // admin_entity_update
16            data: params,
17            onResult: () => {
18                if ('function' === typeof onResultCallback) {
19                    onResultCallback()
20                }
21            },
22            onError: () => {
23                AdmNotify.error()
24            },
25        })
26    }
27}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.