PageSourceSearch

https://nazarenespace.com/assets/795c5ecf/js/humhub.user.picker.js?v=1723430289

js nazarenespace.com collected 2026-10-02 13:08:41 UTC 940 bytes, 31 lines download raw bytes

1humhub.module('user.picker', function (module, require, $) {
2    var object = require('util').object;
3    var Picker = require('ui.picker').Picker;
4
5    var UserPicker = function (node, options) {
6        Picker.call(this, node, options);
7    };
8
9    object.inherits(UserPicker, Picker);
10
11    UserPicker.prototype.selectSelf = function () {
12        var userConfig = require('config').get('user');
13        if (userConfig && !userConfig.isGuest) {
14            this.select(userConfig.guid, userConfig.text, userConfig.image);
15        }
16    };
17
18    var actionSelectSelf = function (event) {
19        var picker = UserPicker.instance(event.$target);
20        if (picker instanceof UserPicker) {
21            picker.selectSelf();
22        } else {
23            module.log.error('Tried self select on non picker node!', true);
24        }
25    };
26
27    module.export({
28        UserPicker: UserPicker,
29        actionSelectSelf: actionSelectSelf
30    });
31});

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.