~ubuntu-branches/debian/stretch/all-in-one-sidebar/stretch

« back to all changes in this revision

Viewing changes to content/pageinfo.js

  • Committer: Package Import Robot
  • Author(s): David Prévot
  • Date: 2013-09-09 19:59:25 UTC
  • mfrom: (1.1.5) (0.1.11 sid)
  • Revision ID: package-import@ubuntu.com-20130909195925-8dtwzmf4o662becs
Tags: 0.7.20-1
* Team upload
* Imported Upstream version 0.7.20
* Remove now useless DMUA
* Remove now useless version in Build-Depends
* Update Vcs to canonical URI
* Bump standards version to 3.9.4
* Add Breaks for xul-ext
* Remove now useless Replaces
* Update copyright, convert it to format 1.0
* Add upstream changelog
* No phone home on install and upgrade

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
        top.gBrowser.removeProgressListener(aiosProgListener);
13
13
    }, false);
14
14
}
15
 
 
 
15
 
16
16
 
17
17
 
18
18
function aios_init() {
19
19
    // Menueleiste unter Mac OS X ausblenden
20
20
    aios_hideMacMenubar();
21
 
    
 
21
 
22
22
    // fuer CSS-Zwecke speichern
23
23
    aios_appInfo(document.getElementById('main-window'));
24
24
 
30
30
    catch(e) { }
31
31
 
32
32
    // Tastaturkuerzel entfernen, um nicht die des Hauptbrowsers zu blockieren
33
 
    if(aios_inSidebar) aios_removeAccesskeys();
34
 
    
35
 
    //alert(document.getElementById('topBar').clientWidth);
 
33
    if(aios_inSidebar) aios_removeAccesskeys();
 
34
 
 
35
    //alert(document.getElementById('topBar').clientWidth);
36
36
    //document.getElementById('metatree').getElementsByTagName('treechildren')[0].style.maxWidth = document.getElementById('topBar').clientWidth + "px";
37
37
}
38
38
 
42
42
 
43
43
    // CSS fuer Sidebar-Optimierungen aktivieren
44
44
    aios_addCSS("pageinfo.css", "main-window");
45
 
        
 
45
 
46
46
    // Label der Radio-Buttons unsichtbar machen => nur wenn es Icons gibt
47
47
    var cStyle = document.defaultView.getComputedStyle(document.getElementById('generalTab'), '');
48
48
    if(cStyle.listStyleImage && cStyle.listStyleImage != "none") {
49
49
        if(document.getElementById('viewGroup')) document.getElementById('viewGroup').setAttribute("hideLabel", true);
50
50
    }
51
 
        
 
51
 
52
52
    // Radio-Buttons mit Tooltip
53
53
    if(document.getElementById('viewGroup')) {
54
54
        var radioChilds = document.getElementById('viewGroup').childNodes;
56
56
            if(radioChilds[i].tagName == "radio") radioChilds[i].setAttribute('tooltiptext', radioChilds[i].label);
57
57
        }
58
58
    }
59
 
    
 
59
 
60
60
    // Media-Panel: Save as... button umbrechen
61
61
    var hbox = document.getElementById('mediaPreviewBox').getElementsByTagName('hbox')[0];
62
62
    hbox.setAttribute('align', 'start');
63
63
    hbox.setAttribute('orient', 'vertical');
64
64
    hbox.removeChild(hbox.getElementsByTagName('spacer')[0]);
65
65
    hbox.appendChild(hbox.getElementsByTagName('vbox')[0]);
66
 
    
 
66
 
67
67
    // Security-Panel: Texte und Buttons umbrechen
68
68
    // Identity
69
69
    var groupbox = document.getElementById('security-identity-groupbox');
70
70
    groupbox.removeChild(groupbox.getElementsByTagName('spacer')[0]);
71
71
    groupbox.getElementsByTagName('hbox')[0].setAttribute('orient', 'vertical');
72
72
    groupbox.getElementsByTagName('hbox')[0].setAttribute('align', 'start');
73
 
    
 
73
 
74
74
    // History
75
75
    var historyrow = document.getElementById('security-privacy-history-label').parentNode;
76
76
    vbox = document.createElement("vbox");
79
79
    }
80
80
    vbox.setAttribute('flex', '100');
81
81
    historyrow.appendChild(vbox);
82
 
    
 
82
 
83
83
    // Cookies
84
84
    var cookierow = document.getElementById('security-privacy-cookies-label').parentNode;
85
85
    vbox = document.createElement("vbox");
88
88
    }
89
89
    vbox.setAttribute('flex', '100');
90
90
    cookierow.appendChild(vbox);
91
 
    
 
91
 
92
92
    // Passwords
93
93
    var pwdrow = document.getElementById('security-privacy-passwords-label').parentNode;
94
94
    vbox = document.createElement("vbox");
183
183
    viewCert : function () {
184
184
        var cert = security._cert;
185
185
        //viewCertHelper(window, cert);
186
 
    
 
186
 
187
187
        // mod by eXXile
188
188
        if(aios_inSidebar) viewCertHelper(aios_WIN.content.window, cert);
189
189
        else if(aios_inTab) viewCertHelper(aios_WIN.aiosLastSelTab.window, cert);
215
215
 
216
216
        var isBroken =
217
217
        (ui.state & Components.interfaces.nsIWebProgressListener.STATE_IS_BROKEN);
218
 
        var isInsecure = 
 
218
        var isInsecure =
219
219
        (ui.state & Components.interfaces.nsIWebProgressListener.STATE_IS_INSECURE);
220
220
        var isEV =
221
221
        (ui.state & Components.interfaces.nsIWebProgressListener.STATE_IDENTITY_EV_TOPLEVEL);
256
256
                isBroken : isBroken,
257
257
                isEV : isEV,
258
258
                cert : null,
259
 
                fullLocation : gWindow.location        
 
259
                fullLocation : gWindow.location
260
260
            };
261
261
        }
262
262
    },
319
319
                    filterString : eTLD
320
320
                });
321
321
    },
322
 
  
 
322
 
323
323
    /**
324
324
   * Open the login manager window
325
325
   */