~kamalmostafa/ubuntu/lucid/firegpg/fix-515872-ftbfs

« back to all changes in this revision

Viewing changes to content/Dialogs/api.js

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Kahn Gillmor
  • Date: 2009-11-17 01:49:16 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20091117014916-mk2h2odgagazlq9r
Tags: 0.7.10-1
* New Upstream Version (Closes: #556568)
* moved defaults/preferences/firegpg.js into
  /etc/mozilla-extensions/firegpg.js per Mike Hommey's good suggestion.

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
*/
131
131
function cannot() {
132
132
    if (document.getElementById('domain').selected)
133
 
        FireGPGApi.denyRegister(this.theLocation, 'D');
 
133
        FireGPG.Api.denyRegister(this.theLocation, 'D');
134
134
    else if (document.getElementById('website').selected)
135
 
        FireGPGApi.denyRegister(this.theLocation, 'S');
 
135
        FireGPG.Api.denyRegister(this.theLocation, 'S');
136
136
    else if (document.getElementById('page').selected)
137
 
        FireGPGApi.denyRegister(this.theLocation, 'P');
 
137
        FireGPG.Api.denyRegister(this.theLocation, 'P');
138
138
 
139
139
    this.close();
140
140
}
146
146
function can() {
147
147
 
148
148
    if (document.getElementById('domain').selected)
149
 
        key = FireGPGApi.allowRegister(this.theLocation, 'D');
 
149
        key = FireGPG.Api.allowRegister(this.theLocation, 'D');
150
150
    else if (document.getElementById('website').selected)
151
 
        key = FireGPGApi.allowRegister(this.theLocation, 'S');
 
151
        key = FireGPG.Api.allowRegister(this.theLocation, 'S');
152
152
    else if (document.getElementById('page').selected)
153
 
        key = FireGPGApi.allowRegister(this.theLocation, 'P');
 
153
        key = FireGPG.Api.allowRegister(this.theLocation, 'P');
154
154
 
155
155
    window.arguments[0].apiKey = key;
156
156