Changeset 1914


Ignore:
Timestamp:
Jun 16, 2011, 9:07:33 AM (7 years ago)
Author:
javier
Message:

fixes suggested by amo review

Location:
desktop/foneradownloader/trunk
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • desktop/foneradownloader/trunk/chrome.manifest

    r1898 r1914  
    22locale foneradownloader en-US chrome/locale/en-US/
    33locale foneradownloader es-ES chrome/locale/es-ES/
    4 resource jsmodules chrome/content/js/
     4resource foneradjsmodules chrome/content/js/
    55overlay chrome://mozapps/content/downloads/unknownContentType.xul chrome://foneradownloader/content/dialog.xul
    66overlay chrome://browser/content/browser.xul chrome://foneradownloader/content/browser.xul
  • desktop/foneradownloader/trunk/chrome/content/js/accprefs.js

    r1899 r1914  
    2424let EXPORTED_SYMBOLS = ["FoneraAccountsPrefs"];
    2525
    26 Components.utils.import("resource://jsmodules/fonera.js");
    27 Components.utils.import("resource://jsmodules/downloader.js");
     26Components.utils.import("resource://foneradjsmodules/fonera.js");
     27Components.utils.import("resource://foneradjsmodules/downloader.js");
    2828
    2929let FoneraAccountsPrefs = {
  • desktop/foneradownloader/trunk/chrome/content/js/contextmenu.js

    r1899 r1914  
    2626let EXPORTED_SYMBOLS = ["FoneraCxtxtMenu"];
    2727
    28 Components.utils.import("resource://jsmodules/fonera.js");
    29 Components.utils.import("resource://jsmodules/downloader.js");
    30 Components.utils.import("resource://jsmodules/linkmanager.js");
     28Components.utils.import("resource://foneradjsmodules/fonera.js");
     29Components.utils.import("resource://foneradjsmodules/downloader.js");
     30Components.utils.import("resource://foneradjsmodules/linkmanager.js");
    3131
    3232let FoneraCxtxtMenu = {
  • desktop/foneradownloader/trunk/chrome/content/js/dialog.js

    r1899 r1914  
    2121*/
    2222
    23 Components.utils.import("resource://jsmodules/fonera.js");
    24 Components.utils.import("resource://jsmodules/downloader.js");
     23Components.utils.import("resource://foneradjsmodules/fonera.js");
     24Components.utils.import("resource://foneradjsmodules/downloader.js");
    2525
    2626
  • desktop/foneradownloader/trunk/chrome/content/js/dlmanager.js

    r1899 r1914  
    2525
    2626
    27 Components.utils.import("resource://jsmodules/fonera.js");
    28 Components.utils.import("resource://jsmodules/downloader.js");
    29 Components.utils.import("resource://jsmodules/format.js");
     27Components.utils.import("resource://foneradjsmodules/fonera.js");
     28Components.utils.import("resource://foneradjsmodules/downloader.js");
     29Components.utils.import("resource://foneradjsmodules/format.js");
    3030
    3131// The Download Manager Window
     
    240240            playb.setAttribute("style","");
    241241        }
    242         playb.setAttribute("onclick","FoneraDLManager.downloadAction('" + downloadItem.id + "','" + action  + "')");
     242        playb.setAttribute("id", downloadItem.id);
     243        playb.setAttribute("action", action);
     244        playb.setAttribute("onclick", "FoneraDLManager.downloadAction(this.getAttribute('id'), this.getAttribute('action'))")
    243245
    244246        let cancelb = document.createElement("image");
     
    247249                             + FoneraDLManager.cancelActionOffset);
    248250
    249         cancelb.setAttribute("onclick","FoneraDLManager.downloadAction('" + downloadItem.id + "','delete')");
     251        cancelb.setAttribute("id", downloadItem.id);
     252        cancelb.setAttribute("action", "delete");
     253        cancelb.setAttribute("onclick", "FoneraDLManager.downloadAction(this.getAttribute('id'), this.getAttribute('action'))")
     254
    250255        cancelb.tooltipText = stringsBundle.getString("cancel");
    251256
  • desktop/foneradownloader/trunk/chrome/content/js/downloader.js

    r1899 r1914  
    2727let EXPORTED_SYMBOLS = ["FoneraDownloader"];
    2828
    29 Components.utils.import("resource://jsmodules/format.js");
    30 Components.utils.import("resource://jsmodules/fonera.js");
     29Components.utils.import("resource://foneradjsmodules/format.js");
     30Components.utils.import("resource://foneradjsmodules/fonera.js");
    3131
    3232let FoneraDownloader = {
  • desktop/foneradownloader/trunk/chrome/content/js/fonera.js

    r1631 r1914  
    125125        } catch(e) {
    126126            Fonera.Application.console.log(e);
    127             // migration code:
    128             try {
    129                 if (prefs.prefHasUserValue("password")) {
    130                     password = Fonera.getUserPref('password');
    131                     // store new password in loginManager:
    132                     let extLoginInfo = new Fonera.nsLoginInfo('chrome://foneradownloader',
    133                         null, 'Fonera user Login',
    134                         Fonera.getUsername(), password, "", "");
    135 
    136                     // remove all logins and create a new one:
    137                     let logins = Fonera.passwordManager.findLogins({}, 'chrome://foneradownloader', null, 'Fonera user Login');
    138                     for (let i = 0; i < logins.length; i++) {
    139                         Fonera.passwordManager.removeLogin(logins[i]);
    140                     }
    141                     Fonera.passwordManager.addLogin(extLoginInfo);
    142                     // lock this preference as it will be stored from now on inside loginManager
    143                     Fonera.Preferences.getBranch("extensions.foneradownloader.").setCharPref("password", "");
    144                     Fonera.Preferences.getBranch("extensions.foneradownloader.").lockPref('password');
    145                     return password;
    146                 }
    147             } catch(e) {
    148                 Fonera.Application.console.log(e);
    149             }
    150 
    151127        }
    152128        return password;
  • desktop/foneradownloader/trunk/chrome/content/js/linkadder.js

    r1899 r1914  
    2424let EXPORTED_SYMBOLS = ["FoneraLinkadder"];
    2525
    26 Components.utils.import("resource://jsmodules/fonera.js");
    27 Components.utils.import("resource://jsmodules/downloader.js");
     26Components.utils.import("resource://foneradjsmodules/fonera.js");
     27Components.utils.import("resource://foneradjsmodules/downloader.js");
    2828
    2929let FoneraLinkadder = {
  • desktop/foneradownloader/trunk/chrome/content/js/linkmanager.js

    r1899 r1914  
    2727    .getService(Components.interfaces.fuelIApplication);
    2828
    29 Components.utils.import("resource://jsmodules/fonera.js");
    30 Components.utils.import("resource://jsmodules/format.js");
    31 Components.utils.import("resource://jsmodules/downloader.js");
     29Components.utils.import("resource://foneradjsmodules/fonera.js");
     30Components.utils.import("resource://foneradjsmodules/format.js");
     31Components.utils.import("resource://foneradjsmodules/downloader.js");
    3232
    3333
  • desktop/foneradownloader/trunk/chrome/content/js/preferences.js

    r1899 r1914  
    2424let EXPORTED_SYMBOLS = ["FoneraPrefs"];
    2525
    26 Components.utils.import("resource://jsmodules/fonera.js");
     26Components.utils.import("resource://foneradjsmodules/fonera.js");
    2727
    2828let FoneraPrefs = {
  • desktop/foneradownloader/trunk/chrome/content/js/status.js

    r1899 r1914  
    2424let EXPORTED_SYMBOLS = ["FoneraStatus"];
    2525
    26 Components.utils.import("resource://jsmodules/fonera.js");
    27 Components.utils.import("resource://jsmodules/downloader.js");
     26Components.utils.import("resource://foneradjsmodules/fonera.js");
     27Components.utils.import("resource://foneradjsmodules/downloader.js");
    2828
    2929// STATUSBAR
  • desktop/foneradownloader/trunk/install.rdf

    r1902 r1914  
    77    <em:id>foneradownloader@fon.com</em:id>
    88    <em:name>Fonera 2.0 Downloader Helper extension</em:name>
    9     <em:version>0.2.0</em:version>
     9    <em:version>0.2.1</em:version>
    1010    <em:type>2</em:type>
    1111    <em:description>Extension to send your download links files to your fonera</em:description>
     
    2121        <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
    2222        <em:minVersion>3.0</em:minVersion>
    23         <em:maxVersion>5.*</em:maxVersion>
     23        <em:maxVersion>6.*</em:maxVersion>
    2424      </Description>
    2525    </em:targetApplication>
Note: See TracChangeset for help on using the changeset viewer.