www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit cf93417ec9da3a8a7d5ed681be58f00e1d6229ad
parent 5f9e39f959c2ee1c527b752b871049a46b194537
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon, 10 Aug 2009 17:37:35 +0000

A few debug logging fixes


Diffstat:
Mchrome/content/zotero/preferences/preferences.js | 11++++++-----
Mchrome/content/zotero/preferences/preferences.xul | 5++---
2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/chrome/content/zotero/preferences/preferences.js b/chrome/content/zotero/preferences/preferences.js @@ -29,8 +29,8 @@ var _io = {}; var Zotero_Preferences = { - onClose: function () { - Zotero_Preferences.DebugOutput.onClose(); + onUnload: function () { + Zotero_Preferences.Debug_Output.onUnload(); } } @@ -1268,7 +1268,7 @@ Zotero_Preferences.Debug_Output = { document.getElementById('debug-output-submit').disabled = true; document.getElementById('debug-output-submit-progress').hidden = false; - var url = "http://www.zotero.org/utils/dev/repo/report?debug=1"; + var url = "http://www.zotero.org/repo/report?debug=1"; var output = Zotero.Debug.get(); var uploadCallback = function (xmlhttp) { @@ -1407,10 +1407,11 @@ Zotero_Preferences.Debug_Output = { updateLines: function () { + var enabled = Zotero.Debug.storing; var lines = Zotero.Debug.count(); document.getElementById('debug-output-lines').value = lines; var empty = lines == 0; - document.getElementById('debug-output-view').disabled = empty; + document.getElementById('debug-output-view').disabled = !enabled && empty; document.getElementById('debug-output-clear').disabled = empty; document.getElementById('debug-output-submit').disabled = empty; }, @@ -1441,7 +1442,7 @@ Zotero_Preferences.Debug_Output = { }, - onClose: function () { + onUnload: function () { if (this._timer) { this._timer.cancel(); } diff --git a/chrome/content/zotero/preferences/preferences.xul b/chrome/content/zotero/preferences/preferences.xul @@ -37,9 +37,8 @@ To add a new preference: in Zotero.Prefs.observe() --> -<prefwindow id="zotero-prefs" title="&zotero.preferences.title;" onload="moveToAlertPosition(); init()" onclose="Zotero_Preferences.onClose()" - windowtype="zotero:pref" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" - > +<prefwindow id="zotero-prefs" title="&zotero.preferences.title;" onload="moveToAlertPosition(); init()" onunload="Zotero_Preferences.onUnload()" + windowtype="zotero:pref" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <prefpane id="zotero-prefpane-general" label="&zotero.preferences.prefpane.general;"