PageSourceSearch

https://www.lolc.com.kh/userfiles/modules/microweber/api/tools/system-dialogs.js

js lolc.com.kh collected 2026-10-01 16:35:21 UTC 2,479 bytes, 74 lines download raw bytes

1mw.tools.alert = function (text) {
2    var html = ''
3        + '<table class="mw_alert" width="100%" height="140" cellpadding="0" cellspacing="0">'
4        + '<tr>'
5        + '<td align="center" valign="middle"><div class="mw_alert_holder">' + text + '</div></td>'
6        + '</tr>'
7        + '<tr>'
8        + '<td align="center" height="25"><span class="mw-ui-btn" onclick="mw.tools.modal.remove(\'mw_alert\');"><b>' + mw.msg.ok + '</b></span></td>'
9        + '</tr>'
10        + '</table>';
11    if (mw.$("#mw_alert").length === 0) {
12        return mw.modal({
13            html: html,
14            width: 400,
15            height: 200,
16            overlay: false,
17            name: "mw_alert",
18            template: "mw_modal_basic"
19        });
20    }
21    else {
22        mw.$("#mw_alert .mw_alert_holder").html(text);
23        return mw.$("#mw_alert")[0].modal;
24    }
25};
26
27
28mw.tools.confirm = function (question, callback) {
29        var html = ''
30            + '<table class="mw_alert" width="100%" height="140" cellpadding="0" cellspacing="0">'
31            + '<tr>'
32            + '<td align="center" valign="middle"><div class="mw_alert_holder">' + question + '</div></td>'
33            + '</tr>'
34            + '</table>';
35
36        var ok = $('<span tabindex="99999" class="mw-ui-btn mw-ui-btn-medium mw-ui-btn-info">'+mw.msg.ok+'</span>');
37        var cancel = $('<span class="mw-ui-btn mw-ui-btn-medium ">' + mw.msg.cancel + '</span>');
38
39        if (mw.$("#mw_confirm_modal").length === 0) {
40            var modal = mw.top().dialog({
41                content: html,
42                width: 400,
43                height: 'auto',
44                autoHeight: true,
45                overlay: false,
46                name: "mw_confirm_modal",
47                footer: [cancel, ok]
48            });
49        }
50        else {
51            mw.$("#mw_confirm_modal .mw_alert_holder").html(question);
52            var modal = mw.$("#mw_confirm_modal")[0].modal;
53        }
54
55
56        ok.on('keydown', function (e) {
57            if (e.keyCode === 13 || e.keyCode === 32) {
58                callback.call(window);
59                modal.remove();
60                e.preventDefault();
61            }
62        });
63        cancel.on('click', function () {
64            modal.remove();
65        });
66        ok.on('click', function () {
67            callback.call(window);
68            modal.remove();
69        });
70        setTimeout(function () {
71            mw.$(ok).focus();
72        }, 120);
73        return modal;
74    };

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.