1
0
mirror of https://github.com/MailHops/mailhops-plugin.git synced 2025-05-17 06:40:08 -07:00

Fixed pref bug on reload and save

This commit is contained in:
Andrew Van Tassel 2015-05-31 09:16:07 -06:00
parent 94463d7406
commit 28a4976e05
3 changed files with 9 additions and 9 deletions

View File

@ -27,6 +27,14 @@ mailHops.init = function() {
//load preferences //load preferences
mailHops.loadPref(); mailHops.loadPref();
document.getElementById("mailhopsDataPanePrefsLink").addEventListener("click", function () {
window.openDialog("chrome://mailhops/content/preferences.xul","","chrome, dialog, modal, centerscreen").focus();
});
document.getElementById("mailhopsDataPaneRefreshLink").addEventListener("click", function () {
mailHops.refreshCache();
});
mailHops.isLoaded = true; mailHops.isLoaded = true;
}; };
@ -66,14 +74,6 @@ mailHops.loadPref = function()
}); });
} }
document.getElementById("mailhopsDataPanePrefsLink").addEventListener("click", function () {
window.openDialog("chrome://mailhops/content/preferences.xul","","chrome, dialog, modal, centerscreen").focus();
});
document.getElementById("mailhopsDataPaneRefreshLink").addEventListener("click", function () {
mailHops.refreshCache();
});
//init display //init display
mailHopsDisplay.init( mailHops.options ); mailHopsDisplay.init( mailHops.options );
}; };

View File

@ -13,7 +13,7 @@
<em:homepageURL>http://www.mailhops.com</em:homepageURL> <em:homepageURL>http://www.mailhops.com</em:homepageURL>
<em:creator>Andrew Van Tassel</em:creator> <em:creator>Andrew Van Tassel</em:creator>
<em:optionsURL>chrome://mailhops/content/preferences.xul</em:optionsURL> <em:optionsURL>chrome://mailhops/content/preferences.xul</em:optionsURL>
<em:updateURL>https://dl.dropbox.com/u/1533417/mailhops_update.rdf</em:updateURL> <!-- <em:updateURL>https://dl.dropbox.com/u/1533417/mailhops_update.rdf</em:updateURL> -->
<!-- Postbox --> <!-- Postbox -->
<em:targetApplication> <em:targetApplication>

Binary file not shown.