Commit 8e0a0ab8 authored by mostafah%oeone.com's avatar mostafah%oeone.com
Browse files

Checked in patch for bug 322395: Preferences not working for firefox extension r=mvl

parent 40ef8793
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -187,8 +187,13 @@ function calendarFinish()

function launchPreferences()
{
    var applicationName = navigator.vendor;
    if (applicationName == "Mozilla" || applicationName == "Firebird" || applicationName == "")
    var applicationName="";
    if (Components.classes["@mozilla.org/xre/app-info;1"]) {
        var appInfo = Components.classes["@mozilla.org/xre/app-info;1"]
                      .getService(Components.interfaces.nsIXULAppInfo);
        applicationName = appInfo.name;
    }
    if (applicationName == "SeaMonkey" || applicationName == "")
        goPreferences( "calendarPanel", "chrome://calendar/content/pref/calendarPref.xul", "calendarPanel" );
    else
        window.openDialog("chrome://calendar/content/pref/prefBird.xul", "PrefWindow", "chrome,titlebar,resizable,modal");