PageSourceSearch

http://online.brave.ru/inc/dialog.js

js brave.ru collected 2026-10-02 13:50:42 UTC 2,168 bytes, 56 lines download raw bytes

1function ShowDialog(url, modal, dialogFeatures)
2{
3    if(navigator.appName == 'Netscape')
4    {    
5        window.open(url, '', dialogFeatures);       
6    }
7    else
8    {    
9        if(modal)
10            window.showModalDialog(url, '', dialogFeatures);
11        else
12            window.showModelessDialog(url, '', dialogFeatures);
13    }
14}
15
16function ShowDialogWithExtent(url, width, height, modal, resizable)
17{
18    if(navigator.appName == 'Netscape')
19    {    
20        dialogFeatures = 'width=' + width + ',height=' + height + ',,toolbar=no,directories=no,status=no,menubar=no,modal=yes,scrollbars=' + (resizable ? 'yes,': 'no,') + 'resizable=' + (resizable ? 'yes': 'no');
21    }
22    else
23    {   
24        dialogFeatures = 'dialogWidth:' + width + 'px; dialogHeight: ' + height + 'px; help: no; scroll: ' + (resizable ? 'yes; ': 'no; ') + 'resizable: ' + (resizable ? 'yes': 'no');         
25    }
26        
27    ShowDialog(url, modal, dialogFeatures);    
28}
29
30function ShowHelp(url)
31{
32    ShowDialogWithExtent(url, 380, 220, false, false);
33}
34
35function ShowTouristServiceSelector(id, pricekey)
36{
37    ShowDialogWithExtent('turistServicesDialog.aspx?id=' + id + '&priceKey=' + pricekey, 450, 250, true, true);
38}
39
40function ShowEditor(id, pricekey) {
41    var browser = navigator.appName;
42    //MEG00034135 kadraliev Åñëè priceKey==null, òî íå âñòàâëÿåì åãî â ñòðîêó çàïðîñà
43    var priceKeyParameter = "";
44    if (pricekey != null && pricekey != "null") {
45        priceKeyParameter = '&priceKey=' + pricekey;
46    }
47    //MEG00019964 Àíòîí 20.01.2009
48    //â FireFox íåëüçÿ çàêðûòü îêíî window.Close, åñëè îíî áûëî îòêðûòî êàê ìîäàëüíîå
49    if (browser == 'Netscape' || browser == 'Opera') {
50        window.open('ServiceEditor.aspx?id=' + id + priceKeyParameter, '', 'height=540,width=740,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes', '');
51    }
52    else {
53        if (window.showModalDialog('ServiceEditorDialog.aspx?id=' + id + priceKeyParameter, '', 'dialogHeight: 540px; dialogWidth: 740px; scroll: no; resizable: yes; help: no') > 0)
54            window.location.reload(false);
55    }
56}

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.